Fix issue in Rocket.lua script.
[Cafu-Engine.git] / Common / WorldMan.hpp
blobe0a035167cd9dd7f6715833d79e02d70c12e6ffb
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
7 #ifndef CAFU_WORLD_MANAGER_HPP_INCLUDED
8 #define CAFU_WORLD_MANAGER_HPP_INCLUDED
10 #include "World.hpp"
13 class WorldManT
15 public:
17 const WorldT* LoadWorld(const char* FileName, ModelManagerT& ModelMan, cf::GuiSys::GuiResourcesT& GuiRes, bool InitForGraphics, WorldT::ProgressFunctionT ProgressFunction=NULL);
18 void FreeWorld(const WorldT* World);
20 ~WorldManT();
23 private:
25 struct WorldInfoT
27 std::string FileName;
28 unsigned long RefCount;
29 bool Init4Gfx;
30 WorldT* WorldPtr;
33 void InitWorldForGfx(WorldInfoT& WI);
35 ArrayT<WorldInfoT> Worlds;
38 #endif