EntityDataSystem

abstract class EntityDataSystem

System for handling entitydata mechanics. Systems contain game logic that operates on entities with specific component types.

java.lang.Object > EntityDataSystem

Field Summary

size

final int size

Field size.

archetypeChunk

private ArchetypeChunk archetypeChunk

Field archetypeChunk.

store

private Store store

Field store.

commandBuffer

private CommandBuffer commandBuffer

Field commandBuffer.

query

private Q query

Field query.

parallelTaskSize

final int parallelTaskSize

Field parallelTaskSize.

Method Detail

isParallel

public boolean isParallel ()

Method isParallel.

fetch

public void fetch (@Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer, final Q query, final List results)

Method fetch.

Parameters:
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer
final Q query
final List results

doFetch

static void doFetch (@Nonnull final EntityDataSystem system, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer, final Q query, final List results)

Method doFetch.

Parameters:
@Nonnull final EntityDataSystem system
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer
final Q query
final List results

SystemTaskData

public public SystemTaskData ()

Method SystemTaskData.

init

public void init (final EntityDataSystem system, final ArchetypeChunk archetypeChunk, final Store store, final CommandBuffer commandBuffer, final Q query)

Method init.

Parameters:
final EntityDataSystem system
final ArchetypeChunk archetypeChunk
final Store store
final CommandBuffer commandBuffer
final Q query

accept

public void accept (final int index)

Method accept.

Parameters:
final int index

clear

public void clear ()

Method clear.

invokeParallelTask

static void invokeParallelTask (@Nonnull final ParallelTask> parallelTask, @Nonnull final CommandBuffer commandBuffer, @Nonnull final List results)

Method invokeParallelTask.

Parameters:
@Nonnull final ParallelTask> parallelTask
@Nonnull final CommandBuffer commandBuffer
@Nonnull final List results