Grid Placement
Development ⚠️ GridPlacement 6.0 (GECS) is in active development. This is the GDScript ECS architecture.

ResourceInventoryComponent

AUTO-GENERATED (GDScript) API entry

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) -> void
  • validate -> Array
  • can_accept_weight(additional_weight: float) -> bool
  • has_available_slots(additional_slots: int) -> bool
  • get_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