Class EntityFilter<T>
Inheritance
EntityFilter<T>
Assembly: LiteEntitySystem.dll
Syntax
public class EntityFilter<T> : AVLTree<T>, IEnumerable<T>, IEnumerable, IEntityFilter where T : InternalEntity
Type Parameters
Methods
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 |
|
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