feat(nav): add GameState.set_current_room and AudioManager.DEFAULT_MUSIC_VOLUME
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user