Fish_ArenaFreeRankingCFG.h 725 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct Fish_ArenaFreeRankingCFGData
  5. {
  6. //编号
  7. int mID;
  8. //任务类型
  9. int mType;
  10. //开始排名
  11. int mStartRank;
  12. //结束排名
  13. int mEndRank;
  14. //奖励道具
  15. int mRewardItem;
  16. //奖励数量
  17. int mRewardCount;
  18. };
  19. class Fish_ArenaFreeRankingCFG
  20. {
  21. public:
  22. private:
  23. static std::auto_ptr<Fish_ArenaFreeRankingCFG> msSingleton;
  24. public:
  25. int GetCount();
  26. const Fish_ArenaFreeRankingCFGData* GetData(int ID);
  27. boost::unordered_map<int, Fish_ArenaFreeRankingCFGData>& GetMapData();
  28. void Reload();
  29. void Load(const std::string& path);
  30. void Load();
  31. static Fish_ArenaFreeRankingCFG* GetSingleton();
  32. private:
  33. boost::unordered_map<int, Fish_ArenaFreeRankingCFGData> mMapData;
  34. };