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