Toggle Interface implementation. Class toggling connections created and class switching via class selection menu completed.

This commit is contained in:
2023-10-24 04:52:24 -05:00
parent 598ce523e9
commit cedb465c79
18 changed files with 162 additions and 37 deletions
+13
View File
@@ -20,6 +20,7 @@
#include "Menu.h"
#include "GameState.h"
#include "Item.h"
#include "Toggleable.h"
INCLUDE_EMITTER_LIST
@@ -143,6 +144,8 @@ bool Crawler::OnUserCreate(){
GameState::Initialize();
ValidateGameStatus(); //Checks to make sure everything has been initialized properly.
return true;
}
@@ -1818,4 +1821,14 @@ void Crawler::InitializeGraphics(){
MapTag Crawler::GetCurrentMap(){
return MAP_DATA[GetCurrentLevel()].MapData;
}
void Crawler::ValidateGameStatus(){
if(IToggleable::uninitializedToggleGroupItems.size()>0){
for(IToggleable*item:IToggleable::uninitializedToggleGroupItems){
std::cout<<"\tUninitialized Toggle Item Ptr: 0x"<<std::hex<<item<<std::endl;
}
std::cout<<"Error TOGGLE!!! Please turn on debug_toggleable_items in configuration.txt and re-run the program to see which toggleable item did not properly get a toggleable group set."<<std::endl;
throw;
}
}