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

ConsumptionRule

AUTO-GENERATED (GDScript) API entry

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: rules/impl/consumption_rule.gd

Version: 6.0

class_name: ConsumptionRule extends: Resource

Signals

(none)

Exports

  • provider_path: String = “provider”
  • debug_mode: bool = false

Methods

  • _should_debug(settings_resource: Object) -> bool
  • _get_property_safe(object: Variant, property_name: String, default_value: Variant) -> Variant
  • _implements_interface(object: Object, required_methods: Array) -> bool
  • _format_error(template: String, args: Array) -> String
  • validate(context: Object) -> Object
  • apply(context: Object) -> Array
  • _create_validation_result(is_success: bool, issues: Array) -> RuleResult
  • find_provider(context: Object, path: String) -> Object
    • First, check if provider is directly stored in metadata (for testing)
  • calculate_total_required(stacks: Array) -> int
  • get_insufficient_item_issues(provider: Object, stacks: Array, settings_resource: Object) -> Array
  • validate_configuration -> Array