GameServer
QuestStageMaster.h
[詳解]
1 #ifndef __QUESTSTAGEMASTER_H__
2 #define __QUESTSTAGEMASTER_H__
3 
4 #include <map>
5 #include <vector>
6 
7 class MySqlConnection;
8 
10 {
11 
12 public:
13 
14  enum
15  {
16  NPC = 0,
19  };
20 
21 
27 
28 
29 };
30 
31 bool operator <(const QuestStageItem &A, const QuestStageItem &B);
32 bool operator >(const QuestStageItem &A, const QuestStageItem &B);
33 
35 {
36 
37 private:
38 
39  typedef std::map<u32, QuestStageItem> ItemMap;
40  typedef std::map<int, ItemMap> SheetMap;
41 
42 public:
43 
44  bool Load(const MySqlConnection &Connection);
45 
46  const QuestStageItem *GetItem(u32 Key, s32 SheetIndex = 0) const;
47 
48  std::vector<QuestStageItem> GetAllSheetItem(s32 SheetIndex) const;
49 
50  std::vector<QuestStageItem> GetAll() const;
51 
52 private:
53 
54  SheetMap Items;
55 
56 };
57 
58 #endif // #ifndef __QUESTSTAGEMASTER_H__
bool Load(const MySqlConnection &Connection)
Definition: QuestStageMaster.cpp:5
unsigned char u8
Definition: TypeDefs.h:6
u32 Count
Definition: QuestStageMaster.h:25
std::vector< QuestStageItem > GetAllSheetItem(s32 SheetIndex) const
Definition: QuestStageMaster.cpp:45
u32 TargetId
Definition: QuestStageMaster.h:24
Definition: QuestStageMaster.h:18
u32 Id
Definition: QuestStageMaster.h:22
std::vector< QuestStageItem > GetAll() const
Definition: QuestStageMaster.cpp:61
bool operator>(const QuestStageItem &A, const QuestStageItem &B)
Definition: QuestStageMaster.cpp:81
Definition: MySqlConnection.h:15
int s32
Definition: TypeDefs.h:9
unsigned int u32
Definition: TypeDefs.h:10
const QuestStageItem * GetItem(u32 Key, s32 SheetIndex=0) const
Definition: QuestStageMaster.cpp:36
Definition: QuestStageMaster.h:16
u32 NextStageId
Definition: QuestStageMaster.h:26
Definition: QuestStageMaster.h:34
bool operator<(const QuestStageItem &A, const QuestStageItem &B)
Definition: QuestStageMaster.cpp:76
u8 Condition
Definition: QuestStageMaster.h:23
Definition: QuestStageMaster.h:9
Definition: QuestStageMaster.h:17