public class DespawnSystem extends EntityTickingSystem
System for handling despawn mechanics. Systems contain game logic that operates on entities with specific component types.
java.lang.Object > EntityTickingSystem > DespawnSystem
Field Summary
despawn
final
DespawnComponent
despawn
Field despawn.
despawnInstant
final
Instant
despawnInstant
Field despawnInstant.
timeResource
final
TimeResource
timeResource
Field timeResource.
entityRef
final
Ref
entityRef
Field entityRef.
Method Detail
isParallel
public
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
tick
public
void
tick
(final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tick.
- Parameters:
final floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer