Class PlacementOwner
- Namespace
- GridPlacement.GDScript
- Assembly
- MoonBark.GridPlacement.GDScript.dll
Component that assigns an entity as the active owner on a user state resource.\n\nThis node can automatically or manually designate an owner_root (such as a CharacterBody2D, NPC, or other) as the active entity within the system, enabling participation in grid-based logic.
class PlacementOwner extends PlacementGameNode
PlacementOwner
Properties
owner_root
The root node representing the entity that owns this component.\n\nThis can be a player character, AI agent, NPC, or any other node that acts as the owning entity. This node will be assigned as the active entity in the user state.
@export var owner_root: Node :
validation_issues
var validation_issues = get_runtime_issues()
Methods
resolve_placement_dependencies
func resolve_placement_dependencies(p_container: PlacementContainer) -> void:
Parameters
p_container
Returns
get_runtime_issues
func get_runtime_issues() -> Array[String]:
Returns
Events
root_changed
Emits if the root owning node ever changes
signal root_changed(new_root: Node)