Fish_GoldenTurtleFishCFG.h 674 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <map>
  3. struct Fish_GoldenTurtleFishCFGData
  4. {
  5. //编号
  6. int mID;
  7. //鱼ID
  8. int mFishId;
  9. //最小分值
  10. int mMinimumScore;
  11. //最大分值
  12. int mMaximumScore;
  13. //话费分值
  14. int mTelephoneScore;
  15. //权重
  16. int mweight;
  17. };
  18. class Fish_GoldenTurtleFishCFG
  19. {
  20. public:
  21. private:
  22. static std::auto_ptr<Fish_GoldenTurtleFishCFG> msSingleton;
  23. public:
  24. int GetCount();
  25. const Fish_GoldenTurtleFishCFGData* GetData(int ID);
  26. const std::map<int, Fish_GoldenTurtleFishCFGData>& GetMapData();
  27. void Load();
  28. void LoadLua();
  29. void Reload();
  30. static Fish_GoldenTurtleFishCFG* GetSingleton();
  31. static void Release();
  32. private:
  33. std::map<int, Fish_GoldenTurtleFishCFGData> mMapData;
  34. };