M_ActivitySummerPlanRechargedCFG.h 758 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct M_ActivitySummerPlanRechargedCFGData
  5. {
  6. //ID
  7. int mID;
  8. //썩傑係숭
  9. int mNeedRecharged;
  10. //쉽쟨돛야ID
  11. std::vector<int> mItemID;
  12. //쉽쟨돛야鑒좆
  13. std::vector<int> mItemCount;
  14. };
  15. class M_ActivitySummerPlanRechargedCFG
  16. {
  17. public:
  18. private:
  19. static std::auto_ptr<M_ActivitySummerPlanRechargedCFG> msSingleton;
  20. public:
  21. int GetCount();
  22. const M_ActivitySummerPlanRechargedCFGData* GetData(int ID);
  23. boost::unordered_map<int, M_ActivitySummerPlanRechargedCFGData>& GetMapData();
  24. void Reload();
  25. void Load(const std::string& path);
  26. void Load();
  27. static M_ActivitySummerPlanRechargedCFG* GetSingleton();
  28. private:
  29. boost::unordered_map<int, M_ActivitySummerPlanRechargedCFGData> mMapData;
  30. };