@SkipWire public class AspectSubscriptionManager extends BaseSystem
Manages all instances of EntitySubscription
.
Entity subscriptions are automatically updated during World.process()
.
Any listeners
are informed when entities are added or removed.
EntitySubscription
world
Modifier | Constructor and Description |
---|---|
protected |
AspectSubscriptionManager() |
Modifier and Type | Method and Description |
---|---|
EntitySubscription |
get(Aspect.Builder builder)
Gets the entity subscription for the
Aspect . |
ImmutableBag<EntitySubscription> |
getSubscriptions()
Gets the active list of all current entity subscriptions.
|
protected void |
initialize()
Override to implement code that gets executed when systems are
initialized.
|
protected void |
processSystem()
Process the system.
|
begin, checkProcessing, dispose, end, getWorld, isEnabled, process, setEnabled, setWorld
protected void processSystem()
BaseSystem
processSystem
in class BaseSystem
protected void initialize()
BaseSystem
initialize
in class BaseSystem
public EntitySubscription get(Aspect.Builder builder)
Gets the entity subscription for the Aspect
.
Subscriptions are only created once per aspect.
builder
- Aspect to match.EntitySubscription
for aspect.public ImmutableBag<EntitySubscription> getSubscriptions()
Copyright © 2016. All rights reserved.