M_Head.h 558 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct M_HeadData
  5. {
  6. //ID
  7. int mID;
  8. //膠틔ID
  9. int mItemID;
  10. //돛야잚謹
  11. int mType;
  12. //Vip된섬삿혤
  13. int mVipGet;
  14. //삿혤쨌쓺
  15. int mRoute;
  16. };
  17. class M_Head
  18. {
  19. public:
  20. private:
  21. static std::auto_ptr<M_Head> msSingleton;
  22. public:
  23. int GetCount();
  24. const M_HeadData* GetData(int ID);
  25. boost::unordered_map<int, M_HeadData>& GetMapData();
  26. void Reload();
  27. void Load(const std::string& path);
  28. void Load();
  29. static M_Head* GetSingleton();
  30. private:
  31. boost::unordered_map<int, M_HeadData> mMapData;
  32. };