metaforce/Runtime/AutoMapper/CMapWorldInfo.hpp

35 lines
998 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2015-08-17 05:26:58 +00:00
#include <map>
#include <vector>
#include "Runtime/RetroTypes.hpp"
2016-04-22 20:22:45 +00:00
2018-12-08 05:30:43 +00:00
namespace urde {
2016-09-25 01:58:20 +00:00
class CSaveWorld;
2018-12-08 05:30:43 +00:00
class CMapWorldInfo {
u32 x0_visitedAreasAllocated = 0;
std::vector<u32> x4_visitedAreas;
u32 x14_mappedAreasAllocated = 0;
std::vector<u32> x18_mappedAreas;
std::map<TEditorId, bool> x28_visitedDoors;
bool x38_mapStationUsed = false;
2016-04-22 20:22:45 +00:00
public:
2018-12-08 05:30:43 +00:00
CMapWorldInfo() = default;
CMapWorldInfo(CBitStreamReader&, const CSaveWorld& saveWorld, CAssetId mlvlId);
void PutTo(CBitStreamWriter& writer, const CSaveWorld& savw, CAssetId mlvlId) const;
bool IsMapped(TAreaId) const;
void SetIsMapped(TAreaId, bool);
void SetDoorVisited(TEditorId eid, bool val);
bool IsDoorVisited(TEditorId eid) const;
bool IsAreaVisted(TAreaId) const;
void SetAreaVisited(TAreaId, bool);
bool IsWorldVisible(TAreaId) const;
bool IsAreaVisible(TAreaId) const;
bool IsAnythingSet() const;
void SetMapStationUsed(bool val) { x38_mapStationUsed = val; }
2015-08-17 05:26:58 +00:00
};
2018-12-08 05:30:43 +00:00
} // namespace urde