Skip to content

Class

RefundService

Generated GDScript class reference for GridPlacement.RefundService.

Status
Current
Version
v6.0
Source updated
Active v6.0 guide line from Grid Placement repo
Generated on
2026-09-01

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 [code]_CalculatorRefunder[/code] adapter bridges this service into the [ManipulationState.refunders] array so the manipulation pipeline calls [method 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 [member container_override] directly instead.
container_overridePropertyCode-settable container override. When set, wins over [member locator].
servicePropertyAdapter bridging the RefCounted service into the Node-based refunders array.
on_pre_demolishMethod
configureMethod
registerMethod
bind_sessionMethod
unregisterMethod
disposeMethod
refundMethod
get_runtime_issuesMethod