]>
Commit | Line | Data |
---|---|---|
f4f0d89d | 1 | #ifndef __GameServ__FileId_H__\r |
2 | #define __GameServ__FileId_H__\r | |
3 | \r | |
4 | #include <string>\r | |
5 | using std::string;\r | |
6 | \r | |
cce88913 | 7 | #include <GameServ/Types.h>\r |
8 | using GameServ::Types::ItemTypes;\r | |
9 | \r | |
f4f0d89d | 10 | namespace GameServ { namespace DataLayer { namespace File {\r |
11 | class FileId\r | |
12 | {\r | |
13 | public:\r | |
14 | static string CreatePlayerId(const string &Name);\r | |
15 | static string GetNameFromPlayerId(const string &Id);\r | |
cce88913 | 16 | \r |
e0306362 | 17 | static string CreateItemId(const string &Number);\r |
cce88913 | 18 | static string GetItemNumberFromId(const string &Id);\r |
04a66a14 | 19 | \r |
fd2ef47d | 20 | static string CreateMonsterId(const string &LevelId, const string &Name);\r |
142e3ca5 | 21 | static string CreateLevelId(const unsigned int &Number);\r |
fd2ef47d | 22 | static unsigned int GetLevelNumberFromId(const string &Id);\r |
142e3ca5 | 23 | static string CreateMasterId(const unsigned int &LevelNumber, const string &Name);\r |
04a66a14 | 24 | \r |
f4f0d89d | 25 | private:\r |
26 | FileId();\r | |
27 | ~FileId();\r | |
28 | };\r | |
29 | }}}\r | |
c7b7180e | 30 | #endif\r |