public static FirstEventPayload ToNative(global::Improbable.Gdk.Tests.BlittableTypes.FirstEventPayload spatialType) { var nativeType = new FirstEventPayload(); nativeType.Field1 = spatialType.field1; nativeType.Field2 = spatialType.field2; return(nativeType); }
public static FirstEventPayload Deserialize(global::Improbable.Worker.Core.SchemaObject obj) { var instance = new FirstEventPayload(); instance.Field1 = obj.GetBool(1); instance.Field2 = obj.GetInt32(2); return(instance); }
public static void Serialize(FirstEventPayload instance, global::Improbable.Worker.Core.SchemaObject obj) { { obj.AddBool(1, instance.Field1); } { obj.AddInt32(2, instance.Field2); } }