123456789101112131415161718192021222324252627282930313233 |
- #pragma once
- #include <map>
- struct Odds2_RoomData
- {
- //·¿¼äID
- int mRoomID;
- //¼¤¹âÔö¼Ó¼¸ÂÊ
- int mLaserAdd;
- //¼¤¹â¼õÒæ¼¸ÂÊ
- int mLaserReduce;
- //ÓãÕóÔö¼Ó¼¸ÂÊ
- int mFormationAdd;
- //ÓãÕó¼õÉÙ¼¸ÂÊ
- int mFormationReduce;
- };
- class Odds2_Room
- {
- public:
- private:
- static std::auto_ptr<Odds2_Room> msSingleton;
- public:
- int GetCount();
- const Odds2_RoomData* GetData(int RoomID);
- const std::map<int, Odds2_RoomData>& GetMapData();
- void Load();
- void LoadLua();
- void Reload();
- static Odds2_Room* GetSingleton();
- static void Release();
- private:
- std::map<int, Odds2_RoomData> mMapData;
- };
|