maxgame/addons/popochiu/engine/templates/room_template.gd
2025-07-17 01:49:18 -04:00

30 lines
798 B
GDScript

@tool
extends PopochiuRoom
const Data := preload('room_state_template.gd')
var state: Data = null
#region Virtual ####################################################################################
# What happens when Popochiu loads the room. At this point the room is in the
# tree but it is not visible
func _on_room_entered() -> void:
pass
# What happens when the room changing transition finishes. At this point the room
# is visible.
func _on_room_transition_finished() -> void:
# You can use await E.queue([]) to execute a sequence of instructions
pass
# What happens before Popochiu unloads the room.
# At this point, the screen is black, processing is disabled and all characters
# have been removed from the $Characters node.
func _on_room_exited() -> void:
pass
#endregion