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

ValidationRuleComponent

AUTO-GENERATED (GDScript) API entry

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: components/validation/validation_rule_component.gd

Version: 6.0

class_name: ValidationRuleComponent extends: Component

Signals

(none)

Exports

  • auto_validate: bool = true
  • validation_interval: float = 0.1
  • last_validation_time: float = 0.0
  • is_validating: bool = false
    • Validation history for debugging
    • Maximum history size
    • Initialize component with validation data
  • max_history_size: int = 10
    • Initialize component with validation data

Methods

  • _init(id: String = "", name: String = "", priority: int = 0) -> void
  • validate(context: ValidationContext) -> ValidationResult
  • _init(position: Vector2 = Vector2.ZERO, template: String = "", grid_pos: Vector2i = Vector2i.ZERO, placer: Entity = null, extra_data: Dictionary = {}) -> void
  • _init(success: bool = true, issues: Array, warnings: Array, confidence: float = 1.0, rule_id: String = "") -> void
  • create_success(rule_id: String = "") -> ValidationResult
  • failure(issues: Array, rule_id: String = "") -> ValidationResult
  • is_success -> bool
  • get_confidence -> float
  • _init(rules: Array, auto_validate: bool = true, interval: float = 0.1) -> void
  • _init(data: ValidationData = null) -> void
  • add_rule(rule: ValidationRule) -> void
  • remove_rule(rule_id: String) -> void
  • get_rule(rule_id: String) -> ValidationRule
  • validate(context: ValidationContext) -> ValidationResult
  • should_auto_validate -> bool
  • get_validation_summary -> String
  • clear_history -> void
  • to_string -> String
  • _add_to_history(result: ValidationResult) -> void
  • _to_string -> String