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