Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainCore module · function

Native::

BuildRepairRequest

Experimental

Compare the server's leaves with World's SyncHash tree and list the client's tiles in every chunk that differs (by count or sum, or present on one side only), and whether the stack differs.

Declaration

bool BuildRepairRequest(const FTerrainWorld& World, const FTerrainRepairLeaves& Server, FTerrainRepairRequest& Out);
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
Game thread (it brings the tree up to date).

Parameters

NameTypeDefaultMeaning
Worldconst FTerrainWorld&——
Serverconst FTerrainRepairLeaves&——
OutFTerrainRepairRequest&——

Returns

false when nothing differs: the truth matches and only the digest or the id disagreed (FTerrainReplica::Resync).

Note.

Game thread (it brings the tree up to date). O(leaves) plus 1,024 lookups per differing chunk.