te
This commit is contained in:
parent
01151e679b
commit
57b2f0400e
265 changed files with 22828 additions and 6 deletions
52
Unused/Decal.Adapter.Wrappers/ByNameFilter.cs
Normal file
52
Unused/Decal.Adapter.Wrappers/ByNameFilter.cs
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
using Decal.Interop.Filters;
|
||||
|
||||
namespace Decal.Adapter.Wrappers;
|
||||
|
||||
/// <summary>
|
||||
/// Defines the WorldObjectCollection filter for objects having the specified name
|
||||
/// </summary>
|
||||
public class ByNameFilter : WorldObjectCollectionFilter
|
||||
{
|
||||
private string name;
|
||||
|
||||
/// <summary>
|
||||
/// Name of the objects in this collection
|
||||
/// </summary>
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return name;
|
||||
}
|
||||
set
|
||||
{
|
||||
name = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new filter
|
||||
/// </summary>
|
||||
public ByNameFilter()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new filter using the specified name
|
||||
/// </summary>
|
||||
/// <param name="name">Name of the object</param>
|
||||
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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue