metaforce/Runtime/AutoMapper/CMapWorldInfo.hpp

33 lines
904 B
C++

#ifndef __URDE_CMAPWORLDINFO_HPP__
#define __URDE_CMAPWORLDINFO_HPP__
#include "RetroTypes.hpp"
namespace urde
{
class CSaveWorld;
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_worldVisited = false;
public:
CMapWorldInfo()=default;
CMapWorldInfo(CBitStreamReader&, const CSaveWorld& saveWorld, ResId mlvlId);
void PutTo(CBitStreamWriter& writer, const CSaveWorld& savw, ResId mlvlId) const;
bool IsMapped(TAreaId);
void SetIsMapped(TAreaId, bool);
void SetDoorVisited(TEditorId eid, bool val);
bool IsDoorVisited(TEditorId eid) const;
bool IsAreaVisted(TAreaId);
void SetAreaVisited(TAreaId, bool);
bool IsWorldVisible(TAreaId);
};
}
#endif // __URDE_CMAPWORLDINFO_HPP__