Ejemplo n.º 1
0
            public static Improbable.Gdk.Tests.ExhaustiveSingular.Component Deserialize(global::Improbable.Worker.Core.SchemaObject obj, global::Unity.Entities.World world)
            {
                var component = new Improbable.Gdk.Tests.ExhaustiveSingular.Component();

                {
                    component.Field1 = obj.GetBool(1);
                }
                {
                    component.Field2 = obj.GetFloat(2);
                }
                component.field3Handle = Improbable.Gdk.Tests.ExhaustiveSingular.ReferenceTypeProviders.Field3Provider.Allocate(world);
                {
                    component.Field3 = obj.GetBytes(3);
                }
                {
                    component.Field4 = obj.GetInt32(4);
                }
                {
                    component.Field5 = obj.GetInt64(5);
                }
                {
                    component.Field6 = obj.GetDouble(6);
                }
                component.field7Handle = Improbable.Gdk.Tests.ExhaustiveSingular.ReferenceTypeProviders.Field7Provider.Allocate(world);
                {
                    component.Field7 = obj.GetString(7);
                }
                {
                    component.Field8 = obj.GetUint32(8);
                }
                {
                    component.Field9 = obj.GetUint64(9);
                }
                {
                    component.Field10 = obj.GetSint32(10);
                }
                {
                    component.Field11 = obj.GetSint64(11);
                }
                {
                    component.Field12 = obj.GetFixed32(12);
                }
                {
                    component.Field13 = obj.GetFixed64(13);
                }
                {
                    component.Field14 = obj.GetSfixed32(14);
                }
                {
                    component.Field15 = obj.GetSfixed64(15);
                }
                {
                    component.Field16 = obj.GetEntityId(16);
                }
                {
                    component.Field17 = global::Improbable.Gdk.Tests.SomeType.Serialization.Deserialize(obj.GetObject(17));
                }
                return(component);
            }
Ejemplo n.º 2
0
            public static Improbable.Gdk.Tests.ExhaustiveBlittableSingular.Snapshot DeserializeSnapshot(global::Improbable.Worker.Core.SchemaObject obj, global::Unity.Entities.World world)
            {
                var component = new Improbable.Gdk.Tests.ExhaustiveBlittableSingular.Snapshot();

                {
                    component.Field1 = obj.GetBool(1);
                }

                {
                    component.Field2 = obj.GetFloat(2);
                }

                {
                    component.Field4 = obj.GetInt32(4);
                }

                {
                    component.Field5 = obj.GetInt64(5);
                }

                {
                    component.Field6 = obj.GetDouble(6);
                }

                {
                    component.Field8 = obj.GetUint32(8);
                }

                {
                    component.Field9 = obj.GetUint64(9);
                }

                {
                    component.Field10 = obj.GetSint32(10);
                }

                {
                    component.Field11 = obj.GetSint64(11);
                }

                {
                    component.Field12 = obj.GetFixed32(12);
                }

                {
                    component.Field13 = obj.GetFixed64(13);
                }

                {
                    component.Field14 = obj.GetSfixed32(14);
                }

                {
                    component.Field15 = obj.GetSfixed64(15);
                }

                {
                    component.Field16 = obj.GetEntityId(16);
                }

                {
                    component.Field17 = global::Improbable.Gdk.Tests.SomeType.Serialization.Deserialize(obj.GetObject(17));
                }

                return(component);
            }