12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_ActivitySummerPlanRechargedCFGData
- {
- //ID
- int mID;
- //썩傑係숭
- int mNeedRecharged;
- //쉽쟨돛야ID
- std::vector<int> mItemID;
- //쉽쟨돛야鑒좆
- std::vector<int> mItemCount;
- };
- class M_ActivitySummerPlanRechargedCFG
- {
- public:
- private:
- static std::auto_ptr<M_ActivitySummerPlanRechargedCFG> msSingleton;
- public:
- int GetCount();
- const M_ActivitySummerPlanRechargedCFGData* GetData(int ID);
- boost::unordered_map<int, M_ActivitySummerPlanRechargedCFGData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_ActivitySummerPlanRechargedCFG* GetSingleton();
- private:
- boost::unordered_map<int, M_ActivitySummerPlanRechargedCFGData> mMapData;
- };
|