#ifndef GAME_MWWORLD_CELLVISITORS_H #define GAME_MWWORLD_CELLVISITORS_H #include #include #include "ptr.hpp" namespace MWWorld { struct ListAndResetObjectsVisitor { std::vector mObjects; bool operator() (const MWWorld::Ptr& ptr) { if (ptr.getRefData().getBaseNode()) { ptr.getRefData().setBaseNode(nullptr); } mObjects.push_back (ptr); return true; } }; struct ListObjectsVisitor { std::vector mObjects; bool operator() (const MWWorld::Ptr& ptr) { mObjects.push_back (ptr); return true; } }; } #endif