M_VIPProfitCFG.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct M_VIPProfitCFGData
  5. {
  6. //vip等级
  7. int mVipLv;
  8. //升级所需经验
  9. int mVipExp;
  10. //领取在线奖励次数
  11. int mOnlineReward;
  12. //每日送龙珠上限
  13. int mMaxGiftslimit;
  14. //解锁礼物
  15. std::vector<std::string> mGiftUnlock;
  16. //房间解锁
  17. std::vector<std::string> mRoomUnlock;
  18. //捕鱼功能解锁
  19. std::vector<std::string> mFishItemUnlock;
  20. //尊贵VIP标志
  21. int mVipName;
  22. //每天赠送礼券
  23. int mGiveTicket;
  24. //签到额外奖励
  25. int mAttendance;
  26. //每日抽奖次数上限
  27. int mDailyLottery;
  28. //破产礼包配置
  29. int mBrokenGift;
  30. //破产救济金
  31. int mBankruptcyRelief;
  32. //金币不足补齐
  33. int mTodayMaxGold;
  34. //专有火炮
  35. int mPropGun;
  36. //火炮名字
  37. std::string mPropGunName;
  38. //炮图片名称
  39. std::string mPropGunNameImg;
  40. //火炮图标
  41. std::string mPropGunIcon;
  42. //是否可抽
  43. std::vector<int> mCanStar;
  44. //是否必中
  45. std::vector<int> mStarFixed;
  46. //每天购买材料礼包的上限
  47. int mBuyMaterialsGiftLimit;
  48. //购买次数限制的周礼包
  49. int mBuyWeekLimit;
  50. //礼包商店显示ID顺序
  51. std::vector<int> mBagShopSort;
  52. //金币商店显示ID顺序
  53. std::vector<int> mGoldShopSort;
  54. //钻石商店显示ID顺序
  55. std::vector<int> mGemShopSort;
  56. //竞技场炮台加成系数(仅显示)
  57. int mTurretAddRate;
  58. //魔石兑换次数
  59. int mSquamaExchange;
  60. //发布空投次数
  61. int mAirDropsNumber;
  62. //在线领取倍数
  63. float mOnlineRewardMultiples;
  64. //聚宝金龟场游玩时间/s
  65. int mGoldenTurtleTime;
  66. //充值金币额外赠送
  67. int mRechargeGoldRewardEx;
  68. //vip大奖显示
  69. std::vector<int> mDisplayVipReward1;
  70. //vip大奖
  71. std::vector<int> mVipReward1;
  72. //vip奖显示
  73. std::vector<int> mDisplayVipReward2;
  74. //竞技场vip加成
  75. int mArenaUp;
  76. //VIP每日兑换话费券
  77. int mVipMoney;
  78. //vip奖励
  79. std::vector<int> mVipReward2;
  80. //个人池返还(百分比)
  81. int mPersonalPoolRebate;
  82. };
  83. class M_VIPProfitCFG
  84. {
  85. public:
  86. private:
  87. static std::auto_ptr<M_VIPProfitCFG> msSingleton;
  88. public:
  89. int GetCount();
  90. const M_VIPProfitCFGData* GetData(int VipLv);
  91. boost::unordered_map<int, M_VIPProfitCFGData>& GetMapData();
  92. void Reload();
  93. void Load(const std::string& path);
  94. void Load();
  95. static M_VIPProfitCFG* GetSingleton();
  96. private:
  97. boost::unordered_map<int, M_VIPProfitCFGData> mMapData;
  98. };