void AEngineFramework::Desc::deserialize(lua::State* luaState, const LuaPlus::LuaObject& src){ // Logging LuaObject loggingTable = src.Get("logging"); if(loggingTable.IsTable()){ luaConv(loggingTable.Get("filePath"), logging.filePath); luaConv(loggingTable.Get("enabled"), logging.enabled); } // Layout LuaObject windowTable = src.Get("window"); window.deserialize(luaState, windowTable); // File system LuaObject fileSysTable = src.Get("file_system"); fileSystem.deserialize(luaState, fileSysTable); // Misc luaConv(src.Get("home_dir"), homeDir); luaConv(src.Get("main_loop_step"), mainLoopStep); }
void ProjectScene::deserialize(wt::lua::State* luaState, const LuaPlus::LuaObject& src){ mPath = src.Get("path").ToString(); mId = src.Get("id").ToInteger(); }