AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: components/inventory/resource_stack_component.gd
Version: 6.0
class_name: ResourceStackComponent
extends: Component
Signals
(none)
Exports
resource_type: Resource- The number of resources in the stack
- Maximum stack size (0 = unlimited)
- Stack quality/durability (0.0 to 1.0)
- Stack metadata for custom properties
- Initialize with validation
count: int = 1- Maximum stack size (0 = unlimited)
- Stack quality/durability (0.0 to 1.0)
- Stack metadata for custom properties
- Initialize with validation
max_stack_size: int = 0- Stack quality/durability (0.0 to 1.0)
- Stack metadata for custom properties
- Initialize with validation
quality: float = 1.0- Stack metadata for custom properties
- Initialize with validation
metadata: Dictionary = {}- Initialize with validation
Methods
_init(p_resource_type: Resource = null, p_count: int = 1, p_max_stack_size: int = 0, p_quality: float = 1.0) -> voidvalidate -> Arrayis_empty -> boolis_full -> boolget_available_space -> intget_resource_name -> Stringget_weight -> floatget_total_value -> float