2024-10-06 09:38:15 +00:00
|
|
|
class_name RoomTemplate extends Node3D
|
|
|
|
|
|
2024-10-18 16:10:51 +00:00
|
|
|
var initialised: bool = false
|
|
|
|
|
|
|
|
|
|
var has_stage: bool:
|
|
|
|
|
set(value):
|
|
|
|
|
has_stage = value
|
|
|
|
|
if has_stage and not initialised:
|
|
|
|
|
start_room()
|
|
|
|
|
|
|
|
|
|
|
2024-10-06 09:38:15 +00:00
|
|
|
@export var save_game:SaveGame = null
|
|
|
|
|
|
2024-10-18 16:10:51 +00:00
|
|
|
func start_room():
|
|
|
|
|
pass
|
|
|
|
|
|
2024-10-06 09:38:15 +00:00
|
|
|
func pull_save_state(save: SaveGame) -> void:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
func save_room():
|
|
|
|
|
pull_save_state(save_game)
|
2025-03-25 21:34:13 +00:00
|
|
|
save_game.save_to_file(get_tree().root.get_texture())
|
2025-06-03 21:17:29 +00:00
|
|
|
|
|
|
|
|
func prepare_transition():
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
func unload():
|
|
|
|
|
pass
|