Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainCore module · class

Native::

FTerrainRepairSource

Experimental

The authority's truth at one checkpoint, kept to repair clients that disagreed there.

Declaration

class FTerrainRepairSource
Header
#include "Native/Net/NetRepair.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
Construct on the game thread; Leaves and Build on any thread.

Description

It shares the sculpt, edit and channel tables copy-on-write and the stack's features, as a save plan does, so it holds the moment of the checkpoint while the world goes on; it lands no encode, so making one costs O(table chunks). The server keeps one per checkpoint until every client has passed it.

Tier 1. Construct on the game thread; Leaves and Build on any thread. The source may outlive the world.

Functions

  • FTerrainRepairSource (2 overloads)
  • operator=
  • Seq
  • Leaves
  • Build

    The Repair record's payload for one request: every tile of the requested chunks whose content differs from the client's (a tile the authority does not hold goes as absent), coded as an undo patch codes them, with each sculpt code canonical (as the save codes it); and the stack, in the save's STAK form, when asked for.