te
This commit is contained in:
parent
01151e679b
commit
57b2f0400e
265 changed files with 22828 additions and 6 deletions
47
Unused/Decal.Adapter.Wrappers/ByContainerFilter.cs
Normal file
47
Unused/Decal.Adapter.Wrappers/ByContainerFilter.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using Decal.Interop.Filters;
|
||||
|
||||
namespace Decal.Adapter.Wrappers;
|
||||
|
||||
/// <summary>
|
||||
/// Defines the WorldObjectCollection filter for objects in a container
|
||||
/// </summary>
|
||||
public class ByContainerFilter : WorldObjectCollectionFilter
|
||||
{
|
||||
private int container;
|
||||
|
||||
/// <summary>
|
||||
/// Id of the container filtered by
|
||||
/// </summary>
|
||||
public int Container
|
||||
{
|
||||
get
|
||||
{
|
||||
return container;
|
||||
}
|
||||
set
|
||||
{
|
||||
container = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new filter
|
||||
/// </summary>
|
||||
public ByContainerFilter()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new filter using the specified container
|
||||
/// </summary>
|
||||
/// <param name="container">Id of the container</param>
|
||||
public ByContainerFilter(int container)
|
||||
{
|
||||
this.container = container;
|
||||
}
|
||||
|
||||
internal override void ApplyFilter(WorldIterator wi)
|
||||
{
|
||||
wi.ByContainer(container);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue