Emergency 20 Dokumentation  4.2.0
UnitPoolManager.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include "em5/game/units/UnitPool.h" // Not directly needed, but whoever needs the manager will probably also need the unit pool included
15 
17 
18 
19 //[-------------------------------------------------------]
20 //[ Namespace ]
21 //[-------------------------------------------------------]
22 namespace em5
23 {
24 
25 
26  //[-------------------------------------------------------]
27  //[ Classes ]
28  //[-------------------------------------------------------]
29  class EM5_API_EXPORT UnitPoolManager : public qsf::ElementManager<uint32, UnitPoolDefinition>
30  {
31 
32 
33  //[-------------------------------------------------------]
34  //[ Public methods ]
35  //[-------------------------------------------------------]
36  public:
42 
47  virtual ~UnitPoolManager();
48 
53  void loadAssets();
54 
65  const UnitPoolDefinition* getUnitPoolDefinitionById(const qsf::StringHash& id) const;
66 
67 
68  };
69 
70 
71 //[-------------------------------------------------------]
72 //[ Namespace ]
73 //[-------------------------------------------------------]
74 } // em5
Definition: ActionPriority.h:13
#define EM5_API_EXPORT
Definition: Export.h:28
Element manager class template.
Definition: ElementManager.h:71
Definition: UnitPoolDefinition.h:30
Compile time string hash class.
Definition: StringHash.h:59
Definition: UnitPoolManager.h:29