bazar_alea/client/player/AttributesManager.gd
2023-11-19 20:41:38 +01:00

14 lines
314 B
GDScript

extends Node
class_name AttributesManager
@export var character : Node
var attributes : Dictionary
func _ready():
for child in get_children():
if !(child is GameAttribute):
continue
#assert( !(child is GameAttribute), "Only GameAttribute childs are allowed")
attributes[child.attribute_name] = child