Fish_JumpCFG.h 639 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct Fish_JumpCFGData
  5. {
  6. //key
  7. int mID;
  8. //ÀàÐÍ
  9. int mType;
  10. //Icon1
  11. std::string mͼ±ê1;
  12. //Icon2
  13. std::string mͼ±ê2;
  14. //Icon3
  15. std::string mͼ±ê3;
  16. //Icon4
  17. std::string mͼ±ê4;
  18. };
  19. class Fish_JumpCFG
  20. {
  21. public:
  22. private:
  23. static std::auto_ptr<Fish_JumpCFG> msSingleton;
  24. public:
  25. int GetCount();
  26. const Fish_JumpCFGData* GetData(int ID);
  27. boost::unordered_map<int, Fish_JumpCFGData>& GetMapData();
  28. void Reload();
  29. void Load(const std::string& path);
  30. void Load();
  31. static Fish_JumpCFG* GetSingleton();
  32. private:
  33. boost::unordered_map<int, Fish_JumpCFGData> mMapData;
  34. };