Cow_Life_Sim_RPG/Interactions/Building/BuildingSpot/Buildable.gd

32 lines
586 B
GDScript

extends Interaction
func _ready():
add_action("Plan", plan, plan_check)
add_action("Build", build, build_check)
add_action("Arson", arson, arson_check)
add_action("Demolish", demolish, demolish_check)
func build():
get_parent().build()
func build_check():
return get_parent().build_check()
func plan():
get_parent().plan()
func plan_check():
return get_parent().plan_check()
func demolish():
get_parent().demolish()
func demolish_check():
return get_parent().demolish_check()
func arson():
get_parent().arson()
func arson_check():
return get_parent().arson_check()