Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainCore module · member function

Native::FSculptReplayer::

ApplyFor

Experimental

Apply one command as Author's: the authority's path with several players.

Declaration

ESculptApply ApplyFor(const FSculptCommand& Command, uint32_t Author);
Header
#include "Native/SculptReplay.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrainCore"); in your module’s Build.cs.
Stability
Experimental: supported, may change in a minor version, with a changelog line.
Thread
Game thread only, like every FTerrainWorld write. (the rule of FSculptReplayer)

Description

A BeginStroke opens Author's stroke (FTerrainWorld::BeginStrokeFor), so the world's per-author undo finds it; every other kind is Apply's. The caller records Author's End before Author's next Begin: a Begin while Author has a stroke open answers OutOfOrder and opens nothing.

Parameters

NameTypeDefaultMeaning
Commandconst FSculptCommand&—

The command to apply.

Authoruint32_t—

An FTerrainAuthor; kStrokeBeside is refused.