2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
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
|
|
|
|
{
|
2017-02-08 06:48:43 +00:00
|
|
|
u32 x0_visitedAreasAllocated = 0;
|
2016-08-14 03:00:58 +00:00
|
|
|
std::vector<u32> x4_visitedAreas;
|
2017-02-08 06:48:43 +00:00
|
|
|
u32 x14_mappedAreasAllocated = 0;
|
|
|
|
std::vector<u32> x18_mappedAreas;
|
|
|
|
std::map<TEditorId, bool> x28_visitedDoors;
|
2017-04-18 23:41:01 +00:00
|
|
|
bool x38_mapStationUsed = false;
|
2016-04-22 20:22:45 +00:00
|
|
|
public:
|
2016-07-28 07:33:55 +00:00
|
|
|
CMapWorldInfo()=default;
|
2017-08-13 05:26:14 +00:00
|
|
|
CMapWorldInfo(CBitStreamReader&, const CSaveWorld& saveWorld, CAssetId mlvlId);
|
|
|
|
void PutTo(CBitStreamWriter& writer, const CSaveWorld& savw, CAssetId mlvlId) const;
|
2017-04-16 05:52:43 +00:00
|
|
|
bool IsMapped(TAreaId) const;
|
2017-02-08 06:48:43 +00:00
|
|
|
void SetIsMapped(TAreaId, bool);
|
2016-04-22 20:22:45 +00:00
|
|
|
void SetDoorVisited(TEditorId eid, bool val);
|
2017-02-08 06:48:43 +00:00
|
|
|
bool IsDoorVisited(TEditorId eid) const;
|
2017-04-16 05:52:43 +00:00
|
|
|
bool IsAreaVisted(TAreaId) const;
|
2016-08-14 03:00:58 +00:00
|
|
|
void SetAreaVisited(TAreaId, bool);
|
2017-04-16 05:52:43 +00:00
|
|
|
bool IsWorldVisible(TAreaId) const;
|
|
|
|
bool IsAreaVisible(TAreaId) const;
|
|
|
|
bool IsAnythingSet() const;
|
2018-05-20 05:01:17 +00:00
|
|
|
void SetMapStationUsed(bool val) { x38_mapStationUsed = val; }
|
2015-08-17 05:26:58 +00:00
|
|
|
};
|
2015-08-17 22:05:00 +00:00
|
|
|
}
|
|
|
|
|