M_StarLotteryRateCFG.h 572 B

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