class
FVisualScriptVarSync
- Module
- VisualScripting
- Header
#include "VisualScripting/VisualScriptVarSync.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
bool | IsReplicable | True when v has a wire form. |
bool | Encode | Pack name/value pairs. |
bool | Decode | Unpack. |
Function details
IsReplicable
C++
static bool IsReplicable(const VisualScriptValue& v)True when v has a wire form. Containers, Object and Custom are out: a container has no fixed payload, and an object reference would need the replication address book, which is what makes it a component's job.
Encode
C++
static bool Encode(const std::vector<std::pair<std::string, VisualScriptValue>>& entries, std::string& outBlob)Pack name/value pairs. Entries with no wire form are SKIPPED with a warning rather than failing the whole update — one bad variable must not stop the rest of an actor's state from converging.
Decode
C++
static bool Decode(const std::string& blob, std::vector<std::pair<std::string, VisualScriptValue>>& out)Unpack. Returns false (and leaves out untouched) on a malformed or truncated blob — a partially applied update is worse than a dropped one.
Generated from VisualScripting/VisualScriptVarSync.h via visualscripting.json · Nov 5, 2026Version 1.0.0