예제 #1
0
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);
}
예제 #2
0
파일: ProjectScene.cpp 프로젝트: spiricn/Wt
void ProjectScene::deserialize(wt::lua::State* luaState, const LuaPlus::LuaObject& src){
	mPath = src.Get("path").ToString();
	mId = src.Get("id").ToInteger();
}