Implemented state machine & added NPC ship template

This commit is contained in:
2ndbeam 2024-05-01 17:45:17 +03:00
commit bda9232e72
15 changed files with 284 additions and 22 deletions

11
scripts/faction.gd Normal file
View file

@ -0,0 +1,11 @@
extends Node
class_name FactionNode
## Faction that is represented with this node
@export var faction: Game.Faction
func _ready():
for child in get_children():
if "faction" in child:
child.faction = faction