public static global::Improbable.Restricted.PlayerClient.Snapshot DeserializeSnapshot(global::Improbable.Worker.CInterop.SchemaObject obj) { var component = new global::Improbable.Restricted.PlayerClient.Snapshot(); component.PlayerIdentity = global::Improbable.Restricted.PlayerIdentity.Serialization.Deserialize(obj.GetObject(1)); return(component); }
public static void ApplyUpdate(global::Improbable.Worker.CInterop.SchemaComponentUpdate updateObj, ref global::Improbable.Restricted.PlayerClient.Snapshot snapshot) { var obj = updateObj.GetFields(); if (obj.GetObjectCount(1) == 1) { snapshot.PlayerIdentity = global::Improbable.Restricted.PlayerIdentity.Serialization.Deserialize(obj.GetObject(1)); } }
public static void SerializeSnapshot(global::Improbable.Restricted.PlayerClient.Snapshot snapshot, global::Improbable.Worker.CInterop.SchemaObject obj) { global::Improbable.Restricted.PlayerIdentity.Serialization.Serialize(snapshot.PlayerIdentity, obj.AddObject(1)); }