Odds2_Room.h 586 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <map>
  3. struct Odds2_RoomData
  4. {
  5. //·¿¼äID
  6. int mRoomID;
  7. //¼¤¹âÔö¼Ó¼¸ÂÊ
  8. int mLaserAdd;
  9. //¼¤¹â¼õÒæ¼¸ÂÊ
  10. int mLaserReduce;
  11. //ÓãÕóÔö¼Ó¼¸ÂÊ
  12. int mFormationAdd;
  13. //ÓãÕó¼õÉÙ¼¸ÂÊ
  14. int mFormationReduce;
  15. };
  16. class Odds2_Room
  17. {
  18. public:
  19. private:
  20. static std::auto_ptr<Odds2_Room> msSingleton;
  21. public:
  22. int GetCount();
  23. const Odds2_RoomData* GetData(int RoomID);
  24. const std::map<int, Odds2_RoomData>& GetMapData();
  25. void Load();
  26. void LoadLua();
  27. void Reload();
  28. static Odds2_Room* GetSingleton();
  29. static void Release();
  30. private:
  31. std::map<int, Odds2_RoomData> mMapData;
  32. };