Fish_FieldParameter.h 662 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <map>
  3. struct Fish_FieldParameterData
  4. {
  5. //ID
  6. int mID;
  7. //房间号
  8. int mRoomId;
  9. //BUFF类型
  10. int mBuffType;
  11. //奖罚人数(百分比)
  12. int mNumber;
  13. //偏差(百分比)
  14. int mRateOfReturn;
  15. //命中调整(百分比)
  16. int mProbability;
  17. };
  18. class Fish_FieldParameter
  19. {
  20. public:
  21. private:
  22. static std::auto_ptr<Fish_FieldParameter> msSingleton;
  23. public:
  24. int GetCount();
  25. const Fish_FieldParameterData* GetData(int ID);
  26. const std::map<int, Fish_FieldParameterData>& GetMapData();
  27. void Load();
  28. void LoadLua();
  29. void Reload();
  30. static Fish_FieldParameter* GetSingleton();
  31. static void Release();
  32. private:
  33. std::map<int, Fish_FieldParameterData> mMapData;
  34. };