Fish_TherionLevelCFG.h 630 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct Fish_TherionLevelCFGData
  5. {
  6. //ID
  7. int mID;
  8. //炮倍
  9. int mLevel;
  10. //炮倍对应朱雀、财神、白虎积分
  11. int mTherionIntegral;
  12. };
  13. class Fish_TherionLevelCFG
  14. {
  15. public:
  16. private:
  17. static std::auto_ptr<Fish_TherionLevelCFG> msSingleton;
  18. public:
  19. int GetCount();
  20. const Fish_TherionLevelCFGData* GetData(int ID);
  21. boost::unordered_map<int, Fish_TherionLevelCFGData>& GetMapData();
  22. void Reload();
  23. void Load(const std::string& path);
  24. void Load();
  25. static Fish_TherionLevelCFG* GetSingleton();
  26. private:
  27. boost::unordered_map<int, Fish_TherionLevelCFGData> mMapData;
  28. };