M_LotteryChipCFG.h 597 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <map>
  3. struct M_LotteryChipCFGData
  4. {
  5. //充值额度
  6. int mRecharge;
  7. //充值额度
  8. int mRechargeUp;
  9. //返回话费碎片百分比
  10. int mRetChipRate;
  11. //速算扣除
  12. int mQuickDeduction;
  13. };
  14. class M_LotteryChipCFG
  15. {
  16. public:
  17. private:
  18. static std::auto_ptr<M_LotteryChipCFG> msSingleton;
  19. public:
  20. int GetCount();
  21. const M_LotteryChipCFGData* GetData(int Recharge);
  22. const std::map<int, M_LotteryChipCFGData>& GetMapData();
  23. void Load();
  24. void LoadLua();
  25. void Reload();
  26. static M_LotteryChipCFG* GetSingleton();
  27. static void Release();
  28. private:
  29. std::map<int, M_LotteryChipCFGData> mMapData;
  30. };