bazar_alea/client/player/AttributesManager.gd

14 lines
314 B
GDScript3
Raw Normal View History

2023-11-14 21:41:08 +00:00
extends Node
class_name AttributesManager
@export var character : Node
var attributes : Dictionary
func _ready():
for child in get_children():
if !(child is GameAttribute):
2023-11-19 19:41:38 +00:00
continue
#assert( !(child is GameAttribute), "Only GameAttribute childs are allowed")
2023-11-14 21:41:08 +00:00
attributes[child.attribute_name] = child