From 5436dc4f12671d2605944bed03e1f8ab7853056c Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 8 Mar 2025 16:13:23 -0500 Subject: Added options pane --- src/ap_state.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/ap_state.cpp') diff --git a/src/ap_state.cpp b/src/ap_state.cpp index 01ee065..c3e7f5b 100644 --- a/src/ap_state.cpp +++ b/src/ap_state.cpp @@ -71,6 +71,7 @@ struct APState { DoorShuffleMode door_shuffle_mode = kNO_DOORS; bool group_doors = false; bool color_shuffle = false; + PanelShuffleMode panel_shuffle_mode = kNO_PANELS; bool painting_shuffle = false; int mastery_requirement = 21; int level_2_requirement = 223; @@ -133,6 +134,7 @@ struct APState { door_shuffle_mode = kNO_DOORS; group_doors = false; color_shuffle = false; + panel_shuffle_mode = kNO_PANELS; painting_shuffle = false; painting_mapping.clear(); painting_codomain.clear(); @@ -469,6 +471,7 @@ struct APState { } } color_shuffle = slot_data["shuffle_colors"].get() == 1; + panel_shuffle_mode = slot_data["shuffle_panels"].get(); painting_shuffle = slot_data["shuffle_paintings"].get() == 1; mastery_requirement = slot_data["mastery_achievements"].get(); level_2_requirement = slot_data["level_2_requirement"].get(); @@ -762,6 +765,12 @@ int AP_GetLevel2Requirement() { return GetState().level_2_requirement; } +LocationChecks AP_GetLocationsChecks() { + std::lock_guard state_guard(GetState().state_mutex); + + return GetState().location_checks; +} + bool AP_IsLocationVisible(int classification) { std::lock_guard state_guard(GetState().state_mutex); @@ -789,6 +798,12 @@ bool AP_IsLocationVisible(int classification) { return (world_state & classification); } +PanelShuffleMode AP_GetPanelShuffleMode() { + std::lock_guard state_guard(GetState().state_mutex); + + return GetState().panel_shuffle_mode; +} + VictoryCondition AP_GetVictoryCondition() { std::lock_guard state_guard(GetState().state_mutex); -- cgit 1.4.1