Fish_TurretSkillWing.h 777 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct Fish_TurretSkillWingData
  5. {
  6. //编号
  7. int mID;
  8. //技能ID
  9. int mSkillId;
  10. //技能描述
  11. std::string mSkillDesc;
  12. //初始数值
  13. int mValue;
  14. //对应数值
  15. int mValueShu;
  16. //技能图标资源
  17. std::string mSkillResources;
  18. //升级加成
  19. int mAddValue;
  20. //最高加成次数
  21. int mTopValue;
  22. };
  23. class Fish_TurretSkillWing
  24. {
  25. public:
  26. private:
  27. static std::auto_ptr<Fish_TurretSkillWing> msSingleton;
  28. public:
  29. int GetCount();
  30. const Fish_TurretSkillWingData* GetData(int ID);
  31. boost::unordered_map<int, Fish_TurretSkillWingData>& GetMapData();
  32. void Reload();
  33. void Load(const std::string& path);
  34. void Load();
  35. static Fish_TurretSkillWing* GetSingleton();
  36. private:
  37. boost::unordered_map<int, Fish_TurretSkillWingData> mMapData;
  38. };