Chris' Tutorials
Docs/Grid Placement

Class

RefundService

Generated GDScript class reference for GridPlacement.RefundService.

StatusDraft
Versionv6.0
UpdatedDevelopment docs generated from GDScript source

This is unreleased documentation in active development. APIs, class names, and behavior may change before the final release.

Draft — Unreleased:This page is in active development. APIs, class names, and behavior may change before the release is finalized. Use it as a preview of what's coming — not as a stable integration target.

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
containerProperty
calculatorProperty
get_runtime_issuesMethod
issuesProperty
owner_rootProperty

Source

addons/grid_placement/systems/manipulation/refund_service.gd

Plugin docs root:gdscript/plugins/grid_placement_dev/docs