Ejemplo n.º 1
0
 public static void SerializeSnapshot(global::Improbable.TestSchema.ExhaustiveEntity.Snapshot snapshot, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         obj.AddEntity(1, snapshot.Field1);
     }
     {
         if (snapshot.Field2.HasValue)
         {
             obj.AddEntity(2, snapshot.Field2.Value);
         }
     }
     {
         foreach (var value in snapshot.Field3)
         {
             obj.AddEntity(3, value);
         }
     }
     {
         foreach (var keyValuePair in snapshot.Field4)
         {
             var mapObj = obj.AddObject(4);
             mapObj.AddEntity(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in snapshot.Field5)
         {
             var mapObj = obj.AddObject(5);
             mapObj.AddString(1, keyValuePair.Key);
             mapObj.AddEntity(2, keyValuePair.Value);
         }
     }
 }
Ejemplo n.º 2
0
 public static void SerializeComponent(global::Improbable.TestSchema.ExhaustiveEntity.Component component, global::Improbable.Worker.CInterop.SchemaObject obj, global::Unity.Entities.World world)
 {
     {
         obj.AddEntity(1, component.Field1);
     }
     {
         if (component.Field2.HasValue)
         {
             obj.AddEntity(2, component.Field2.Value);
         }
     }
     {
         foreach (var value in component.Field3)
         {
             obj.AddEntity(3, value);
         }
     }
     {
         foreach (var keyValuePair in component.Field4)
         {
             var mapObj = obj.AddObject(4);
             mapObj.AddEntity(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in component.Field5)
         {
             var mapObj = obj.AddObject(5);
             mapObj.AddString(1, keyValuePair.Key);
             mapObj.AddEntity(2, keyValuePair.Value);
         }
     }
 }
 public static void Serialize(ExhaustiveEntityData instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         obj.AddEntity(1, instance.Field1);
     }
     {
         if (instance.Field2.HasValue)
         {
             obj.AddEntity(2, instance.Field2.Value);
         }
     }
     {
         foreach (var value in instance.Field3)
         {
             obj.AddEntity(3, value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field4)
         {
             var mapObj = obj.AddObject(4);
             mapObj.AddEntity(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field5)
         {
             var mapObj = obj.AddObject(5);
             mapObj.AddString(1, keyValuePair.Key);
             mapObj.AddEntity(2, keyValuePair.Value);
         }
     }
 }
Ejemplo n.º 4
0
 public static void SerializeComponent(global::Improbable.DependentSchema.DependentComponent.Component component, global::Improbable.Worker.CInterop.SchemaObject obj, global::Unity.Entities.World world)
 {
     {
         global::Improbable.TestSchema.ExhaustiveRepeatedData.Serialization.Serialize(component.A, obj.AddObject(1));
     }
     {
         obj.AddEnum(2, (uint)component.B);
     }
     {
         if (component.C.HasValue)
         {
             obj.AddEnum(3, (uint)component.C.Value);
         }
     }
     {
         foreach (var value in component.D)
         {
             global::Improbable.TestSchema.SomeType.Serialization.Serialize(value, obj.AddObject(4));
         }
     }
     {
         foreach (var keyValuePair in component.E)
         {
             var mapObj = obj.AddObject(5);
             mapObj.AddEnum(1, (uint)keyValuePair.Key);
             global::Improbable.TestSchema.SomeType.Serialization.Serialize(keyValuePair.Value, mapObj.AddObject(2));
         }
     }
 }
Ejemplo n.º 5
0
 public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool,
                                 PositionData _data, global::Improbable.Worker.CInterop.SchemaObject _obj)
 {
     {
         global::Improbable.Coordinates_Internal.Write(_pool, _data.coords, _obj.AddObject(1));
     }
 }
            public static void SerializeSnapshot(global::Improbable.DependentSchema.DependentComponent.Snapshot snapshot, global::Improbable.Worker.CInterop.SchemaObject obj)
            {
                global::Improbable.TestSchema.ExhaustiveRepeatedData.Serialization.Serialize(snapshot.A, obj.AddObject(1));

                obj.AddEnum(2, (uint)snapshot.B);

                if (snapshot.C.HasValue)
                {
                    obj.AddEnum(3, (uint)snapshot.C.Value);
                }


                foreach (var value in snapshot.D)
                {
                    global::Improbable.TestSchema.SomeType.Serialization.Serialize(value, obj.AddObject(4));
                }


                foreach (var keyValuePair in snapshot.E)
                {
                    var mapObj = obj.AddObject(5);
                    mapObj.AddEnum(1, (uint)keyValuePair.Key);
                    global::Improbable.TestSchema.SomeType.Serialization.Serialize(keyValuePair.Value, mapObj.AddObject(2));
                }
            }
Ejemplo n.º 7
0
 public static void Serialize(DependentType instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         global::Improbable.TestSchema.ExhaustiveRepeatedData.Serialization.Serialize(instance.A, obj.AddObject(1));
     }
     {
         obj.AddEnum(2, (uint)instance.B);
     }
     {
         if (instance.C.HasValue)
         {
             obj.AddEnum(3, (uint)instance.C.Value);
         }
     }
     {
         foreach (var value in instance.D)
         {
             global::Improbable.TestSchema.SomeType.Serialization.Serialize(value, obj.AddObject(4));
         }
     }
     {
         foreach (var keyValuePair in instance.E)
         {
             var mapObj = obj.AddObject(5);
             mapObj.AddEnum(1, (uint)keyValuePair.Key);
             global::Improbable.TestSchema.SomeType.Serialization.Serialize(keyValuePair.Value, mapObj.AddObject(2));
         }
     }
 }
