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 ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBufferfinal Qqueryfinal Listresults
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 EntityDataSystemsystem@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBufferfinal Qqueryfinal Listresults
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 EntityDataSystemsystemfinal ArchetypeChunkarchetypeChunkfinal Storestorefinal CommandBuffercommandBufferfinal Qquery
accept
public
void
accept
(final int index)
Method accept.
- Parameters:
final intindex
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 ParallelTaskparallelTask> @Nonnull final CommandBuffercommandBuffer@Nonnull final Listresults