M_ActivityFishingCeleExchangeCFG.h 938 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. #include <map>
  3. struct M_ActivityFishingCeleExchangeCFGData
  4. {
  5. //编号
  6. int mID;
  7. //功能标签
  8. int mType;
  9. //需要道具
  10. int mNeedItem;
  11. //需要数量
  12. int mNeedCount;
  13. //折扣后数量
  14. int mDiscountCount;
  15. //道具ID
  16. int mItemId;
  17. //道具数量
  18. int mItemCount;
  19. //限兑次数
  20. int mLimit;
  21. //概率道具ID
  22. int mProbItem;
  23. //概率道具数量
  24. int mProbCount;
  25. //概率(百分比)
  26. int mProb;
  27. //礼包折扣(百分比)
  28. int mGiftDiscount;
  29. //阶限制
  30. int mLvLimit;
  31. };
  32. class M_ActivityFishingCeleExchangeCFG
  33. {
  34. public:
  35. private:
  36. static std::auto_ptr<M_ActivityFishingCeleExchangeCFG> msSingleton;
  37. public:
  38. int GetCount();
  39. const M_ActivityFishingCeleExchangeCFGData* GetData(int ID);
  40. const std::map<int, M_ActivityFishingCeleExchangeCFGData>& GetMapData();
  41. void Load();
  42. void LoadLua();
  43. void Reload();
  44. static M_ActivityFishingCeleExchangeCFG* GetSingleton();
  45. static void Release();
  46. private:
  47. std::map<int, M_ActivityFishingCeleExchangeCFGData> mMapData;
  48. };