Mercurial > mm7
view Engine/LuaVM.h @ 2541:a902abdfc7f2
1. Renamed class Game to class Engine.
2. Separated game logic as state of FSM from game logic as engine.
3. Found out that many UI screen initializers were optimized away, intially
they all returned newly created window as separate object like it is done
in CharacterUI_Initialize.
author | a.parshin |
---|---|
date | Sun, 10 May 2015 01:29:11 +0200 |
parents | 68cdef6879a0 |
children |
line wrap: on
line source
#pragma once class LuaVM { public: inline LuaVM(): L(nullptr) {} void Initialize(); bool DoFile(const char *filename); protected: struct lua_State *L; const char *GetScriptFileLocation(const char *script_name); }; extern LuaVM *lua;