Class EntityFilter (original) (raw)

Namespace

LiteEntitySystem

Assembly

LiteEntitySystem.dll

public class EntityFilter<T> : AVLTree<T>, IEnumerable<T>, IEnumerable, IEntityFilter where T : InternalEntity

Type Parameters

T

Inheritance

object

EntityFilter

Implements

Inherited Members

Methods

SubscribeToConstructed(Action, 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

callOnExisting bool

UnsubscribeToConstructed(Action)

Called when entity created and synced

callback

public void UnsubscribeToConstructed(Action<T> onConstructed)

Parameters

onConstructed Action

Events

OnDestroyed

Called when entity is removed/destroyed

public event Action<T> OnDestroyed

Event Type

Action