using Decal.Interop.Filters;
namespace Decal.Adapter.Wrappers;
///
/// Defines the WorldObjectCollection filter for objects having the specified name
///
public class ByNameFilter : WorldObjectCollectionFilter
{
private string name;
///
/// Name of the objects in this collection
///
public string Name
{
get
{
return name;
}
set
{
name = value;
}
}
///
/// Creates a new filter
///
public ByNameFilter()
{
}
///
/// Creates a new filter using the specified name
///
/// Name of the object
public ByNameFilter(string name)
{
this.name = name;
}
internal override void ApplyFilter(WorldIterator wi)
{
wi.ByName(name);
}
internal override void ApplyFilter(Decal.Interop.Filters.Vendor ven)
{
ven.ByName(name);
}
}