M_ActivityIntegralExchangeCFG.h 731 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct M_ActivityIntegralExchangeCFGData
  5. {
  6. //긍뵀
  7. int mID;
  8. //틴聯ID
  9. int mVoucherId;
  10. //틴聯鑒좆
  11. int mVoucherCount;
  12. //돛야ID
  13. int mItemId;
  14. //돛야鑒좆
  15. int mItemCount;
  16. };
  17. class M_ActivityIntegralExchangeCFG
  18. {
  19. public:
  20. private:
  21. static std::auto_ptr<M_ActivityIntegralExchangeCFG> msSingleton;
  22. public:
  23. int GetCount();
  24. const M_ActivityIntegralExchangeCFGData* GetData(int ID);
  25. boost::unordered_map<int, M_ActivityIntegralExchangeCFGData>& GetMapData();
  26. void Reload();
  27. void Load(const std::string& path);
  28. void Load();
  29. static M_ActivityIntegralExchangeCFG* GetSingleton();
  30. private:
  31. boost::unordered_map<int, M_ActivityIntegralExchangeCFGData> mMapData;
  32. };