M_VipPointsMallCFG.h 679 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include <map>
  3. struct M_VipPointsMallCFGData
  4. {
  5. //编号
  6. int mID;
  7. //需要vip等级
  8. int mVipLevel;
  9. //物品描述
  10. std::string mItemDesc;
  11. //道具ID
  12. int mItemId;
  13. //道具数量
  14. int mItemCount;
  15. //每日库存
  16. int mDailyStock;
  17. //需要积分数量
  18. int mVipNtegralCount;
  19. };
  20. class M_VipPointsMallCFG
  21. {
  22. public:
  23. private:
  24. static std::auto_ptr<M_VipPointsMallCFG> msSingleton;
  25. public:
  26. int GetCount();
  27. const M_VipPointsMallCFGData* GetData(int ID);
  28. const std::map<int, M_VipPointsMallCFGData>& GetMapData();
  29. void Load();
  30. void LoadLua();
  31. void Reload();
  32. static M_VipPointsMallCFG* GetSingleton();
  33. static void Release();
  34. private:
  35. std::map<int, M_VipPointsMallCFGData> mMapData;
  36. };