#ifndef COMPONENTS_ESM_ESMBRIDGE #define COMPONENTS_ESM_ESMBRIDGE #include #include #include #include namespace ESM4 { struct Cell; } namespace ESM { struct Cell; struct CellId; struct RefId; struct CellVariant { std::variant mVariant; CellVariant() : mVariant((void*)(nullptr)) { } explicit CellVariant(const ESM4::Cell* cell) : mVariant(cell) { } explicit CellVariant(const ESM::Cell* cell) : mVariant(cell) { } bool isValid() const { return std::holds_alternative(mVariant) || std::holds_alternative(mVariant); } bool isEsm4() const { return std::holds_alternative(mVariant); } const ESM4::Cell& getEsm4() const; const ESM::Cell& getEsm3() const; }; } #endif