1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-07-03 04:21:34 +00:00
openmw-tes3mp/apps/openmw/mwworld/cellfunctors.hpp
2015-07-07 22:46:15 +02:00

29 lines
512 B
C++

#ifndef GAME_MWWORLD_CELLFUNCTORS_H
#define GAME_MWWORLD_CELLFUNCTORS_H
#include <vector>
#include <string>
#include "ptr.hpp"
namespace MWWorld
{
struct ListAndResetObjects
{
std::vector<MWWorld::Ptr> mObjects;
bool operator() (MWWorld::Ptr ptr)
{
if (ptr.getRefData().getBaseNode())
{
ptr.getRefData().setBaseNode(nullptr);
mObjects.push_back (ptr);
}
return true;
}
};
}
#endif