示例#1
0
                    public static NestedTypeName Deserialize(global::Improbable.Worker.Core.SchemaObject obj)
                    {
                        var instance = new NestedTypeName();

                        instance.OtherZero = global::Generated.Improbable.Gdk.Tests.TypeName.Other.NestedTypeName.Other0.Serialization.Deserialize(obj.GetObject(1));
                        instance.EnumField = (global::Generated.Improbable.Gdk.Tests.TypeName.Other.NestedTypeName.NestedEnum)obj.GetEnum(2);
                        return(instance);
                    }
示例#2
0
                public static Other Deserialize(global::Improbable.Worker.Core.SchemaObject obj)
                {
                    var instance = new Other();

                    instance.SameName = global::Generated.Improbable.Gdk.Tests.TypeName.Other.NestedTypeName.Serialization.Deserialize(obj.GetObject(1));
                    return(instance);
                }
            public static Improbable.Gdk.Tests.NestedComponent.Snapshot DeserializeSnapshot(global::Improbable.Worker.Core.SchemaObject obj, global::Unity.Entities.World world)
            {
                var component = new Improbable.Gdk.Tests.NestedComponent.Snapshot();

                {
                    component.NestedType = global::Improbable.Gdk.Tests.TypeName.Serialization.Deserialize(obj.GetObject(1));
                }

                return(component);
            }
示例#4
0
            public static TypeName Deserialize(global::Improbable.Worker.Core.SchemaObject obj)
            {
                var instance = new TypeName();

                {
                    instance.OtherType = global::Generated.Improbable.Gdk.Tests.TypeName.Other.Serialization.Deserialize(obj.GetObject(1));
                }
                return(instance);
            }
示例#5
0
            public static Improbable.Gdk.Tests.ExhaustiveSingular.Snapshot DeserializeSnapshot(global::Improbable.Worker.Core.SchemaObject obj, global::Unity.Entities.World world)
            {
                var component = new Improbable.Gdk.Tests.ExhaustiveSingular.Snapshot();

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

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

                {
                    component.Field3 = obj.GetBytes(3);
                }

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

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

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

                {
                    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);
            }