Remove Strings and CurrentStrings from GameFlow; they were for the old system. Remove LoadScript for the same reason.

This commit is contained in:
hispidence 2021-06-25 14:33:26 +01:00
parent 350d0426ca
commit 1fbb41d997
3 changed files with 0 additions and 20 deletions

View file

@ -17,10 +17,6 @@ extern vector<AudioTrack> g_AudioTracks;
GameFlow::GameFlow(sol::state* lua) : LuaHandler{ lua }
{
//Hardcode in English - old strings for now; will be removed shortly
LanguageScript* lang = new LanguageScript("English");
Strings.push_back(lang);
// Settings type
m_lua->new_usertype<GameScriptSettings>("GameScriptSettings",
"screenWidth", &GameScriptSettings::ScreenWidth,
@ -116,11 +112,6 @@ GameFlow::~GameFlow()
{
delete lev;
}
for (auto& lang : Strings)
{
delete lang;
}
}
void GameFlow::SetLanguageNames(sol::as_table_t<std::vector<std::string>> && src)
@ -158,13 +149,6 @@ void GameFlow::AddTracks() {
}
}
bool __cdecl LoadScript()
{
g_GameFlow->CurrentStrings = g_GameFlow->Strings[0];
return true;
}
bool GameFlow::LoadGameFlowScript()
{
// Load the enums file