feat(nav): add GameState.set_current_room and AudioManager.DEFAULT_MUSIC_VOLUME

This commit is contained in:
Steven Wroblewski
2026-05-10 20:53:25 +02:00
parent 43a7e6bde4
commit c2edaf2761
4 changed files with 23 additions and 0 deletions
+13
View File
@@ -181,3 +181,16 @@ func test_apply_save_data_restores_chest_state() -> void:
}
GameState.apply_save_data(data)
assert_eq(GameState.get_chest_state("reception_desk_test"), ["clipboard", "pen"])
func test_set_current_room_updates_value() -> void:
GameState.set_current_room("xray")
assert_eq(GameState.current_room, "xray")
GameState.set_current_room("reception")
func test_set_current_room_emits_state_changed() -> void:
watch_signals(GameState)
GameState.set_current_room("pharmacy")
assert_signal_emitted(GameState, "state_changed")
GameState.set_current_room("reception")