Esempio n. 1
0
            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);
                }
            }
Esempio n. 2
0
            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);
            }
Esempio n. 3
0
            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);
                }
            }
Esempio n. 4
0
 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);
 }