Table of Contents

Class PlacementInstantiatorService

Namespace
GridPlacement.GDScript
Assembly
MoonBark.GridPlacement.GDScript.dll

Scene-free placement instantiator service.\n\nExtracted from PlacementInstantiator (6.0.0-AC Phase 1). 2 add_child calls preserved: the parent is read from _placement_state.placed_parent, which the host wires in resolve_dependencies.\n\nHosted by GridPlacementHost; the old PlacementInstantiator Node class is a thin wrapper that forwards to this service.

class PlacementInstantiatorService extends PlacementInjectable
PlacementInstantiatorService

Fields

DEFAULT_NAME

const DEFAULT_NAME = "PlacementInstantiator"

WARNING_INVALID_PLACEABLE

const WARNING_INVALID_PLACEABLE = "Invalid placeable resource. Can't instantiate. [%s]"

WARNING_NO_PREVIEW

const WARNING_NO_PREVIEW = "No preview instance provided to instantiate from. Returning null."

Properties

instance

var instance = p_placeable.packed_scene.instantiate()

placeable_instance

var placeable_instance = PlaceableInstance.new(p_placeable.resource_path)

Methods

resolve_placement_dependencies

func resolve_placement_dependencies(p_container: PlacementContainer) -> bool:

Parameters

p_container

Returns

get_runtime_issues

func get_runtime_issues() -> Array[String]:

Returns

instantiate_building

func instantiate_building(p_placeable: ScenePlacementEntry, p_preview: Node2D) -> Node2D:

Parameters

p_placeable
p_preview

Returns