Class EntityFilter<T>
Inheritance
EntityFilter<T>
Assembly: LiteEntitySystem.dll
Syntax
public class EntityFilter<T> : EntityFilter, IEnumerable<T>, IEnumerable where T : InternalEntity
Type Parameters
Constructors
EntityFilter()
Declaration
Properties
Count
Declaration
public int Count { get; }
Property Value
Methods
Contains(T)
Declaration
public bool Contains(T entity)
Parameters
Type |
Name |
Description |
T |
entity |
|
Returns
GetEnumerator()
Declaration
public SortedSet<T>.Enumerator GetEnumerator()
Returns
SubscribeToConstructed(Action<T>, bool)
Called when entity created and synced
callback
call that callback on existing entities in this filter/list
Declaration
public void SubscribeToConstructed(Action<T> onConstructed, bool callOnExisting)
Parameters
Type |
Name |
Description |
Action<T> |
onConstructed |
|
bool |
callOnExisting |
|
ToArray()
Declaration
Returns
UnsubscribeToConstructed(Action<T>)
Called when entity created and synced
callback
Declaration
public void UnsubscribeToConstructed(Action<T> onConstructed)
Parameters
Type |
Name |
Description |
Action<T> |
onConstructed |
|
Events
OnDestroyed
Called when entity is removed/destroyed
Declaration
public event Action<T> OnDestroyed
Event Type
Implements