M_NoviceGunLiftCFG.h 697 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct M_NoviceGunLiftCFGData
  5. {
  6. //긍뵀
  7. int mID;
  8. //츰냔
  9. std::string mName;
  10. //�섬柯럿적
  11. int mRechangId;
  12. //옵�逞
  13. int mRise;
  14. //쟉관id
  15. int mGiftId;
  16. //일�섬柯鑒좆
  17. std::vector<int> mUpgradeNumber;
  18. };
  19. class M_NoviceGunLiftCFG
  20. {
  21. public:
  22. private:
  23. static std::auto_ptr<M_NoviceGunLiftCFG> msSingleton;
  24. public:
  25. int GetCount();
  26. const M_NoviceGunLiftCFGData* GetData(int ID);
  27. boost::unordered_map<int, M_NoviceGunLiftCFGData>& GetMapData();
  28. void Reload();
  29. void Load(const std::string& path);
  30. void Load();
  31. static M_NoviceGunLiftCFG* GetSingleton();
  32. private:
  33. boost::unordered_map<int, M_NoviceGunLiftCFGData> mMapData;
  34. };