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