AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: components/inventory/resource_inventory_component.gd
Version: 6.0
class_name: ResourceInventoryComponent
extends: Component
Signals
(none)
Exports
balance: float = 0.0- Inventory capacity limits
- Default stack size for new stacks
- Debug mode flag
- Initialize with validation
max_weight: float = 1000.0- Default stack size for new stacks
- Debug mode flag
- Initialize with validation
max_slots: int = 50- Default stack size for new stacks
- Debug mode flag
- Initialize with validation
default_stack_size: int = 0 # 0 = unlimited- Debug mode flag
- Initialize with validation
debug_mode: bool = false- Initialize with validation
Methods
_init(p_balance: float = 0.0, p_max_weight: float = 1000.0, p_max_slots: int = 50, p_default_stack_size: int = 0) -> voidvalidate -> Arraycan_accept_weight(additional_weight: float) -> boolhas_available_slots(additional_slots: int) -> boolget_current_slots -> int- This would be calculated by a system that counts ResourceStackComponent entities
get_current_weight -> float- This would be calculated by a system that sums ResourceStackComponent weights