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

ResourceStackComponent

AUTO-GENERATED (GDScript) API entry

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) -> void
  • validate -> Array
  • is_empty -> bool
  • is_full -> bool
  • get_available_space -> int
  • get_resource_name -> String
  • get_weight -> float
  • get_total_value -> float