M_SplashScreenCFG.h 706 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include <map>
  3. struct M_SplashScreenCFGData
  4. {
  5. //闪屏ID
  6. int mSplashScreenId;
  7. //文化部备案
  8. std::string mText1;
  9. //审批文号
  10. std::string mText2;
  11. //出版物号
  12. std::string mText3;
  13. //著作权人
  14. std::string mText4;
  15. //出版单位
  16. std::string mText5;
  17. //备注
  18. std::string mRemark;
  19. };
  20. class M_SplashScreenCFG
  21. {
  22. public:
  23. private:
  24. static std::auto_ptr<M_SplashScreenCFG> msSingleton;
  25. public:
  26. int GetCount();
  27. const M_SplashScreenCFGData* GetData(int SplashScreenId);
  28. const std::map<int, M_SplashScreenCFGData>& GetMapData();
  29. void Load();
  30. void LoadLua();
  31. void Reload();
  32. static M_SplashScreenCFG* GetSingleton();
  33. static void Release();
  34. private:
  35. std::map<int, M_SplashScreenCFGData> mMapData;
  36. };