Class UpdateSystem
java.lang.Object
dev.prozilla.pine.core.system.SystemBase
dev.prozilla.pine.core.system.update.UpdateSystemBase
dev.prozilla.pine.core.system.update.UpdateSystem
- All Implemented Interfaces:
Lifecycle
- Direct Known Subclasses:
AnimationUpdater
,CameraControlUpdater
,DynamicTextUpdater
,FrameResizer
,LayoutNodeArranger
,LayoutNodeResizer
,LayoutNodeStyler
,NodeStyler
,NodeUpdater
,ParticleFlowUpdater
,ParticleUpdater
,TextResizer
,TileMover
System for updating entity data.
-
Field Summary
FieldsFields inherited from class dev.prozilla.pine.core.system.SystemBase
application, logger, scene, world
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
process
(EntityChunk chunk, float deltaTime) Updates a single entity's data, each frame.void
setApplyTimeScale
(boolean applyTimeScale) final void
update
(float deltaTime) Updates each entity's data, each frame.Methods inherited from class dev.prozilla.pine.core.system.SystemBase
forEach, forEachReverse, hasEntityChunks, initSystem, print, register, setExcludedComponentTypes, setRequiredTag, setRunWhenPaused, shouldRun, sort, unregister
-
Field Details
-
timeScale
protected float timeScale -
applyTimeScale
protected boolean applyTimeScale
-
-
Constructor Details
-
UpdateSystem
-
-
Method Details
-
setApplyTimeScale
public void setApplyTimeScale(boolean applyTimeScale) -
update
public final void update(float deltaTime) Description copied from class:UpdateSystemBase
Updates each entity's data, each frame.- Specified by:
update
in interfaceLifecycle
- Specified by:
update
in classUpdateSystemBase
- Parameters:
deltaTime
- Delta time in seconds
-
process
Updates a single entity's data, each frame.- Parameters:
chunk
- Entity that matches this system's querydeltaTime
- Delta time in seconds
-