2016-04-13 06:07:23 +00:00
|
|
|
#ifndef __URDE_CMAPWORLDINFO_HPP__
|
|
|
|
#define __URDE_CMAPWORLDINFO_HPP__
|
2015-08-17 05:26:58 +00:00
|
|
|
|
2016-04-22 20:22:45 +00:00
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
namespace urde
|
2015-08-17 22:05:00 +00:00
|
|
|
{
|
2016-09-25 01:58:20 +00:00
|
|
|
class CSaveWorld;
|
|
|
|
|
2015-08-17 05:26:58 +00:00
|
|
|
class CMapWorldInfo
|
|
|
|
{
|
2016-08-14 03:00:58 +00:00
|
|
|
std::vector<u32> x4_visitedAreas;
|
2016-04-22 20:22:45 +00:00
|
|
|
std::map<TEditorId, bool> x14_;
|
2016-09-25 01:58:20 +00:00
|
|
|
std::vector<u32> x18_visitedAreas;
|
2016-04-22 20:22:45 +00:00
|
|
|
public:
|
2016-07-28 07:33:55 +00:00
|
|
|
CMapWorldInfo()=default;
|
2016-09-25 01:58:20 +00:00
|
|
|
CMapWorldInfo(CBitStreamReader&, const CSaveWorld& saveWorld, ResId mlvlId);
|
2016-10-09 21:41:23 +00:00
|
|
|
void PutTo(CBitStreamWriter& writer, const CSaveWorld& savw) const;
|
2016-07-28 07:33:55 +00:00
|
|
|
bool IsMapped() const;
|
|
|
|
void SetIsMapped(bool) const;
|
2016-04-22 20:22:45 +00:00
|
|
|
void SetDoorVisited(TEditorId eid, bool val);
|
2016-07-28 07:33:55 +00:00
|
|
|
bool IsDoorVisited() const;
|
2016-08-14 03:00:58 +00:00
|
|
|
bool IsAreaVisted(TAreaId);
|
|
|
|
void SetAreaVisited(TAreaId, bool);
|
2015-08-17 05:26:58 +00:00
|
|
|
};
|
2015-08-17 22:05:00 +00:00
|
|
|
}
|
|
|
|
|
2016-04-13 06:07:23 +00:00
|
|
|
#endif // __URDE_CMAPWORLDINFO_HPP__
|