M_Head.h 506 B

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