Skip to content

Class

RefundService

Generated GDScript class reference for GridPlacement.RefundService.

Status
Current
Version
v6.2.1
Source updated
2026-09-24
Generated on
2026-10-22

Scene-free refund service for the 5.1 refund contract (6.0.0-S). Extracted from RefundSystem (now deprecated). 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