PersistedRecordJson
PersistedEntityRecord as JSON, the wire format between RemotePersistenceStore (workers) and PersistenceHost (the orchestrator).
Nebula · Packages/com.1by3.nebula/Runtime/Persistence/PersistedRecordJson.cspublic static class PersistedRecordJsonPersistedEntityRecord as JSON, the wire format between RemotePersistenceStore (workers) and PersistenceHost (the orchestrator). The state blob travels base64-encoded; vectors are [x, y, z], the rotation [x, y, z, w], times Unix milliseconds.
Methods
Write
public static void Write(JsonWriter w, PersistedEntityRecord r);WriteList
public static string WriteList(IReadOnlyList<PersistedEntityRecord> records);{"records":[...]}
WriteOne
public static string WriteOne(PersistedEntityRecord record);{"record":{...}}, or {"record":null}.
Parse
public static PersistedEntityRecord Parse(Dictionary<string, object> o);ParseList
public static List<PersistedEntityRecord> ParseList(Dictionary<string, object> root, string key = "records");
public static List<PersistedEntityRecord> ParseList(string json);The records under key in a parsed body (an empty list when absent).
ParseOne
public static PersistedEntityRecord ParseOne(Dictionary<string, object> root, string key = "record");
public static PersistedEntityRecord ParseOne(string json);The record under key in a parsed body, or null.
PersistedEntityRecord
One persisted entity as the store holds it: enough to bring the entity back on any worker (prefab or scene object, container and pose, authority epoch) plus the opaque state blob the entity itself wrote (PersistentStateCodec: opted-in Ne...
PersistenceAnswer
Whether the answer a store is delivering right now is a stand-in for one the backend could not give.