Ejemplo n.º 1
0
            public static FirstEventPayload Deserialize(global::Improbable.Worker.Core.SchemaObject obj)
            {
                var instance = new FirstEventPayload();

                instance.Field1 = obj.GetBool(1);
                instance.Field2 = obj.GetString(2);
                return(instance);
            }
Ejemplo n.º 2
0
        public static FirstEventPayload ToNative(global::Improbable.Gdk.Tests.NonblittableTypes.FirstEventPayload spatialType)
        {
            var nativeType = new FirstEventPayload();

            nativeType.Field1 = spatialType.field1;
            nativeType.Field2 = spatialType.field2;
            return(nativeType);
        }
Ejemplo n.º 3
0
 public static void Serialize(FirstEventPayload instance, global::Improbable.Worker.Core.SchemaObject obj)
 {
     {
         obj.AddBool(1, instance.Field1);
     }
     {
         obj.AddString(2, instance.Field2);
     }
 }