Nebula
Persistence

PersistedRecordJson

PersistedEntityRecord as JSON, the wire format between RemotePersistenceStore (workers) and PersistenceHost (the orchestrator).

generated from the sources
public static class PersistedRecordJson

PersistedEntityRecord 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.

On this page