From 42c1f4d29333b2ba2df2d6feb33e0684931f924d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 3 Apr 2022 08:25:04 +0200 Subject: [PATCH] :sparkles: Create Ownership behaviour to mark entity ownership --- src/entities/behaviours/Ownership.gd | 4 ++++ src/entities/behaviours/Ownership.tscn | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 src/entities/behaviours/Ownership.gd create mode 100644 src/entities/behaviours/Ownership.tscn diff --git a/src/entities/behaviours/Ownership.gd b/src/entities/behaviours/Ownership.gd new file mode 100644 index 0000000..a59626c --- /dev/null +++ b/src/entities/behaviours/Ownership.gd @@ -0,0 +1,4 @@ +extends Node + + +var entity_owner: Node = null diff --git a/src/entities/behaviours/Ownership.tscn b/src/entities/behaviours/Ownership.tscn new file mode 100644 index 0000000..a0f8b10 --- /dev/null +++ b/src/entities/behaviours/Ownership.tscn @@ -0,0 +1,3 @@ +[gd_scene format=2] + +[node name="Ownership" type="Node"]