DespawnSystem

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

DespawnSystem

public public DespawnSystem (final ComponentType despawnComponentType)

Method DespawnSystem.

Parameters:
final ComponentType despawnComponentType

isParallel

public boolean isParallel (final int archetypeChunkSize, final int taskCount)

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

getQuery

public Query getQuery ()

Method getQuery.

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 float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer