Partially integrate ScriptInterfaceFlow and replace instances of direct access to Animations members.

This commit is contained in:
hispidence 2022-01-25 23:52:20 +00:00
parent 4429bd8aa2
commit 2a9175f5fb
9 changed files with 37 additions and 22 deletions

View file

@ -16,7 +16,7 @@ using std::string;
using std::vector;
using std::unordered_map;
GameFlow* g_GameFlow;
ScriptInterfaceFlow* g_GameFlow;
ScriptInterfaceGame* g_GameScript;
GameFlow::GameFlow(sol::state* lua) : LuaHandler{ lua }
@ -231,6 +231,11 @@ int GameFlow::GetNumLevels() const
return Levels.size();
}
bool GameFlow::IsFlyCheatEnabled() const
{
return FlyCheat;
}
bool GameFlow::DoGameflow()
{
// We start with the title level