GameServer
InstanceInfoMaster.h
[詳解]
1 #ifndef __INSTANCEINFOMASTER_H__
2 #define __INSTANCEINFOMASTER_H__
3 
4 #include <map>
5 #include <vector>
6 
7 class MySqlConnection;
8 
10 {
11 
12 public:
13 
14 
15 
18  float BossX;
19  float BossY;
20  float BossZ;
22 
23 
24 };
25 
26 bool operator <(const InstanceInfoItem &A, const InstanceInfoItem &B);
27 bool operator >(const InstanceInfoItem &A, const InstanceInfoItem &B);
28 
30 {
31 
32 private:
33 
34  typedef std::map<u32, InstanceInfoItem> ItemMap;
35  typedef std::map<int, ItemMap> SheetMap;
36 
37 public:
38 
39  bool Load(const MySqlConnection &Connection);
40 
41  const InstanceInfoItem *GetItem(u32 Key, s32 SheetIndex = 0) const;
42 
43  std::vector<InstanceInfoItem> GetAllSheetItem(s32 SheetIndex) const;
44 
45  std::vector<InstanceInfoItem> GetAll() const;
46 
47 private:
48 
49  SheetMap Items;
50 
51 };
52 
53 #endif // #ifndef __INSTANCEINFOMASTER_H__
u32 BossId
Definition: InstanceInfoMaster.h:17
Definition: InstanceInfoMaster.h:9
bool operator<(const InstanceInfoItem &A, const InstanceInfoItem &B)
Definition: InstanceInfoMaster.cpp:78
Definition: InstanceInfoMaster.h:29
bool operator>(const InstanceInfoItem &A, const InstanceInfoItem &B)
Definition: InstanceInfoMaster.cpp:83
std::vector< InstanceInfoItem > GetAll() const
Definition: InstanceInfoMaster.cpp:63
const InstanceInfoItem * GetItem(u32 Key, s32 SheetIndex=0) const
Definition: InstanceInfoMaster.cpp:38
u32 Id
Definition: InstanceInfoMaster.h:16
Definition: MySqlConnection.h:15
int s32
Definition: TypeDefs.h:9
unsigned int u32
Definition: TypeDefs.h:10
bool Load(const MySqlConnection &Connection)
Definition: InstanceInfoMaster.cpp:5
std::vector< InstanceInfoItem > GetAllSheetItem(s32 SheetIndex) const
Definition: InstanceInfoMaster.cpp:47
float BossX
Definition: InstanceInfoMaster.h:18
u32 ExitWarpPointId
Definition: InstanceInfoMaster.h:21
float BossY
Definition: InstanceInfoMaster.h:19
float BossZ
Definition: InstanceInfoMaster.h:20