M_GuideCFG.h 860 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #include <map>
  3. struct M_GuideCFGData
  4. {
  5. //引导ID
  6. int mID;
  7. //类型
  8. int mType;
  9. //高亮框位置
  10. std::vector<int> mSelPos;
  11. //高亮框大小
  12. std::vector<int> mSelSize;
  13. //高亮框资源
  14. std::string mSelPic;
  15. //提示框文字图片
  16. std::string mTipsDescPic;
  17. //提示框位置
  18. std::vector<int> mTipsPos;
  19. //提示框大小
  20. std::vector<int> mTipsSize;
  21. //提示框资源
  22. std::string mTipsPic;
  23. //图片位置
  24. std::vector<int> mIconPos;
  25. //手指位置
  26. std::vector<int> mFingerPos;
  27. //后台统计名称
  28. std::string mName;
  29. };
  30. class M_GuideCFG
  31. {
  32. public:
  33. private:
  34. static std::auto_ptr<M_GuideCFG> msSingleton;
  35. public:
  36. int GetCount();
  37. const M_GuideCFGData* GetData(int ID);
  38. const std::map<int, M_GuideCFGData>& GetMapData();
  39. void Load();
  40. void LoadLua();
  41. void Reload();
  42. static M_GuideCFG* GetSingleton();
  43. static void Release();
  44. private:
  45. std::map<int, M_GuideCFGData> mMapData;
  46. };