Table of Contents

Struct ChunkLoadResult

Namespace
TileWorld.Engine.Runtime.Chunks
Assembly
TileWorld.Engine.dll

Describes how a chunk became available to the runtime.

public readonly record struct ChunkLoadResult : IEquatable<ChunkLoadResult>
Implements
Inherited Members

Constructors

ChunkLoadResult(Chunk, bool, bool, bool)

Describes how a chunk became available to the runtime.

public ChunkLoadResult(Chunk Chunk, bool WasLoadedFromMemory, bool WasLoadedFromDisk, bool WasCreatedNew)

Parameters

Chunk Chunk

The resolved chunk instance.

WasLoadedFromMemory bool

Whether the chunk was already available in memory.

WasLoadedFromDisk bool

Whether the chunk payload was loaded from persistent storage.

WasCreatedNew bool

Whether the chunk had to be created as a new empty chunk.

Properties

Chunk

The resolved chunk instance.

public Chunk Chunk { get; init; }

Property Value

Chunk

WasCreatedNew

Whether the chunk had to be created as a new empty chunk.

public bool WasCreatedNew { get; init; }

Property Value

bool

WasLoadedFromDisk

Whether the chunk payload was loaded from persistent storage.

public bool WasLoadedFromDisk { get; init; }

Property Value

bool

WasLoadedFromMemory

Whether the chunk was already available in memory.

public bool WasLoadedFromMemory { get; init; }

Property Value

bool