Table of Contents

Class ColumnSerializer

Namespace
Shard.Gameplay.Universe.World.Chunks
Assembly
Shard.Gameplay.Universe.dll

Assembles a SetColumn for an (x,z) column — the container the client needs before it applies the column's SetChunk sections (Java: BlockChunk.getCachedColumnPacket). It carries three column-level blobs: the surface ColumnHeightmap (short-key palette), a tintmap (int-key palette), and the per-column environments.

public static class ColumnSerializer
Inheritance
ColumnSerializer
Inherited Members

Methods

ToSetColumn(int, int, IReadOnlyList<BlockChunk>, int, short)

public static SetColumn ToSetColumn(int chunkX, int chunkZ, IReadOnlyList<BlockChunk> cubes, int minChunkY, short environmentId)

Parameters

chunkX int
chunkZ int
cubes IReadOnlyList<BlockChunk>
minChunkY int
environmentId short

A real, tagged surface environment id (resolved from the asset registry, e.g. Env_Zone1_Plains) stamped on every cell. Must be non-UNKNOWN (0): the client's per-chunk effect gather matches ambience against this environment's tags, and an untagged/UNKNOWN env degenerates.

Returns

SetColumn