public static global::Improbable.Gdk.PlayerLifecycle.OwningWorker.Update DeserializeUpdate(global::Improbable.Worker.CInterop.SchemaComponentData data) { var update = new global::Improbable.Gdk.PlayerLifecycle.OwningWorker.Update(); var obj = data.GetFields(); update.WorkerId = obj.GetString(1); return(update); }
public static global::Improbable.Gdk.PlayerLifecycle.OwningWorker.Update DeserializeUpdate(global::Improbable.Worker.CInterop.SchemaComponentUpdate updateObj) { var update = new global::Improbable.Gdk.PlayerLifecycle.OwningWorker.Update(); var obj = updateObj.GetFields(); if (obj.GetStringCount(1) == 1) { update.WorkerId = obj.GetString(1); } return(update); }
public static void SerializeUpdate(global::Improbable.Gdk.PlayerLifecycle.OwningWorker.Update update, global::Improbable.Worker.CInterop.SchemaComponentUpdate updateObj) { var obj = updateObj.GetFields(); { if (update.WorkerId.HasValue) { var field = update.WorkerId.Value; obj.AddString(1, field); } } }