public abstract class EntityProcessingSystem extends EntitySystem
EntitySubscription
member entities by
entity reference.
Use this when you need to process entities matching an Aspect
,
and you prefer to work with Entity
.
This is a convenience system. We suggest to use IteratingSystem
instead, it sits closer to the metal and enjoys better long term support.subscription
world
Constructor and Description |
---|
EntityProcessingSystem() |
EntityProcessingSystem(Aspect.Builder aspect)
Creates a new EntityProcessingSystem.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
process(Entity e)
Process a entity this system is interested in.
|
protected void |
processSystem()
Process the system.
|
getEntities, inserted, inserted, inserted, removed, removed, removed, setWorld
getEntityIds, getSubscription
begin, checkProcessing, dispose, end, getWorld, initialize, isEnabled, process, setEnabled
public EntityProcessingSystem(Aspect.Builder aspect)
aspect
- the aspect to match entitiespublic EntityProcessingSystem()
protected abstract void process(Entity e)
e
- the entity to processprotected final void processSystem()
BaseSystem
processSystem
in class BaseSystem
Copyright © 2019. All rights reserved.