#ifndef FALLOUT4VR_MODDATACONTENT_H #define FALLOUT4VR_MODDATACONTENT_H #include #include class Fallout4VRModDataContent : public GamebryoModDataContent { protected: enum Fallout4Content { CONTENT_MATERIAL = CONTENT_NEXT_VALUE }; public: Fallout4VRModDataContent(MOBase::IGameFeatures const* gameFeatures) : GamebryoModDataContent(gameFeatures) { m_Enabled[CONTENT_SKYPROC] = false; } std::vector getAllContents() const override { auto contents = GamebryoModDataContent::getAllContents(); contents.push_back( Content(CONTENT_MATERIAL, "Materials", ":/MO/gui/content/material")); return contents; } std::vector getContentsFor(std::shared_ptr fileTree) const override { auto contents = GamebryoModDataContent::getContentsFor(fileTree); for (auto e : *fileTree) { if (e->compare("materials") == 0) { contents.push_back(CONTENT_MATERIAL); break; // Early break if you have nothing else to check. } } return contents; } }; #endif // FALLOUT4VR_MODDATACONTENT_H