Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainCore module · struct

Native::

FSculptPatch

Experimental

The sculpt layer's state after an undo or redo, replicated as tiles, never re-derived.

Declaration

struct FSculptPatch
Header
#include "Native/SculptCommand.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrainCore"); in your module’s Build.cs.
Stability
Experimental: supported, may change in a minor version, with a changelog line.

Description

A replica cannot replay "undo stroke S": the before-image ring is the authority's and is not in a join snapshot (the ring lives on the server; an undo's resulting tiles replicate). Tier 1, plain data.

Properties

NameTypeDefaultMeaning
Versionuint16_tkSculptRecordVersion—
KindESculptRecordKindESculptRecordKind::UndoPatch

UndoPatch or RedoPatch.

StrokeFStrokeId0

The stroke undone or redone, in the authority's numbering.

Tilesstd::vector<uint8_t>—

Each touched tile's sculpt after the operation as its canonical code with its summary, and its channel values as predictive run lengths; an absent code resets the tile to Pristine.