Ejemplo n.º 8
0
 public static void SerializeSnapshot(global::Improbable.Interest.Snapshot snapshot, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     foreach (var keyValuePair in snapshot.ComponentInterest)
     {
         var mapObj = obj.AddObject(1);
         mapObj.AddUint32(1, keyValuePair.Key);
         global::Improbable.ComponentInterest.Serialization.Serialize(keyValuePair.Value, mapObj.AddObject(2));
     }
 }
Ejemplo n.º 9
0
 public static void SerializeComponent(global::Improbable.Interest.Component component, global::Improbable.Worker.CInterop.SchemaObject obj, global::Unity.Entities.World world)
 {
     foreach (var keyValuePair in component.ComponentInterest)
     {
         var mapObj = obj.AddObject(1);
         mapObj.AddUint32(1, keyValuePair.Key);
         global::Improbable.ComponentInterest.Serialization.Serialize(keyValuePair.Value, mapObj.AddObject(2));
     }
 }
Ejemplo n.º 10
0
            public static void SerializeSnapshot(global::Improbable.EntityAcl.Snapshot snapshot, global::Improbable.Worker.CInterop.SchemaObject obj)
            {
                global::Improbable.WorkerRequirementSet.Serialization.Serialize(snapshot.ReadAcl, obj.AddObject(1));

                foreach (var keyValuePair in snapshot.ComponentWriteAcl)
                {
                    var mapObj = obj.AddObject(2);
                    mapObj.AddUint32(1, keyValuePair.Key);
                    global::Improbable.WorkerRequirementSet.Serialization.Serialize(keyValuePair.Value, mapObj.AddObject(2));
                }
            }
Ejemplo n.º 11
0
            public static void SerializeComponent(global::Improbable.EntityAcl.Component component, global::Improbable.Worker.CInterop.SchemaObject obj, global::Unity.Entities.World world)
            {
                global::Improbable.WorkerRequirementSet.Serialization.Serialize(component.ReadAcl, obj.AddObject(1));

                foreach (var keyValuePair in component.ComponentWriteAcl)
                {
                    var mapObj = obj.AddObject(2);
                    mapObj.AddUint32(1, keyValuePair.Key);
                    global::Improbable.WorkerRequirementSet.Serialization.Serialize(keyValuePair.Value, mapObj.AddObject(2));
                }
            }
Ejemplo n.º 12
0
 public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool,
                                 InterestData _data, global::Improbable.Worker.CInterop.SchemaObject _obj)
 {
     if (_data.componentInterest != null)
     {
         for (var _node = _data.componentInterest.First; _node != null; _node = _node.Next)
         {
             var _pair = _obj.AddObject(1);
             {
                 _pair.AddUint32(1, _node.Value.Key);
             }
             {
                 global::Improbable.ComponentInterest_Internal.Write(_pool, _node.Value.Value, _pair.AddObject(2));
             }
         }
     }
 }
Ejemplo n.º 13
0
 public static void Serialize(TypeC instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         foreach (var value in instance.BList)
         {
             global::Improbable.TestSchema.TypeB.Serialization.Serialize(value, obj.AddObject(2));
         }
     }
     {
         foreach (var keyValuePair in instance.BMap)
         {
             var mapObj = obj.AddObject(4);
             mapObj.AddString(1, keyValuePair.Key);
             global::Improbable.TestSchema.TypeB.Serialization.Serialize(keyValuePair.Value, mapObj.AddObject(2));
         }
     }
 }
