2026-01-22 10:02:58 +00:00
|
|
|
extends Room
|
2026-01-20 22:19:20 +00:00
|
|
|
class_name SubwaySequence
|
2026-01-20 09:08:19 +00:00
|
|
|
|
|
|
|
|
@export var all_stations: Dictionary[Station.id, Station]
|
|
|
|
|
@export var all_lines: Dictionary[TrainLine.id, TrainLine]
|
|
|
|
|
func _ready() -> void:
|
|
|
|
|
id = State.rooms.TRANSITION
|
2026-01-21 14:09:59 +00:00
|
|
|
super._ready()
|
2026-01-20 09:08:19 +00:00
|
|
|
|
2026-01-21 00:54:01 +00:00
|
|
|
|
2026-01-20 09:08:19 +00:00
|
|
|
func start_room():
|
2026-01-21 16:11:25 +00:00
|
|
|
await super.start_room()
|
|
|
|
|
|
2026-01-20 09:08:19 +00:00
|
|
|
Scenes.player_enable.emit(true)
|
2026-01-21 16:11:25 +00:00
|
|
|
|
2026-01-20 09:08:19 +00:00
|
|
|
await Main.curtain.open()
|
2026-01-21 16:11:25 +00:00
|
|
|
|
2026-01-20 09:08:19 +00:00
|
|
|
|
|
|
|
|
func pull_save_state(save: SaveGame) -> void:
|
|
|
|
|
save.sequences_enabled = Scenes.enabled_sequences
|
|
|
|
|
save_game = save
|
|
|
|
|
|
|
|
|
|
# Call parent to restore player position
|
|
|
|
|
super.pull_save_state(save)
|