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

ValidationResultComponent

AUTO-GENERATED (GDScript) API entry

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: components/validation/validation_result_component.gd

Version: 6.0

class_name: ValidationResultComponent extends: Component

Signals

(none)

Exports

  • is_successful: bool = false
    • Array of validation issues/warnings.
    • Array of validation warnings (non-blocking issues).
    • Timestamp when validation was performed.
    • Reference to the entity that performed the validation.
    • Map of rule ID to its individual result data
    • Static factory for success results.
    • [param p_warnings]: Array of warning strings
    • [param p_confidence]: Confidence score between 0.0 and 1.0
    • [return]: ValidationResultComponent instance
  • issues: Array
    • Timestamp when validation was performed.
    • Reference to the entity that performed the validation.
    • Map of rule ID to its individual result data
    • Static factory for success results.
    • [param p_warnings]: Array of warning strings
    • [param p_confidence]: Confidence score between 0.0 and 1.0
    • [return]: ValidationResultComponent instance
  • warnings: Array
    • Timestamp when validation was performed.
    • Reference to the entity that performed the validation.
    • Map of rule ID to its individual result data
    • Static factory for success results.
    • [param p_confidence]: Confidence score between 0.0 and 1.0
    • [return]: ValidationResultComponent instance
    • Legacy static factory for success results (test compatibility).
    • [return]: ValidationResultComponent instance
    • Static factory for failure results.
    • [param p_issues]: Array of issue strings
    • [param p_confidence]: Confidence score between 0.0 and 1.0
    • [return]: ValidationResultComponent instance
    • Legacy static factory for failure results (test compatibility).
    • [param p_issues]: Array of issue strings
    • [return]: ValidationResultComponent instance
    • Static factory from RuleResult.
    • [param result]: RuleResult object or Dictionary
    • [return]: ValidationResultComponent instance
  • validation_timestamp: float = 0.0
    • Reference to the entity that performed the validation.
    • Map of rule ID to its individual result data
    • Static factory for success results.
    • [param p_warnings]: Array of warning strings
    • [param p_confidence]: Confidence score between 0.0 and 1.0
    • [return]: ValidationResultComponent instance
  • validated_by_entity_id: String = ""
    • Map of rule ID to its individual result data
    • Static factory for success results.
    • [param p_warnings]: Array of warning strings
    • [param p_confidence]: Confidence score between 0.0 and 1.0
    • [return]: ValidationResultComponent instance

Methods

  • success(p_warnings: Array) -> ValidationResultComponent
  • create_success(p_warnings: Array) -> ValidationResultComponent
  • failure(p_issues: Array, p_warnings: Array) -> ValidationResultComponent
  • create_failure(p_issues: Array, p_warnings: Array) -> ValidationResultComponent
  • from_rule_result(result: Variant) -> ValidationResultComponent
  • from_dict(data: Dictionary) -> ValidationResultComponent
    • Extract data with explicit key checking and type safety
  • _init(p_successful: bool = false, p_issues: Array, p_warnings: Array)
  • add_issue(issue: String) -> void
  • add_issues(new_issues: Array) -> void
  • is_success -> bool
  • merge_with(other: ValidationResultComponent) -> void
  • set_rule_result(rule_id: String, result: Dictionary) -> void
  • get_rule_result(rule_id: String) -> Variant
  • did_rule_pass(rule_id: String) -> bool
  • get_rule_issues(rule_id: String) -> Array
  • has_issues -> bool
  • to_dict -> Dictionary