Fish_RedJumpCFG.h 628 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <map>
  3. struct Fish_RedJumpCFGData
  4. {
  5. //编号
  6. int mID;
  7. //Room顺序
  8. int mRoomOrder;
  9. //对应场次id
  10. int mRoomId;
  11. //前往标题
  12. std::string mTitle;
  13. //前往图片
  14. std::string mResources;
  15. //前往描述
  16. std::string mDesc;
  17. };
  18. class Fish_RedJumpCFG
  19. {
  20. public:
  21. private:
  22. static std::auto_ptr<Fish_RedJumpCFG> msSingleton;
  23. public:
  24. int GetCount();
  25. const Fish_RedJumpCFGData* GetData(int ID);
  26. const std::map<int, Fish_RedJumpCFGData>& GetMapData();
  27. void Load();
  28. void LoadLua();
  29. void Reload();
  30. static Fish_RedJumpCFG* GetSingleton();
  31. static void Release();
  32. private:
  33. std::map<int, Fish_RedJumpCFGData> mMapData;
  34. };