MCPcopy Create free account
hub / github.com/EasyRPG/Player / DoSwitch

Method DoSwitch

src/scene_debug.cpp:1009–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007}
1008
1009void Scene_Debug::DoSwitch() {
1010 const auto sw_id = GetFrame().value;
1011 if (Main_Data::game_switches->IsValid(sw_id)) {
1012 Main_Data::game_switches->Flip(sw_id);
1013 Game_Map::SetNeedRefresh(true);
1014
1015 RefreshDetailWindow();
1016 }
1017}
1018
1019void Scene_Debug::DoVariable() {
1020 const auto var_id = GetFrame(1).value;

Callers

nothing calls this directly

Calls 2

IsValidMethod · 0.45
FlipMethod · 0.45

Tested by

no test coverage detected