Ejemplo n.º 14
0
 public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool,
                                 EntityAclData _data, global::Improbable.Worker.CInterop.SchemaObject _obj)
 {
     {
         global::Improbable.WorkerRequirementSet_Internal.Write(_pool, _data.readAcl, _obj.AddObject(1));
     }
     if (_data.componentWriteAcl != null)
     {
         for (var _node = _data.componentWriteAcl.First; _node != null; _node = _node.Next)
         {
             var _pair = _obj.AddObject(2);
             {
                 _pair.AddUint32(1, _node.Value.Key);
             }
             {
                 global::Improbable.WorkerRequirementSet_Internal.Write(_pool, _node.Value.Value, _pair.AddObject(2));
             }
         }
     }
 }
Ejemplo n.º 15
0
            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(ExhaustiveMapKeyData instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         foreach (var keyValuePair in instance.Field1)
         {
             var mapObj = obj.AddObject(1);
             mapObj.AddBool(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field2)
         {
             var mapObj = obj.AddObject(2);
             mapObj.AddFloat(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field3)
         {
             var mapObj = obj.AddObject(3);
             mapObj.AddBytes(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field4)
         {
             var mapObj = obj.AddObject(4);
             mapObj.AddInt32(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field5)
         {
             var mapObj = obj.AddObject(5);
             mapObj.AddInt64(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field6)
         {
             var mapObj = obj.AddObject(6);
             mapObj.AddDouble(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field7)
         {
             var mapObj = obj.AddObject(7);
             mapObj.AddString(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field8)
         {
             var mapObj = obj.AddObject(8);
             mapObj.AddUint32(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field9)
         {
             var mapObj = obj.AddObject(9);
             mapObj.AddUint64(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field10)
         {
             var mapObj = obj.AddObject(10);
             mapObj.AddSint32(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field11)
         {
             var mapObj = obj.AddObject(11);
             mapObj.AddSint64(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field12)
         {
             var mapObj = obj.AddObject(12);
             mapObj.AddFixed32(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field13)
         {
             var mapObj = obj.AddObject(13);
             mapObj.AddFixed64(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field14)
         {
             var mapObj = obj.AddObject(14);
             mapObj.AddSfixed32(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field15)
         {
             var mapObj = obj.AddObject(15);
             mapObj.AddSfixed64(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field16)
         {
             var mapObj = obj.AddObject(16);
             mapObj.AddEntityId(1, keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field17)
         {
             var mapObj = obj.AddObject(17);
             global::Improbable.TestSchema.SomeType.Serialization.Serialize(keyValuePair.Key, mapObj.AddObject(1));
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
     {
         foreach (var keyValuePair in instance.Field18)
         {
             var mapObj = obj.AddObject(18);
             mapObj.AddEnum(1, (uint)keyValuePair.Key);
             mapObj.AddString(2, keyValuePair.Value);
         }
     }
 }
Ejemplo n.º 17
0
                    public static void Serialize(NestedTypeSameName instance, global::Improbable.Worker.CInterop.SchemaObject obj)
                    {
                        {
                            obj.AddInt32(1, instance.NestedField);
                        }

                        {
                            global::Improbable.TestSchema.NestedTypeSameName.Other.NestedTypeSameName.Other0.NestedTypeSameName.Serialization.Serialize(instance.Other0Field, obj.AddObject(2));
                        }

                        {
                            obj.AddEnum(3, (uint)instance.Other1Field);
                        }
                    }
Ejemplo n.º 18
0
 public static void Serialize(ComponentInterest instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         foreach (var value in instance.Queries)
         {
             global::Improbable.ComponentInterest.Query.Serialization.Serialize(value, obj.AddObject(1));
         }
     }
 }
Ejemplo n.º 19
0
 public static void Serialize(QueryConstraint instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         if (instance.SphereConstraint.HasValue)
         {
             global::Improbable.ComponentInterest.SphereConstraint.Serialization.Serialize(instance.SphereConstraint.Value, obj.AddObject(1));
         }
     }
     {
         if (instance.CylinderConstraint.HasValue)
         {
             global::Improbable.ComponentInterest.CylinderConstraint.Serialization.Serialize(instance.CylinderConstraint.Value, obj.AddObject(2));
         }
     }
     {
         if (instance.BoxConstraint.HasValue)
         {
             global::Improbable.ComponentInterest.BoxConstraint.Serialization.Serialize(instance.BoxConstraint.Value, obj.AddObject(3));
         }
     }
     {
         if (instance.RelativeSphereConstraint.HasValue)
         {
             global::Improbable.ComponentInterest.RelativeSphereConstraint.Serialization.Serialize(instance.RelativeSphereConstraint.Value, obj.AddObject(4));
         }
     }
     {
         if (instance.RelativeCylinderConstraint.HasValue)
         {
             global::Improbable.ComponentInterest.RelativeCylinderConstraint.Serialization.Serialize(instance.RelativeCylinderConstraint.Value, obj.AddObject(5));
         }
     }
     {
         if (instance.RelativeBoxConstraint.HasValue)
         {
             global::Improbable.ComponentInterest.RelativeBoxConstraint.Serialization.Serialize(instance.RelativeBoxConstraint.Value, obj.AddObject(6));
         }
     }
     {
         if (instance.EntityIdConstraint.HasValue)
         {
             obj.AddInt64(7, instance.EntityIdConstraint.Value);
         }
     }
     {
         if (instance.ComponentConstraint.HasValue)
         {
             obj.AddUint32(8, instance.ComponentConstraint.Value);
         }
     }
     {
         foreach (var value in instance.AndConstraint)
         {
             global::Improbable.ComponentInterest.QueryConstraint.Serialization.Serialize(value, obj.AddObject(9));
         }
     }
     {
         foreach (var value in instance.OrConstraint)
         {
             global::Improbable.ComponentInterest.QueryConstraint.Serialization.Serialize(value, obj.AddObject(10));
         }
     }
 }
Ejemplo n.º 20
0
 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);
     }
 }
Ejemplo n.º 21
0
 public static void Serialize(WorkerRequirementSet instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         foreach (var value in instance.AttributeSet)
         {
             global::Improbable.WorkerAttributeSet.Serialization.Serialize(value, obj.AddObject(1));
         }
     }
 }
Ejemplo n.º 22
0
 public static void Serialize(RelativeBoxConstraint instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         global::Improbable.EdgeLength.Serialization.Serialize(instance.EdgeLength, obj.AddObject(1));
     }
 }
Ejemplo n.º 23
0
 public static void Serialize(BoxConstraint instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         global::Improbable.Coordinates.Serialization.Serialize(instance.Center, obj.AddObject(1));
     }
     {
         global::Improbable.EdgeLength.Serialization.Serialize(instance.EdgeLength, obj.AddObject(2));
     }
 }
Ejemplo n.º 24
0
 public static void Serialize(Query instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         global::Improbable.ComponentInterest.QueryConstraint.Serialization.Serialize(instance.Constraint, obj.AddObject(1));
     }
     {
         if (instance.FullSnapshotResult.HasValue)
         {
             obj.AddBool(2, instance.FullSnapshotResult.Value);
         }
     }
     {
         foreach (var value in instance.ResultComponentId)
         {
             obj.AddUint32(3, value);
         }
     }
     {
         if (instance.Frequency.HasValue)
         {
             obj.AddFloat(4, instance.Frequency.Value);
         }
     }
 }
 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);
         }
     }
 }
Ejemplo n.º 26
0
 public static void Serialize(NestedTypeName instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         global::Improbable.Gdk.Tests.TypeName.Other.NestedTypeName.Other0.Serialization.Serialize(instance.OtherZero, obj.AddObject(1));
     }
     {
         obj.AddEnum(2, (uint)instance.EnumField);
     }
 }
Ejemplo n.º 27
0
 public static void Serialize(Other instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         global::Improbable.Gdk.Tests.TypeName.Other.NestedTypeName.Serialization.Serialize(instance.SameName, obj.AddObject(1));
     }
 }
Ejemplo n.º 28
0
 public static unsafe void Write(global::Improbable.Worker.Internal.GcHandlePool _pool,
                                 WorkerData _data, global::Improbable.Worker.CInterop.SchemaObject _obj)
 {
     {
         _obj.AddString(1, _data.workerId);
     }
     {
         _obj.AddString(2, _data.workerType);
     }
     {
         global::Improbable.Restricted.Connection_Internal.Write(_pool, _data.connection, _obj.AddObject(3));
     }
 }
Ejemplo n.º 29
0
            public static void SerializeSnapshot(global::Improbable.TestSchema.RecursiveComponent.Snapshot snapshot, global::Improbable.Worker.CInterop.SchemaObject obj)
            {
                global::Improbable.TestSchema.TypeA.Serialization.Serialize(snapshot.A, obj.AddObject(1));

                global::Improbable.TestSchema.TypeB.Serialization.Serialize(snapshot.B, obj.AddObject(2));

                global::Improbable.TestSchema.TypeC.Serialization.Serialize(snapshot.C, obj.AddObject(3));
            }
 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);
     }
 }