ValidationResults
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
Results from building rule validation tests.
Source File: /addons/grid_building/placement/placement_rules/validation_results.gd
Extends: RefCounted
Properties
- Property:
message : String- Success or failure message. - Property:
rule_results : Dictionary[PlacementRule, RuleResult] = {}- Individual rule results
Private Properties
Property:
_errors : Array[String] = [](private)Setup/configuration errors (developer problems) Fix these issues for your game
Public Methods
add_rule_result
| |
Adds a rule result for a specific placement rule.
get_issues
| |
add_error
| |
Adds a configuration/setup error This should be reported to the developer appropriately
add_issue
| |
Adds a setup/configuration issue (alias for add_error). Used by pure validation logic callers that expect an ‘add_issue’ API.
is_successful
| |
Checks that there were no validation issues with the placement of the object
has_failing_rules
| |
Whether the validation had any failing placement rules
has_errors
| |
Whether the validation had any development configuration or setup errors These should be reported to the developer
get_successful_rules
| |
Gets the successful rules
get_failing_rules
| |
Gets the failing rules
get_errors
| |
Gets the configuration/setup errors in a duplicated array
get_failing_rule_results
| |
Gets the failing rules and their issues Array[String]
get_summary_string
| |
Generates a concise summary string of the validation results.
Private Methods
_init
| |
Flags: private
Constructor for creating validation results.
p_is_successful: bool - Whether validation passed
p_message: String - Success or failure message
p_rule_results: Dictionary[PlacementRule, Array] - Individual rule results including an array of issues for each rule prevent successful placement validation
Grid Building v5.0.8 | Generated 24/05/2026