Table of Contents

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
object
EntityFilter<T>
Implements
Inherited Members

Methods

SubscribeToConstructed(Action<T>, bool)

Called when entity created and synced

callback call that callback on existing entities in this filter/list
public void SubscribeToConstructed(Action<T> onConstructed, bool callOnExisting)

Parameters

onConstructed Action<T>
callOnExisting bool

UnsubscribeToConstructed(Action<T>)

Called when entity created and synced

callback
public 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>