12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include <map>
- struct M_LotteryChipCFGData
- {
- //充值额度
- int mRecharge;
- //充值额度
- int mRechargeUp;
- //返回话费碎片百分比
- int mRetChipRate;
- //速算扣除
- int mQuickDeduction;
- };
- class M_LotteryChipCFG
- {
- public:
- private:
- static std::auto_ptr<M_LotteryChipCFG> msSingleton;
- public:
- int GetCount();
- const M_LotteryChipCFGData* GetData(int Recharge);
- const std::map<int, M_LotteryChipCFGData>& GetMapData();
- void Load();
- void LoadLua();
- void Reload();
- static M_LotteryChipCFG* GetSingleton();
- static void Release();
- private:
- std::map<int, M_LotteryChipCFGData> mMapData;
- };
|