123456789101112131415161718192021222324252627282930313233343536373839 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_skillData
- {
- //ID
- int mID;
- //Ӣ��ID
- int mhero_id;
- //���ܵȼ�
- int mskill_leve;
- //�ӵ�����
- int mbullet_num;
- //�ӵ��뾶
- int mbullet_radius;
- //��������
- int mattack_distance;
- //�������
- float mattack_Interval;
- //��������
- std::string mskill_des;
- };
- class M_skill
- {
- public:
- private:
- static std::auto_ptr<M_skill> msSingleton;
- public:
- int GetCount();
- const M_skillData* GetData(int ID);
- boost::unordered_map<int, M_skillData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_skill* GetSingleton();
- private:
- boost::unordered_map<int, M_skillData> mMapData;
- };
|