Skip to content

Class

Refunder

Generated GDScript class reference for GridPlacement.Refunder.

Status
Current
Version
v6.3.0
Source updated
2026-10-29
Generated on
2026-10-29

6.3. These pages document the 6.3 release, where placeable is now entry (what changed) and PlacementOwner is deprecated (migration). Still on 6.2? Your version's guides ship inside the plugin itself, under addons/grid_placement/guides/; the 6.2 URLs on this site now redirect to this series.

Base class for consumers who want to inspect / veto a demolish at ManipulationState.pre_demolish time (5.1.0-D refund contract). Register instances on ManipulationState.refunders; each one is called with the live Manipulatable and the BuildCost stamped at placement time (or null when nothing was stamped). Implement on_pre_demolish() and return true to veto the demolition. Authority contract: on_pre_demolish() is veto-only. Apply refunds, resource grants, or other game-world consequences from on_demolish_confirmed(), which runs after the demolish is FINISHED and after every registered refunder has had its veto chance. Applying consequences from on_pre_demolish() can grant a refund for a demolish a later refunder vetoes.

Source: addons/grid_placement/systems/manipulation/refunder.gd

Syntax

class Refunder extends RefCounted

Members

NameKindSummary
on_pre_demolishMethod
on_demolish_confirmedMethod