19 explicit SelectZone(
const std::string& parameters =
"") :
20 IFilter(
"SelectZone", parameters) {
23 void filter (
const AIPtr& entity)
override {
24 FilteredEntities& entities = getFilteredEntities(entity);
25 auto func = [&] (
const AIPtr& ai) {
26 entities.push_back(ai->getId());
29 entity->getZone()->execute(func);
This filter will pick the entities from the zone of the given entity.
Definition: SelectZone.h:15