public static void Serialize(EdgeLength instance, global::Improbable.Worker.CInterop.SchemaObject obj) { { obj.AddDouble(1, instance.X); } { obj.AddDouble(2, instance.Y); } { obj.AddDouble(3, instance.Z); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, EdgeLength _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { { _obj.AddDouble(1, _data.x); } { _obj.AddDouble(2, _data.y); } { _obj.AddDouble(3, _data.z); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, RelativeCylinderConstraint _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { { _obj.AddDouble(1, _data.radius); } }
public static void Serialize(SecondEventPayload instance, global::Improbable.Worker.CInterop.SchemaObject obj) { { obj.AddFloat(1, instance.Field1); } { obj.AddDouble(2, instance.Field2); } }
public static void Serialize(ExhaustiveSingularData instance, global::Improbable.Worker.CInterop.SchemaObject obj) { { obj.AddBool(1, instance.Field1); } { obj.AddFloat(2, instance.Field2); } { obj.AddBytes(3, instance.Field3); } { obj.AddInt32(4, instance.Field4); } { obj.AddInt64(5, instance.Field5); } { obj.AddDouble(6, instance.Field6); } { obj.AddString(7, instance.Field7); } { obj.AddUint32(8, instance.Field8); } { obj.AddUint64(9, instance.Field9); } { obj.AddSint32(10, instance.Field10); } { obj.AddSint64(11, instance.Field11); } { obj.AddFixed32(12, instance.Field12); } { obj.AddFixed64(13, instance.Field13); } { obj.AddSfixed32(14, instance.Field14); } { obj.AddSfixed64(15, instance.Field15); } { obj.AddEntityId(16, instance.Field16); } { global::Improbable.Gdk.Tests.SomeType.Serialization.Serialize(instance.Field17, obj.AddObject(17)); } { obj.AddEnum(18, (uint)instance.Field18); } }
public static void Serialize(CylinderConstraint instance, global::Improbable.Worker.CInterop.SchemaObject obj) { { global::Improbable.Coordinates.Serialization.Serialize(instance.Center, obj.AddObject(1)); } { obj.AddDouble(2, instance.Radius); } }
public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool, CylinderConstraint _data, global::Improbable.Worker.CInterop.SchemaObject _obj) { { global::Improbable.Coordinates_Internal.Write(_pool, _data.center, _obj.AddObject(1)); } { _obj.AddDouble(2, _data.radius); } }
public static void Serialize(SecondCommandResponse instance, global::Improbable.Worker.CInterop.SchemaObject obj) { { obj.AddDouble(1, instance.Response); } }
public static void Serialize(ExhaustiveRepeatedData instance, global::Improbable.Worker.CInterop.SchemaObject obj) { { foreach (var value in instance.Field1) { obj.AddBool(1, value); } } { foreach (var value in instance.Field2) { obj.AddFloat(2, value); } } { foreach (var value in instance.Field3) { obj.AddBytes(3, value); } } { foreach (var value in instance.Field4) { obj.AddInt32(4, value); } } { foreach (var value in instance.Field5) { obj.AddInt64(5, value); } } { foreach (var value in instance.Field6) { obj.AddDouble(6, value); } } { foreach (var value in instance.Field7) { obj.AddString(7, value); } } { foreach (var value in instance.Field8) { obj.AddUint32(8, value); } } { foreach (var value in instance.Field9) { obj.AddUint64(9, value); } } { foreach (var value in instance.Field10) { obj.AddSint32(10, value); } } { foreach (var value in instance.Field11) { obj.AddSint64(11, value); } } { foreach (var value in instance.Field12) { obj.AddFixed32(12, value); } } { foreach (var value in instance.Field13) { obj.AddFixed64(13, value); } } { foreach (var value in instance.Field14) { obj.AddSfixed32(14, value); } } { foreach (var value in instance.Field15) { obj.AddSfixed64(15, value); } } { foreach (var value in instance.Field16) { obj.AddEntityId(16, value); } } { foreach (var value in instance.Field17) { global::Improbable.TestSchema.SomeType.Serialization.Serialize(value, obj.AddObject(17)); } } { foreach (var value in instance.Field18) { obj.AddEnum(18, (uint)value); } } }
public static void Serialize(ExhaustiveOptionalData instance, global::Improbable.Worker.CInterop.SchemaObject obj) { { if (instance.Field1.HasValue) { obj.AddBool(1, instance.Field1.Value); } } { if (instance.Field2.HasValue) { obj.AddFloat(2, instance.Field2.Value); } } { if (instance.Field3.HasValue) { obj.AddBytes(3, instance.Field3.Value); } } { if (instance.Field4.HasValue) { obj.AddInt32(4, instance.Field4.Value); } } { if (instance.Field5.HasValue) { obj.AddInt64(5, instance.Field5.Value); } } { if (instance.Field6.HasValue) { obj.AddDouble(6, instance.Field6.Value); } } { if (instance.Field7.HasValue) { obj.AddString(7, instance.Field7.Value); } } { if (instance.Field8.HasValue) { obj.AddUint32(8, instance.Field8.Value); } } { if (instance.Field9.HasValue) { obj.AddUint64(9, instance.Field9.Value); } } { if (instance.Field10.HasValue) { obj.AddSint32(10, instance.Field10.Value); } } { if (instance.Field11.HasValue) { obj.AddSint64(11, instance.Field11.Value); } } { if (instance.Field12.HasValue) { obj.AddFixed32(12, instance.Field12.Value); } } { if (instance.Field13.HasValue) { obj.AddFixed64(13, instance.Field13.Value); } } { if (instance.Field14.HasValue) { obj.AddSfixed32(14, instance.Field14.Value); } } { if (instance.Field15.HasValue) { obj.AddSfixed64(15, instance.Field15.Value); } } { if (instance.Field16.HasValue) { obj.AddEntityId(16, instance.Field16.Value); } } { if (instance.Field17.HasValue) { global::Improbable.TestSchema.SomeType.Serialization.Serialize(instance.Field17.Value, obj.AddObject(17)); } } { if (instance.Field18.HasValue) { obj.AddEnum(18, (uint)instance.Field18.Value); } } }
public static void Serialize(RelativeCylinderConstraint instance, global::Improbable.Worker.CInterop.SchemaObject obj) { { obj.AddDouble(1, instance.Radius); } }