123456789101112131415161718192021222324252627282930313233 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_DragonBallLotteryData
- {
- //ID
- int mID;
- //홈路
- int mWeight;
- //돛야ID
- int mItemID;
- //돛야鑒좆
- int mItemCount;
- //댕쉽깃街
- int mBig;
- };
- class M_DragonBallLottery
- {
- public:
- private:
- static std::auto_ptr<M_DragonBallLottery> msSingleton;
- public:
- int GetCount();
- const M_DragonBallLotteryData* GetData(int ID);
- boost::unordered_map<int, M_DragonBallLotteryData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_DragonBallLottery* GetSingleton();
- private:
- boost::unordered_map<int, M_DragonBallLotteryData> mMapData;
- };
|