Fish_TherionTreasureCFG.h 686 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct Fish_TherionTreasureCFGData
  5. {
  6. //񅧏
  7. int mID;
  8. //³é½±ÀàÐÍ
  9. int mDrawType;
  10. //Öìȸ±¶ÂÊ
  11. std::vector<int> mRosefinchRate;
  12. //ÖìÈ¸È¨ÖØ
  13. int mRosefinchWeight;
  14. };
  15. class Fish_TherionTreasureCFG
  16. {
  17. public:
  18. private:
  19. static std::auto_ptr<Fish_TherionTreasureCFG> msSingleton;
  20. public:
  21. int GetCount();
  22. const Fish_TherionTreasureCFGData* GetData(int ID);
  23. boost::unordered_map<int, Fish_TherionTreasureCFGData>& GetMapData();
  24. void Reload();
  25. void Load(const std::string& path);
  26. void Load();
  27. static Fish_TherionTreasureCFG* GetSingleton();
  28. private:
  29. boost::unordered_map<int, Fish_TherionTreasureCFGData> mMapData;
  30. };