From 32c9345bfb50e24ec2cf2659da39dc5436e5d5b3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 13 Apr 2024 23:43:19 +0200 Subject: [PATCH] Create marker scene `Edible` to allow an entity to detect what other entities it can eat --- behaviours/edible.gd | 5 +++++ behaviours/edible.tscn | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 behaviours/edible.gd create mode 100644 behaviours/edible.tscn diff --git a/behaviours/edible.gd b/behaviours/edible.gd new file mode 100644 index 0000000..5774bf5 --- /dev/null +++ b/behaviours/edible.gd @@ -0,0 +1,5 @@ +extends Node +class_name Edible + + +@export var tag: StringName diff --git a/behaviours/edible.tscn b/behaviours/edible.tscn new file mode 100644 index 0000000..341f76d --- /dev/null +++ b/behaviours/edible.tscn @@ -0,0 +1,3 @@ +[gd_scene format=3 uid="uid://dfdr3e32lohq"] + +[node name="Edible" type="Node"]