Vast improvements and a working finite state machine, working on new guild member registration.
This commit is contained in:
15
guildhall.gd
Normal file
15
guildhall.gd
Normal file
@@ -0,0 +1,15 @@
|
||||
class_name Guildhall extends Node2D
|
||||
|
||||
var employees : Dictionary[String, GuildEmployee] = {}
|
||||
|
||||
func _ready() -> void:
|
||||
Guild.hall = self
|
||||
for child in get_children():
|
||||
if child is GuildEmployee:
|
||||
register_employee(child)
|
||||
|
||||
|
||||
func register_employee(employee: GuildEmployee) -> void:
|
||||
employees[employee.name] = employee
|
||||
func add_sprite(sprite : Adventurer) -> void:
|
||||
add_child(sprite)
|
||||
Reference in New Issue
Block a user