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

ResourceProviderComponent

AUTO-GENERATED (GDScript) API entry

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: components/resources/resource_provider_component.gd

Version: 6.0

class_name: ResourceProviderComponent extends: Resource

Signals

(none)

Exports

(none)

Methods

  • _init(p_balance: float, p_max_weight: float, p_max_slots: int, p_debug_mode: bool) -> void
  • get_resource_count(resource: Resource) -> int
  • add_resource(resource: Resource, amount: int) -> void
  • remove_resource(resource: Resource, amount: int) -> int
  • has_resources(stacks: Array) -> bool
  • consume_resources(stacks: Array) -> int
  • get_total_items -> int
  • get_unique_resource_count -> int
  • record(resource: Resource, amount: int) -> void
  • get_consumed_count(resource: Resource) -> int
  • _init(p_config: Object = null, p_inventory: Object = null) -> void
  • _ensure_initialized -> void
  • _create_default_config -> Object
  • _create_default_inventory -> Object
  • _create_default_consumption_tracking -> Object
  • get_resource_count(resource: Resource) -> int
  • has_resources(stacks: Array) -> bool
  • consume_resources(stacks: Array) -> int
  • add_resource(resource: Resource, amount: int) -> void
  • remove_resource(resource: Resource, amount: int) -> int
  • get_balance -> float
  • set_balance(amount: float) -> void
  • add_balance(amount: float) -> void
  • subtract_balance(amount: float) -> float
  • is_ready -> bool
  • get_resource_info(resource: Resource) -> Dictionary
  • validate_configuration -> Array
  • _get_state_string -> String
  • set_state(state: ProviderState) -> void
  • activate -> void
  • deactivate -> void
  • set_error -> void
  • get_provider_info -> Dictionary
  • get_consumption_stats -> Dictionary
  • get_debug_string -> String
  • get_item_count(item: Resource) -> int
  • has_items(stacks: Array) -> bool
  • consume_items(stacks: Array) -> int
  • add_item(item: Resource, amount: int) -> void
  • remove_item(item: Resource, amount: int) -> int
  • get_detailed_report -> Dictionary
  • validate -> Array
  • reset -> void
    • Reset inventory
  • update_configuration(new_config: Object) -> void
  • perform_auto_refill -> void
  • perform_balance_refill(delta: float) -> void
  • get_string_representation -> String