Emergency 20 Dokumentation  4.2.0
OrderInfoManager.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 //[-------------------------------------------------------]
14 
16 
17 
18 //[-------------------------------------------------------]
19 //[ Namespace ]
20 //[-------------------------------------------------------]
21 namespace em5
22 {
23 
24 
25  //[-------------------------------------------------------]
26  //[ Classes ]
27  //[-------------------------------------------------------]
28  class EM5_API_EXPORT OrderInfoManager : public qsf::ElementManager<uint32, OrderInfo>
29  {
30 
31 
32  //[-------------------------------------------------------]
33  //[ Public methods ]
34  //[-------------------------------------------------------]
35  public:
41 
46  virtual ~OrderInfoManager();
47 
52  void loadAssets();
53 
61  bool loadByFilename(const std::string& filename);
62 
70  bool saveByFilename(const std::string& filename);
71 
82  const OrderInfo* getOrderInfoById(const qsf::StringHash& id) const;
83 
94  OrderInfo* getOrderInfoByIdForWriting(const qsf::StringHash& id);
95 
106  const OrderInfo* getOrderInfoByPrefab(const qsf::AssetProxy& assetProxy) const;
107 
108 
109  };
110 
111 
112 //[-------------------------------------------------------]
113 //[ Namespace ]
114 //[-------------------------------------------------------]
115 } // em5
Definition: ActionPriority.h:13
Definition: OrderInfoManager.h:28
Order information.
Definition: OrderInfo.h:54
#define EM5_API_EXPORT
Definition: Export.h:28
Element manager class template.
Definition: ElementManager.h:71
Asset proxy class.
Definition: AssetProxy.h:57
Compile time string hash class.
Definition: StringHash.h:59