Class EntityFilter<T>
- Namespace
- LiteEntitySystem
- Assembly
- LiteEntitySystem.dll
public class EntityFilter<T> : AVLTree<T>, IEnumerable<T>, IEnumerable, IEntityFilter where T : InternalEntity
Type Parameters
T
- Inheritance
-
objectAVLTree<T>EntityFilter<T>
- Implements
-
IEnumerable<T>
- Inherited Members
Methods
SubscribeToConstructed(Action<T>, bool)
Called when entity created and synced
callback call that callback on existing entities in this filter/listpublic void SubscribeToConstructed(Action<T> onConstructed, bool callOnExisting)
Parameters
UnsubscribeToConstructed(Action<T>)
Called when entity created and synced
callbackpublic void UnsubscribeToConstructed(Action<T> onConstructed)
Parameters
onConstructed
Action<T>
Events
OnDestroyed
Called when entity is removed/destroyed
public event Action<T> OnDestroyed
Event Type
- Action<T>