30 lines
474 B
GDScript
30 lines
474 B
GDScript
class_name RoomTemplate extends Node3D
|
|
|
|
var initialised: bool = false
|
|
var id: State.rooms
|
|
|
|
var has_stage: bool:
|
|
set(value):
|
|
has_stage = value
|
|
if has_stage and not initialised:
|
|
start_room()
|
|
|
|
|
|
@export var save_game:SaveGame = null
|
|
|
|
func start_room():
|
|
pass
|
|
|
|
func pull_save_state(save: SaveGame) -> void:
|
|
pass
|
|
|
|
func save_room():
|
|
pull_save_state(save_game)
|
|
save_game.save_to_file(get_tree().root.get_texture())
|
|
|
|
func prepare_transition():
|
|
pass
|
|
|
|
func unload():
|
|
pass
|