Fish_JuKunFuHuaJiFenCFG.h 665 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <map>
  3. struct Fish_JuKunFuHuaJiFenCFGData
  4. {
  5. //编号
  6. int mID;
  7. //孵化积分下限
  8. int mIntegralLower;
  9. //孵化积分上限
  10. int mIntegralUpper;
  11. //权重
  12. int mWeight;
  13. //积分奖励
  14. std::vector<int> mBonusPoints;
  15. };
  16. class Fish_JuKunFuHuaJiFenCFG
  17. {
  18. public:
  19. private:
  20. static std::auto_ptr<Fish_JuKunFuHuaJiFenCFG> msSingleton;
  21. public:
  22. int GetCount();
  23. const Fish_JuKunFuHuaJiFenCFGData* GetData(int ID);
  24. const std::map<int, Fish_JuKunFuHuaJiFenCFGData>& GetMapData();
  25. void Load();
  26. void LoadLua();
  27. void Reload();
  28. static Fish_JuKunFuHuaJiFenCFG* GetSingleton();
  29. static void Release();
  30. private:
  31. std::map<int, Fish_JuKunFuHuaJiFenCFGData> mMapData;
  32. };