Class Refunder
- Namespace
- GridPlacement.GDScript
- Assembly
- MoonBark.GridPlacement.GDScript.dll
Base class for consumers who want to inspect / veto a demolish at [signal ManipulationState.pre_demolish] time (5.1.0-D refund contract).\n\nRegister instances on [member ManipulationState.refunders]; each one is called with the live [Manipulatable] and the [BuildCost] stamped at placement time (or [code]null[/code] when nothing was stamped). Implement [method on_pre_demolish] and return [code]true[/code] to veto the demolition.
class Refunder extends RefCounted
Refunder
Methods
on_pre_demolish
func on_pre_demolish(_p_target: Manipulatable, _p_cost: BuildCost) -> bool:
Parameters
_p_target_p_cost