Cafu Engine
WorldMan.hpp
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 */
6 
7 #ifndef CAFU_WORLD_MANAGER_HPP_INCLUDED
8 #define CAFU_WORLD_MANAGER_HPP_INCLUDED
9 
10 #include "World.hpp"
11 
12 
13 class WorldManT
14 {
15  public:
16 
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);
19 
20  ~WorldManT();
21 
22 
23  private:
24 
25  struct WorldInfoT
26  {
27  std::string FileName;
28  unsigned long RefCount;
29  bool Init4Gfx;
30  WorldT* WorldPtr;
31  };
32 
33  void InitWorldForGfx(WorldInfoT& WI);
34 
35  ArrayT<WorldInfoT> Worlds;
36 };
37 
38 #endif
Definition: World.hpp:85
This class is used for managing model instances.
Definition: ModelManager.hpp:31
Definition: WorldMan.hpp:13
This class manages and provides resources (fonts and models) for GuiImplT instances.
Definition: GuiResources.hpp:26