Fish_DiceFishCFG.h 544 B

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