1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 11:49:56 +00:00
openmw-tes3mp/apps/openmw/mwworld/cellvisitors.hpp

30 lines
516 B
C++
Raw Normal View History

2015-12-06 17:13:04 +00:00
#ifndef GAME_MWWORLD_CELLVISITORS_H
#define GAME_MWWORLD_CELLVISITORS_H
#include <vector>
#include <string>
#include "ptr.hpp"
namespace MWWorld
{
2015-12-06 17:13:04 +00:00
struct ListAndResetObjectsVisitor
{
std::vector<MWWorld::Ptr> mObjects;
bool operator() (MWWorld::Ptr ptr)
{
if (ptr.getRefData().getBaseNode())
{
ptr.getRefData().setBaseNode(NULL);
mObjects.push_back (ptr);
}
return true;
}
};
}
#endif