Table of Contents

Delegate ChunkPrepare<TChunk>

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

The prepare step of a lambda-declared chunked system (ChunkedSystem<TChunk>(string, ChunkPrepare<TChunk>, ChunkExecute<TChunk>, string, string[], SystemPriority, Func<bool>, int, int, bool)): sizes plan with Reset(int), fills one record per chunk, and returns the chunk count — 0 skips the system this tick, -1 keeps one chunk. Runs on one thread, before any chunk is claimed.

public delegate int ChunkPrepare<TChunk>(ChunkTable<TChunk> plan) where TChunk : unmanaged

Parameters

plan ChunkTable<TChunk>
The prepare step of a lambda-declared chunked system (): sizes plan with , fills one record per chunk, and returns the chunk count — 0 skips the system this tick, -1 keeps one chunk. Runs on one thread, before any chunk is claimed.

Returns

int
The prepare step of a lambda-declared chunked system (): sizes plan with , fills one record per chunk, and returns the chunk count — 0 skips the system this tick, -1 keeps one chunk. Runs on one thread, before any chunk is claimed.

Type Parameters

TChunk

Constructors

ChunkPrepare(object, nint)

public ChunkPrepare(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(ChunkTable<TChunk>, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(ChunkTable<TChunk> plan, AsyncCallback callback, object @object)

Parameters

plan ChunkTable<TChunk>
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual int EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

int

Invoke(ChunkTable<TChunk>)

public virtual int Invoke(ChunkTable<TChunk> plan)

Parameters

plan ChunkTable<TChunk>

Returns

int