M_StarLotteryRateCFG.h 624 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct M_StarLotteryRateCFGData
  5. {
  6. //ÉÏÇø¼ä
  7. int mUpRange;
  8. //ÿÈÕË¥¼õ
  9. int mDailyRate;
  10. //×ÜË¥¼õ
  11. int mTotalRate;
  12. };
  13. class M_StarLotteryRateCFG
  14. {
  15. public:
  16. private:
  17. static std::auto_ptr<M_StarLotteryRateCFG> msSingleton;
  18. public:
  19. int GetCount();
  20. const M_StarLotteryRateCFGData* GetData(int UpRange);
  21. boost::unordered_map<int, M_StarLotteryRateCFGData>& GetMapData();
  22. void Reload();
  23. void Load(const std::string& path);
  24. void Load();
  25. static M_StarLotteryRateCFG* GetSingleton();
  26. private:
  27. boost::unordered_map<int, M_StarLotteryRateCFGData> mMapData;
  28. };