public abstract class IteratingSystem extends BaseEntitySystem
EntitySubscription
member entities by
entity identity.
Use this when you need to process entities matching an Aspect
,
and you want maximum performance.Entity iteration by entity reference.
subscription
world
Constructor and Description |
---|
IteratingSystem() |
IteratingSystem(Aspect.Builder aspect)
Creates a new IteratingSystem.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
process(int entityId)
Process a entity this system is interested in.
|
protected void |
processSystem()
Process the system.
|
getEntityIds, getSubscription, inserted, inserted, removed, removed, setWorld
begin, checkProcessing, dispose, end, getWorld, initialize, isEnabled, process, setEnabled
public IteratingSystem(Aspect.Builder aspect)
aspect
- the aspect to match entitiespublic IteratingSystem()
protected abstract void process(int entityId)
entityId
- the entity to processprotected final void processSystem()
BaseSystem
processSystem
in class BaseSystem
Copyright © 2019. All rights reserved.