Skip to content

RuleCheckIndicatorLogic

Helper logic and diagnostics for RuleCheckIndicator.

Centralizes small, side-effect-free helpers used by tests and runtime tooling to avoid duplicating formatting and inspection code across test suites.

Functions here are pure (no printing/logging). Callers decide whether to log or attach strings to assertions.

static func build_rules_diag( ind: RuleCheckIndicator ) -> String

Build a concise rules diagnostic string for an indicator. ind: The indicator to inspect Returns: A short summary like: “rules=2 [{pass_on_collision=true, mask=1}, …]“

static func build_visuals_diag( ind: RuleCheckIndicator ) -> String

Build a visual/texture diagnostic for current indicator state. ind: The indicator to inspect Returns: A summary like: “display=valid_settings tex=(valid=true, invalid=false) modulate=Color(1,1,1,1)“

static func build_rules_diag_from_rules( rules: Array ) -> String

Build a concise rules diagnostic from a rules array (no indicator object required)

static func find_highest_rule_with_visual_settings( p_rules: Array[TileCheckRule] ) -> TileCheckRule

Find the rule with highest visual priority that defines fail_visual_settings.

addons/grid_building/placement/rule_check_indicator/rule_check_indicator_logic.gd


This API reference is automatically generated from the plugin source code. For implementation examples and usage guides, see the guides section.