Fish_LargeFishCFG4.h 783 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #pragma once
  2. #include <map>
  3. struct Fish_LargeFishCFG4Data
  4. {
  5. //key
  6. int mID;
  7. //鱼阵名字
  8. std::string mName;
  9. //鱼阵ID
  10. int mGeneratorID;
  11. //BOSS鱼ID
  12. int mFishID;
  13. //提示信息
  14. std::string mImageInfo;
  15. //BOSS鱼阵
  16. bool mIsBoss;
  17. //声音
  18. std::string mBackSound;
  19. //倒计时
  20. int mDuration;
  21. //警告时间
  22. int mWarnTime;
  23. //刷水时间
  24. int mFlashTime;
  25. //死亡时间
  26. int mDieTime;
  27. };
  28. class Fish_LargeFishCFG4
  29. {
  30. public:
  31. private:
  32. static std::auto_ptr<Fish_LargeFishCFG4> msSingleton;
  33. public:
  34. int GetCount();
  35. const Fish_LargeFishCFG4Data* GetData(int ID);
  36. const std::map<int, Fish_LargeFishCFG4Data>& GetMapData();
  37. void Load();
  38. void LoadLua();
  39. void Reload();
  40. static Fish_LargeFishCFG4* GetSingleton();
  41. static void Release();
  42. private:
  43. std::map<int, Fish_LargeFishCFG4Data> mMapData;
  44. };