Implemented state machine & added NPC ship template
This commit is contained in:
parent
2d4eb92751
commit
bda9232e72
15 changed files with 284 additions and 22 deletions
11
scripts/faction.gd
Normal file
11
scripts/faction.gd
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue