public static void SerializeUpdate(global::Improbable.Gdk.PlayerLifecycle.OwningWorker.Component component, global::Improbable.Worker.CInterop.SchemaComponentUpdate updateObj) { var obj = updateObj.GetFields(); if (component.IsDataDirty(0)) { obj.AddString(1, component.WorkerId); } }
public static global::Improbable.Gdk.PlayerLifecycle.OwningWorker.Component Deserialize(global::Improbable.Worker.CInterop.SchemaObject obj, global::Unity.Entities.World world) { var component = new global::Improbable.Gdk.PlayerLifecycle.OwningWorker.Component(); component.workerIdHandle = global::Improbable.Gdk.Core.ReferenceProvider <string> .Create(); component.WorkerId = obj.GetString(1); return(component); }
public static void ApplyUpdate(global::Improbable.Worker.CInterop.SchemaComponentUpdate updateObj, ref global::Improbable.Gdk.PlayerLifecycle.OwningWorker.Component component) { var obj = updateObj.GetFields(); if (obj.GetStringCount(1) == 1) { component.WorkerId = obj.GetString(1); } }
public static void SerializeComponent(global::Improbable.Gdk.PlayerLifecycle.OwningWorker.Component component, global::Improbable.Worker.CInterop.SchemaObject obj, global::Unity.Entities.World world) { obj.AddString(1, component.WorkerId); }