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
- 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 voidprocess(EntityChunk chunk, float deltaTime) Updates a single entity's data, each frame.voidsetApplyTimeScale(boolean applyTimeScale) final voidupdate(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:UpdateSystemBaseUpdates each entity's data, each frame.- Specified by:
updatein classUpdateSystemBase
-
process
Updates a single entity's data, each frame.- Parameters:
chunk- Entity that matches this system's querydeltaTime- Delta time in seconds
-