class

FWolangReplication

Module
Scripting
Header
#include "Scripting/WolangReplication.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
voidBuildPlanThe plan of a class chain, base first (a child redeclaring a member takes its own).
voidSetNetPortThe session the replication talks to; null restores the FNetSession port.
IWolangNetPort&GetNetPort
voidInstallSessionHooksHooks the script lane into FNetSession.
voidUninstallSessionHooks
voidBeginInstance lifecycle, called by FWolangScriptInstance for actors.
voidTick
voidEnd
boolReplicateNowThe authority sends the fields that changed (or all of them).
boolCallRpcCalls a @Server/@Client/@Multicast method where its kind says it runs, routing it over the session when that is another machine.
boolReceiveAn envelope that arrived for actor.
const FWolangReplicationStats&GetStats
voidResetStats
std::stringDescribeFieldOne line per replicated field and RPC: the Details rows and the Network debug panel's list.
std::stringDescribeRpc
const char*TypeName

Function details

BuildPlan

C++
static void BuildPlan(const FWolangScriptClass& script, const std::vector<const FWolangClassDecl*>& chain, FWolangReplicationPlan& out, std::vector<FWolangClassProblem>& problems)

The plan of a class chain, base first (a child redeclaring a member takes its own). Anything the bridge cannot carry is a problem, not a half plan.

SetNetPort

C++
static void SetNetPort(IWolangNetPort* port)

The session the replication talks to; null restores the FNetSession port.

GetNetPort

C++
static IWolangNetPort& GetNetPort()

InstallSessionHooks

C++
static void InstallSessionHooks()

Hooks the script lane into FNetSession. Install is idempotent.

UninstallSessionHooks

C++
static void UninstallSessionHooks()

Begin

C++
static void Begin(FWolangScriptInstance& instance)

Instance lifecycle, called by FWolangScriptInstance for actors.

Tick

C++
static void Tick(FWolangScriptInstance& instance, float deltaSeconds)

End

C++
static void End(FWolangScriptInstance& instance)

ReplicateNow

C++
static bool ReplicateNow(FWolangScriptInstance& instance, bool forceFull)

The authority sends the fields that changed (or all of them). True when a batch left. Tick calls it at 20 Hz; the rows call it directly.

CallRpc

C++
static bool CallRpc(FWolangScriptInstance& instance, const std::string& method, const std::vector<VisualScriptValue>& arguments)

Calls a @Server/@Client/@Multicast method where its kind says it runs, routing it over the session when that is another machine.

Receive

C++
static bool Receive(AActor* actor, const uint8_t* data, size_t length, bool fromServer, uint32_t senderPeer)

An envelope that arrived for actor. fromServer is the packet's origin, senderPeer the connection a client's packet came from.

GetStats

C++
static const FWolangReplicationStats& GetStats()

ResetStats

C++
static void ResetStats()

DescribeField

C++
static std::string DescribeField(const FWolangReplicatedField& field)

One line per replicated field and RPC: the Details rows and the Network debug panel's list.

DescribeRpc

C++
static std::string DescribeRpc(const FWolangRpcMethod& rpc)

TypeName

C++
static const char* TypeName(FMValueType type)
Generated from Scripting/WolangReplication.h via scripting.json · Nov 3, 2026Version 1.0.0