M_un_lock_battle.h 770 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #include <map>
  3. struct M_un_lock_battleData
  4. {
  5. //ID
  6. int64_t mID;
  7. //场地类型
  8. int mbattle_type;
  9. //魔法阵解锁
  10. int mun_lock_magic;
  11. //魔币准入金额
  12. int mdemand;
  13. //魔币禁止金额
  14. int mprohibit;
  15. //魔法阵使用等级
  16. std::vector<int> muse_magic;
  17. //鱼阵波数
  18. std::vector<int> mfish_wave;
  19. //鱼阵方案(方案,权重|方案,权重)
  20. std::string mfish_scheme;
  21. };
  22. class M_un_lock_battle
  23. {
  24. public:
  25. private:
  26. static std::auto_ptr<M_un_lock_battle> msSingleton;
  27. public:
  28. int GetCount();
  29. const M_un_lock_battleData* GetData(int64_t ID);
  30. const std::map<int64_t, M_un_lock_battleData>& GetMapData();
  31. void Load();
  32. void LoadLua();
  33. void Reload();
  34. static M_un_lock_battle* GetSingleton();
  35. static void Release();
  36. private:
  37. std::map<int64_t, M_un_lock_battleData> mMapData;
  38. };