using Decal.Interop.Filters; namespace Decal.Adapter.Wrappers; /// /// Defines the WorldObjectCollection filter for all objects owned by a character /// public class ByOwnerFilter : WorldObjectCollectionFilter { private int owner; /// /// Id of the owner of the objects /// public int Owner { get { return owner; } set { owner = value; } } /// /// Creates a new filter /// public ByOwnerFilter() { } /// /// Creates a new filter using the specified owner /// /// Id of the owner public ByOwnerFilter(int owner) { this.owner = owner; } internal override void ApplyFilter(WorldIterator wi) { wi.ByOwner(owner); } }