PlacementRule
AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: systems/placement/validators/placement_rules/placement_rule.gd
Version: 5.1
class_name: PlacementRule
extends: GBResource
Summary
Base class for placement validation conditions.
Signals
(none)
Exports
(none)
Methods
validate_placement()- Checks a set of shape casts for building validity and returns whether the condition has been met or not [param p_context]: Data-only context for validation (Snapshot, Placeable, etc)
setup()- Setup hook called by placement validator before validation.
Rules should only read from the passed
p_contextand store any derived configuration.
- Setup hook called by placement validator before validation.
Rules should only read from the passed
apply()- Optional code to be executed if this and all other tested rules validate successfully
tear_down()- Any cleanup code to run after the system changes preview instances or stops building Runs before the building system changes placeable preview
_to_string()get_editor_issues()- Returns an array of issues found during editor validation
get_runtime_issues()- Returns an array of issues found during runtime validation