M_ActivityDayHuntCFG.h 814 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct M_ActivityDayHuntCFGData
  5. {
  6. //编号
  7. int mID;
  8. //奖励
  9. std::vector<int> mReward;
  10. //期望最高
  11. std::vector<int> mExpectHighest;
  12. //前端显示道具
  13. std::vector<int> mDisplayItem;
  14. //前端显示数量
  15. std::vector<std::string> mDisplayMumber;
  16. //前端显示重置卡数量
  17. int mDisplayResetMumber;
  18. //礼包id
  19. int mbagId;
  20. };
  21. class M_ActivityDayHuntCFG
  22. {
  23. public:
  24. private:
  25. static std::auto_ptr<M_ActivityDayHuntCFG> msSingleton;
  26. public:
  27. int GetCount();
  28. const M_ActivityDayHuntCFGData* GetData(int ID);
  29. boost::unordered_map<int, M_ActivityDayHuntCFGData>& GetMapData();
  30. void Reload();
  31. void Load(const std::string& path);
  32. void Load();
  33. static M_ActivityDayHuntCFG* GetSingleton();
  34. private:
  35. boost::unordered_map<int, M_ActivityDayHuntCFGData> mMapData;
  36. };