Fish_DiceFishCFG.h 596 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct Fish_DiceFishCFGData
  5. {
  6. //ÂÖ´Î
  7. int mRotation;
  8. //±¶ÂÊ
  9. int mMagnification;
  10. //¸ÅÂÊ
  11. int mProbability;
  12. };
  13. class Fish_DiceFishCFG
  14. {
  15. public:
  16. private:
  17. static std::auto_ptr<Fish_DiceFishCFG> msSingleton;
  18. public:
  19. int GetCount();
  20. const Fish_DiceFishCFGData* GetData(int Rotation);
  21. boost::unordered_map<int, Fish_DiceFishCFGData>& GetMapData();
  22. void Reload();
  23. void Load(const std::string& path);
  24. void Load();
  25. static Fish_DiceFishCFG* GetSingleton();
  26. private:
  27. boost::unordered_map<int, Fish_DiceFishCFGData> mMapData;
  28. };