Skip to content

PlacementRule

Whether the rule is ready for use.

validate_placement( ) -> RuleResult

Checks a set of shape casts for building validity and returns whether the condition has been met or not

setup( p_gts: GridTargetingState ) -> Array[String]

The base function sets the grid targeting state for context which sources the target object being placed and the placer. Returns any issues found in the setup as an Array[String].

p_gts: GridTargetingState - Holds contextual state information for what is being targeted for placement and who is doing the placing

apply( ) -> Array[String]

Optional code to be executed if this and all other tested rules validate successfully

tear_down( ) -> void

Any cleanup code to run after the system changes preview instances or stops building Runs before the building system changes placeable preview

get_editor_issues( ) -> Array[String]

Returns an array of issues found during editor validation

get_runtime_issues( ) -> Array[String]

Returns an array of issues found during runtime validation

addons/grid_building/placement/placement_rules/placement_rule.gd


This page was auto-generated from GDScript source. Edit the source file to improve documentation.

Generated on 2025-09-07