Add CMappableObject::IsDoorType

Former-commit-id: 960b828260
This commit is contained in:
Henrique Gemignani Passos Lima
2022-12-05 20:23:30 +02:00
parent 236045c563
commit b29e5337fc
2 changed files with 6 additions and 2 deletions

View File

@@ -47,6 +47,11 @@ public:
rstl::pair< CColor, CColor > GetDoorColors(int idx, const CMapWorldInfo&, float alpha) const;
void Draw(int, const CMapWorldInfo&, float, bool) const;
static bool IsDoorType(EMappableObjectType type) {
return type >= kMOT_BlueDoor && type <= kMOT_PlasmaDoorFloor2;
}
private:
EMappableObjectType x0_type;
EVisMode x4_visibilityMode;