11 lines
216 B
GDScript
11 lines
216 B
GDScript
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
|