12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_ActivityDoubleElevenLotteryExData
- {
- //ID
- int mID;
- //홈路
- int mWeight;
- //띨棍쉽쟨돛야ID
- int mItemId;
- //돛야鑒좆
- int mItemCount;
- };
- class M_ActivityDoubleElevenLotteryEx
- {
- public:
- private:
- static std::auto_ptr<M_ActivityDoubleElevenLotteryEx> msSingleton;
- public:
- int GetCount();
- const M_ActivityDoubleElevenLotteryExData* GetData(int ID);
- boost::unordered_map<int, M_ActivityDoubleElevenLotteryExData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_ActivityDoubleElevenLotteryEx* GetSingleton();
- private:
- boost::unordered_map<int, M_ActivityDoubleElevenLotteryExData> mMapData;
- };
|