public class TimerSystem extends SteppableTickingSystem
System for handling timer mechanics. Systems contain game logic that operates on entities with specific component types.
java.lang.Object > SteppableTickingSystem > TimerSystem
Field Summary
timersComponent
final
Timers
timersComponent
Field timersComponent.
Method Detail
TimerSystem
public
public
TimerSystem
(@Nonnull final ComponentType timersComponentType, @Nonnull final Set> dependencies)
Method TimerSystem.
- Parameters:
@Nonnull final ComponentTypetimersComponentType@Nonnull final Setdependencies>
getDependencies
public
Set>
getDependencies
()
Method getDependencies.
isParallel
public
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
steppedTick
public
void
steppedTick
(final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method steppedTick.
- Parameters:
final floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer