diff --git a/core/scripts/entity.gd b/core/scripts/entity.gd index d69e400..4ed240f 100644 --- a/core/scripts/entity.gd +++ b/core/scripts/entity.gd @@ -1,15 +1,18 @@ @icon('uid://br8ndde8qty32') -extends Node3D +extends Node class_name Entity -## Base entity class for everything interactive. +## Base entity class for everything not static. ## ## Should be the parent of every units, buildings, -## npc, loot, and everything that the player can interact with in 3D - +## npc, loot, and everything that the player can interact with +## +## Is a node, because we want to deactivate rendering when out of camera and only simulating the world. +## Plus, only the entity is replicated in multiplayer func _ready() -> void: + add_to_group('entity') add_to_group('selectable-entity')