java.lang.Object
technology.sola.ecs.EcsSystem
-
Constructor Details
-
EcsSystem
public EcsSystem()
-
-
Method Details
-
update
Called to update the state ofComponent
s attached to anEntity
.Implementations will usually create a view via
World.createView()
to getEntity
instances that have a particularComponent
set to work on.- Parameters:
world
- theWorld
deltaTime
- the delta time between the last frame and the current frame
-
getOrder
public int getOrder()Gets the order of this System. A higher value means it will be run later in the queue.- Returns:
- the order of this system
-
isActive
public boolean isActive()Returns true if thisEcsSystem
is active.- Returns:
- the active state of this system
-
setActive
public void setActive(boolean isActive) Sets the active state of thisEcsSystem
.- Parameters:
isActive
- the new active state
-