M_VipDesc.h 531 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <map>
  3. struct M_VipDescData
  4. {
  5. //编号
  6. int mID;
  7. //vip等级
  8. int mVipLevel;
  9. //是否新内容(1:是 0:不是)
  10. int mNewContent;
  11. //描述
  12. std::string mDesc;
  13. };
  14. class M_VipDesc
  15. {
  16. public:
  17. private:
  18. static std::auto_ptr<M_VipDesc> msSingleton;
  19. public:
  20. int GetCount();
  21. const M_VipDescData* GetData(int ID);
  22. const std::map<int, M_VipDescData>& GetMapData();
  23. void Load();
  24. void LoadLua();
  25. void Reload();
  26. static M_VipDesc* GetSingleton();
  27. static void Release();
  28. private:
  29. std::map<int, M_VipDescData> mMapData;
  30. };