Skip to content

Class

RefundService

Generated GDScript class reference for GridPlacement.RefundService.

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.

Scene-free refund service for the 5.1 refund contract (6.0.0-S). Replaces the removed 5.x RefundSystem node. Owns the pure refund logic — resolve a container, compute refund amounts via RefundCalculator, and apply them through the canonical id interface. No tree dependency. Embed in a Refunder, wrap in a host service, or use standalone. The inner _CalculatorRefunder adapter bridges this service into the [ManipulationState.refunders] array so the manipulation pipeline calls on_pre_demolish() during demolish.

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

Syntax

class RefundService extends Refunder

Members

NameKindSummary
refund_ratioPropertyFraction of the original cost returned on demolish (demo default: half).
roundingPropertyRounding policy for fractional refund amounts.
locatorPropertyLocates the materials container under the placement owner root (the same locator pattern the spend rules use). Bootstrap code can set container_override directly instead.
container_overridePropertyCode-settable container override. When set, wins over locator.
servicePropertyAdapter bridging the RefCounted service into the Node-based refunders array.
on_pre_demolishMethod
on_demolish_confirmedMethod
configureMethod
registerMethod
bind_sessionMethod
old_manipulationPropertydirectly; leaving manipulation_state stale means demolish on the new session would still hit the old session's ManipulationState pipeline.
incomingProperty
unregisterMethod
disposeMethod
refundMethod
get_runtime_issuesMethod