Skip to content

Class

IdRegistry

Generated GDScript class reference for GridPlacement.IdRegistry.

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.

Central, type-safe registry of declared ids (6.0.0). Replaces per-service allowlists ("lean whitelists") with a single static service that catches "wodo"-vs-"wood" typos at LOAD time rather than at the silent-miss point of use. Loaders (placement_catalog, terrain_palette, settings) call register() during their _init / load path; spend rules call assert_known() / is_known() before removing ids from a provider. Domain-namespace surface: every id is registered against a domain constant (DOMAIN_RESOURCES, DOMAIN_TERRAIN). This lets wodo collide against wood inside the same resources table while keeping spend ids clearly distinct from terrain names. Scene-free. RefCounted-extension is only nominal (GDScript requires it for class_name) — usage is fully static. No teardown wiring needed; clear_all() is available for test cleanup.

Source: addons/grid_placement/services/id_registry.gd

Syntax

class IdRegistry extends RefCounted

Members

NameKindSummary
DOMAIN_RESOURCESFieldObject/scene/spend-rule id domain.
DOMAIN_TERRAINFieldTerrain name domain (from TileSet / TerrainPalette).
registerMethod
is_knownMethod
assert_knownMethod
get_dataMethod
clear_allMethod