1234567891011121314151617181920212223242526272829 |
- #pragma once
- #include <map>
- struct M_StarLotteryRateCFGData
- {
- //ÉÏÇø¼ä
- int mUpRange;
- //ÿÈÕË¥¼õ
- int mDailyRate;
- //×ÜË¥¼õ
- int mTotalRate;
- };
- class M_StarLotteryRateCFG
- {
- public:
- private:
- static std::auto_ptr<M_StarLotteryRateCFG> msSingleton;
- public:
- int GetCount();
- const M_StarLotteryRateCFGData* GetData(int UpRange);
- const std::map<int, M_StarLotteryRateCFGData>& GetMapData();
- void Load();
- void LoadLua();
- void Reload();
- static M_StarLotteryRateCFG* GetSingleton();
- static void Release();
- private:
- std::map<int, M_StarLotteryRateCFGData> mMapData;
- };
|