public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::MultiSpawnPlayer value, global::MessagePack.MessagePackSerializerOptions options)
 {
     global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
     writer.WriteArrayHeader(4);
     writer.Write(value.T);
     writer.Write(value.C);
     writer.Write(value.t);
     formatterResolver.GetFormatterWithVerify <string>().Serialize(ref writer, value.P, options);
 }
示例#2
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::DFrame.WorkloadInfo value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value == null)
            {
                writer.WriteNil();
                return;
            }

            global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
            writer.WriteArrayHeader(2);
            formatterResolver.GetFormatterWithVerify <string>().Serialize(ref writer, value.Name, options);
            formatterResolver.GetFormatterWithVerify <global::DFrame.WorkloadParameterInfo[]>().Serialize(ref writer, value.Arguments, options);
        }
示例#3
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::DFrame.WorkloadParameterInfo value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value == null)
            {
                writer.WriteNil();
                return;
            }

            global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
            writer.WriteArrayHeader(7);
            formatterResolver.GetFormatterWithVerify <global::DFrame.AllowParameterType>().Serialize(ref writer, value.ParameterType, options);
            writer.Write(value.IsNullable);
            writer.Write(value.IsArray);
            formatterResolver.GetFormatterWithVerify <object>().Serialize(ref writer, value.DefaultValue, options);
            formatterResolver.GetFormatterWithVerify <string>().Serialize(ref writer, value.ParameterName, options);
            formatterResolver.GetFormatterWithVerify <string[]>().Serialize(ref writer, value.EnumNames, options);
            formatterResolver.GetFormatterWithVerify <string>().Serialize(ref writer, value.EnumTypeName, options);
        }
示例#4
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::DFrame.BatchedExecuteResult value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value == null)
            {
                writer.WriteNil();
                return;
            }

            global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
            writer.WriteArrayHeader(2);
            formatterResolver.GetFormatterWithVerify <global::DFrame.WorkloadId>().Serialize(ref writer, value.WorkloadId, options);
            formatterResolver.GetFormatterWithVerify <global::DFrame.BatchList>().Serialize(ref writer, value.BatchedElapsed, options);
        }
示例#5
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::DFrame.ExecuteResult value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value == null)
            {
                writer.WriteNil();
                return;
            }

            global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
            writer.WriteArrayHeader(5);
            formatterResolver.GetFormatterWithVerify <global::DFrame.WorkloadId>().Serialize(ref writer, value.WorkloadId, options);
            formatterResolver.GetFormatterWithVerify <global::System.TimeSpan>().Serialize(ref writer, value.Elapsed, options);
            writer.Write(value.ExecutionNo);
            writer.Write(value.HasError);
            formatterResolver.GetFormatterWithVerify <string>().Serialize(ref writer, value.ErrorMessage, options);
        }
示例#6
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::TestData2.PropNameCheck2 value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value is null)
            {
                writer.WriteNil();
                return;
            }

            var formatterResolver = options.Resolver;

            writer.WriteMapHeader(2);
            writer.WriteRaw(GetSpan_MyProperty1());
            formatterResolver.GetFormatterWithVerify <string>().Serialize(ref writer, value.MyProperty1, options);
            writer.WriteRaw(GetSpan_MyProperty2());
            formatterResolver.GetFormatterWithVerify <string>().Serialize(ref writer, value.MyProperty2, options);
        }
示例#7
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::TestData2.Record value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value is null)
            {
                writer.WriteNil();
                return;
            }

            var formatterResolver = options.Resolver;

            writer.WriteMapHeader(1);
            writer.WriteRaw(GetSpan_SomeProperty());
            formatterResolver.GetFormatterWithVerify <string>().Serialize(ref writer, value.SomeProperty, options);
        }
 public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::SerializableTransform value, global::MessagePack.MessagePackSerializerOptions options)
 {
     global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
     writer.WriteArrayHeader(2);
     formatterResolver.GetFormatterWithVerify <global::UnityEngine.Vector3>().Serialize(ref writer, value.p, options);
     formatterResolver.GetFormatterWithVerify <global::UnityEngine.Quaternion>().Serialize(ref writer, value.r, options);
 }
 public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::TeamSystem.ChangeTeamRequest value, global::MessagePack.MessagePackSerializerOptions options)
 {
     global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
     writer.WriteArrayHeader(2);
     writer.Write(value.C);
     formatterResolver.GetFormatterWithVerify <global::TeamSystem.Team>().Serialize(ref writer, value.R, options);
 }
 public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::MultiSyncRequest value, global::MessagePack.MessagePackSerializerOptions options)
 {
     global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
     writer.WriteArrayHeader(2);
     writer.Write(value.ID);
     formatterResolver.GetFormatterWithVerify <global::System.Collections.Generic.List <global::SerializableTransform> >().Serialize(ref writer, value.tfs, options);
 }
        public global::MultiSyncRequest Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (reader.TryReadNil())
            {
                throw new global::System.InvalidOperationException("typecode is null, struct not supported");
            }

            options.Security.DepthStep(ref reader);
            global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
            var length     = reader.ReadArrayHeader();
            var ____result = new global::MultiSyncRequest();

            for (int i = 0; i < length; i++)
            {
                switch (i)
                {
                case 0:
                    ____result.ID = reader.ReadInt32();
                    break;

                case 1:
                    ____result.tfs = formatterResolver.GetFormatterWithVerify <global::System.Collections.Generic.List <global::SerializableTransform> >().Deserialize(ref reader, options);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }

            reader.Depth--;
            return(____result);
        }
        public global::MultiSyncPlayer Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (reader.TryReadNil())
            {
                throw new global::System.InvalidOperationException("typecode is null, struct not supported");
            }

            options.Security.DepthStep(ref reader);
            var length = reader.ReadArrayHeader();
            var __C__  = default(int);
            var __S__  = default(byte[]);

            for (int i = 0; i < length; i++)
            {
                switch (i)
                {
                case 0:
                    __C__ = reader.ReadInt32();
                    break;

                case 1:
                    __S__ = reader.ReadBytes()?.ToArray();
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }

            var ____result = new global::MultiSyncPlayer(__C__, __S__);

            reader.Depth--;
            return(____result);
        }
 public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::MultiSyncPlayer value, global::MessagePack.MessagePackSerializerOptions options)
 {
     writer.WriteArrayHeader(2);
     writer.Write(value.C);
     writer.Write(value.S);
 }
 public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::MultiSpawnRequest value, global::MessagePack.MessagePackSerializerOptions options)
 {
     writer.WriteArrayHeader(1);
     writer.Write(value.I);
 }
示例#15
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::TestData2.Nest2.IdType value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value is null)
            {
                writer.WriteNil();
                return;
            }

            writer.WriteMapHeader(0);
        }
 public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::TeamSystem.TeamAllocationData value, global::MessagePack.MessagePackSerializerOptions options)
 {
     global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
     writer.WriteArrayHeader(2);
     formatterResolver.GetFormatterWithVerify <int[]>().Serialize(ref writer, value.c, options);
     formatterResolver.GetFormatterWithVerify <global::TeamSystem.Team[]>().Serialize(ref writer, value.t, options);
 }
示例#17
0
        public global::TestData2.Nest2.IdType Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (reader.TryReadNil())
            {
                return(null);
            }

            reader.Skip();
            var ____result = new global::TestData2.Nest2.IdType();

            return(____result);
        }
        public global::TeamSystem.TeamAllocationData Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (reader.TryReadNil())
            {
                throw new global::System.InvalidOperationException("typecode is null, struct not supported");
            }

            options.Security.DepthStep(ref reader);
            global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
            var length     = reader.ReadArrayHeader();
            var ____result = new global::TeamSystem.TeamAllocationData();

            for (int i = 0; i < length; i++)
            {
                switch (i)
                {
                case 0:
                    ____result.c = formatterResolver.GetFormatterWithVerify <int[]>().Deserialize(ref reader, options);
                    break;

                case 1:
                    ____result.t = formatterResolver.GetFormatterWithVerify <global::TeamSystem.Team[]>().Deserialize(ref reader, options);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }

            reader.Depth--;
            return(____result);
        }
示例#19
0
        public global::TestData2.PropNameCheck2 Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (reader.TryReadNil())
            {
                return(null);
            }

            options.Security.DepthStep(ref reader);
            var formatterResolver = options.Resolver;
            var length            = reader.ReadMapHeader();
            var ____result        = new global::TestData2.PropNameCheck2();

            for (int i = 0; i < length; i++)
            {
                var stringKey = global::MessagePack.Internal.CodeGenHelpers.ReadStringSpan(ref reader);
                switch (stringKey.Length)
                {
                default:
FAIL:
                    reader.Skip();
                    continue;

                case 11:
                    switch (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey))
                    {
                    default: goto FAIL;

                    case 8243118316933118285UL:
                        switch (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey))
                        {
                        default: goto FAIL;

                        case 3242356UL:
                            ____result.MyProperty1 = formatterResolver.GetFormatterWithVerify <string>().Deserialize(ref reader, options);
                            continue;

                        case 3307892UL:
                            ____result.MyProperty2 = formatterResolver.GetFormatterWithVerify <string>().Deserialize(ref reader, options);
                            continue;
                        }
                    }
                }
            }

            reader.Depth--;
            return(____result);
        }
示例#20
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::TestData2.B value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value is null)
            {
                writer.WriteNil();
                return;
            }

            var formatterResolver = options.Resolver;

            writer.WriteMapHeader(3);
            writer.WriteRaw(GetSpan_ass());
            formatterResolver.GetFormatterWithVerify <global::System.Collections.Generic.List <global::TestData2.A> >().Serialize(ref writer, value.ass, options);
            writer.WriteRaw(GetSpan_c());
            formatterResolver.GetFormatterWithVerify <global::TestData2.C>().Serialize(ref writer, value.c, options);
            writer.WriteRaw(GetSpan_a());
            writer.Write(value.a);
        }
示例#21
0
        public global::TestData2.Record Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (reader.TryReadNil())
            {
                return(null);
            }

            options.Security.DepthStep(ref reader);
            var formatterResolver = options.Resolver;
            var length            = reader.ReadMapHeader();
            var __SomeProperty__  = default(string);

            for (int i = 0; i < length; i++)
            {
                var stringKey = global::MessagePack.Internal.CodeGenHelpers.ReadStringSpan(ref reader);
                switch (stringKey.Length)
                {
                default:
FAIL:
                    reader.Skip();
                    continue;

                case 12:
                    if (!global::System.MemoryExtensions.SequenceEqual(stringKey, GetSpan_SomeProperty().Slice(1)))
                    {
                        goto FAIL;
                    }

                    __SomeProperty__ = formatterResolver.GetFormatterWithVerify <string>().Deserialize(ref reader, options);
                    continue;
                }
            }

            var ____result = new global::TestData2.Record(__SomeProperty__);

            reader.Depth--;
            return(____result);
        }
示例#22
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::TestData2.C value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value is null)
            {
                writer.WriteNil();
                return;
            }

            var formatterResolver = options.Resolver;

            writer.WriteMapHeader(2);
            writer.WriteRaw(GetSpan_b());
            formatterResolver.GetFormatterWithVerify <global::TestData2.B>().Serialize(ref writer, value.b, options);
            writer.WriteRaw(GetSpan_a());
            writer.Write(value.a);
        }
示例#23
0
        public global::DFrame.BatchedExecuteResult Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (reader.TryReadNil())
            {
                return(null);
            }

            options.Security.DepthStep(ref reader);
            global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
            var length             = reader.ReadArrayHeader();
            var __WorkloadId__     = default(global::DFrame.WorkloadId);
            var __BatchedElapsed__ = default(global::DFrame.BatchList);

            for (int i = 0; i < length; i++)
            {
                switch (i)
                {
                case 0:
                    __WorkloadId__ = formatterResolver.GetFormatterWithVerify <global::DFrame.WorkloadId>().Deserialize(ref reader, options);
                    break;

                case 1:
                    __BatchedElapsed__ = formatterResolver.GetFormatterWithVerify <global::DFrame.BatchList>().Deserialize(ref reader, options);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }

            var ____result = new global::DFrame.BatchedExecuteResult(__WorkloadId__, __BatchedElapsed__);

            reader.Depth--;
            return(____result);
        }
示例#24
0
        public global::TestData2.C Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (reader.TryReadNil())
            {
                return(null);
            }

            options.Security.DepthStep(ref reader);
            var formatterResolver = options.Resolver;
            var length            = reader.ReadMapHeader();
            var ____result        = new global::TestData2.C();

            for (int i = 0; i < length; i++)
            {
                var stringKey = global::MessagePack.Internal.CodeGenHelpers.ReadStringSpan(ref reader);
                switch (stringKey.Length)
                {
                default:
FAIL:
                    reader.Skip();
                    continue;

                case 1:
                    switch (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey))
                    {
                    default: goto FAIL;

                    case 98UL:
                        ____result.b = formatterResolver.GetFormatterWithVerify <global::TestData2.B>().Deserialize(ref reader, options);
                        continue;

                    case 97UL:
                        ____result.a = reader.ReadInt32();
                        continue;
                    }
                }
            }

            reader.Depth--;
            return(____result);
        }
示例#25
0
        public global::DFrame.ExecuteResult Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (reader.TryReadNil())
            {
                return(null);
            }

            options.Security.DepthStep(ref reader);
            global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
            var length           = reader.ReadArrayHeader();
            var __WorkloadId__   = default(global::DFrame.WorkloadId);
            var __Elapsed__      = default(global::System.TimeSpan);
            var __ExecutionNo__  = default(long);
            var __HasError__     = default(bool);
            var __ErrorMessage__ = default(string);

            for (int i = 0; i < length; i++)
            {
                switch (i)
                {
                case 0:
                    __WorkloadId__ = formatterResolver.GetFormatterWithVerify <global::DFrame.WorkloadId>().Deserialize(ref reader, options);
                    break;

                case 1:
                    __Elapsed__ = formatterResolver.GetFormatterWithVerify <global::System.TimeSpan>().Deserialize(ref reader, options);
                    break;

                case 2:
                    __ExecutionNo__ = reader.ReadInt64();
                    break;

                case 3:
                    __HasError__ = reader.ReadBoolean();
                    break;

                case 4:
                    __ErrorMessage__ = formatterResolver.GetFormatterWithVerify <string>().Deserialize(ref reader, options);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }

            var ____result = new global::DFrame.ExecuteResult(__WorkloadId__, __Elapsed__, __ExecutionNo__, __HasError__, __ErrorMessage__);

            reader.Depth--;
            return(____result);
        }
示例#26
0
        public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::TestData2.Nest2 value, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (value is null)
            {
                writer.WriteNil();
                return;
            }

            var formatterResolver = options.Resolver;

            writer.WriteMapHeader(2);
            writer.WriteRaw(GetSpan_EnumId());
            formatterResolver.GetFormatterWithVerify <global::TestData2.Nest2.Id>().Serialize(ref writer, value.EnumId, options);
            writer.WriteRaw(GetSpan_ClassId());
            formatterResolver.GetFormatterWithVerify <global::TestData2.Nest2.IdType>().Serialize(ref writer, value.ClassId, options);
        }
示例#27
0
        public global::DFrame.WorkloadInfo Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (reader.TryReadNil())
            {
                return(null);
            }

            options.Security.DepthStep(ref reader);
            global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
            var length        = reader.ReadArrayHeader();
            var __Name__      = default(string);
            var __Arguments__ = default(global::DFrame.WorkloadParameterInfo[]);

            for (int i = 0; i < length; i++)
            {
                switch (i)
                {
                case 0:
                    __Name__ = formatterResolver.GetFormatterWithVerify <string>().Deserialize(ref reader, options);
                    break;

                case 1:
                    __Arguments__ = formatterResolver.GetFormatterWithVerify <global::DFrame.WorkloadParameterInfo[]>().Deserialize(ref reader, options);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }

            var ____result = new global::DFrame.WorkloadInfo(__Name__, __Arguments__);

            reader.Depth--;
            return(____result);
        }
示例#28
0
        public global::TestData2.Nest2 Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (reader.TryReadNil())
            {
                return(null);
            }

            options.Security.DepthStep(ref reader);
            var formatterResolver = options.Resolver;
            var length            = reader.ReadMapHeader();
            var ____result        = new global::TestData2.Nest2();

            for (int i = 0; i < length; i++)
            {
                var stringKey = global::MessagePack.Internal.CodeGenHelpers.ReadStringSpan(ref reader);
                switch (stringKey.Length)
                {
                default:
FAIL:
                    reader.Skip();
                    continue;

                case 6:
                    if (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey) != 110266531802693UL)
                    {
                        goto FAIL;
                    }

                    ____result.EnumId = formatterResolver.GetFormatterWithVerify <global::TestData2.Nest2.Id>().Deserialize(ref reader, options);
                    continue;

                case 7:
                    if (global::MessagePack.Internal.AutomataKeyGen.GetKey(ref stringKey) != 28228257876896835UL)
                    {
                        goto FAIL;
                    }

                    ____result.ClassId = formatterResolver.GetFormatterWithVerify <global::TestData2.Nest2.IdType>().Deserialize(ref reader, options);
                    continue;
                }
            }

            reader.Depth--;
            return(____result);
        }
示例#29
0
        public global::DFrame.WorkloadParameterInfo Deserialize(ref global::MessagePack.MessagePackReader reader, global::MessagePack.MessagePackSerializerOptions options)
        {
            if (reader.TryReadNil())
            {
                return(null);
            }

            options.Security.DepthStep(ref reader);
            global::MessagePack.IFormatterResolver formatterResolver = options.Resolver;
            var length            = reader.ReadArrayHeader();
            var __ParameterType__ = default(global::DFrame.AllowParameterType);
            var __IsNullable__    = default(bool);
            var __IsArray__       = default(bool);
            var __DefaultValue__  = default(object);
            var __ParameterName__ = default(string);
            var __EnumNames__     = default(string[]);
            var __EnumTypeName__  = default(string);

            for (int i = 0; i < length; i++)
            {
                switch (i)
                {
                case 0:
                    __ParameterType__ = formatterResolver.GetFormatterWithVerify <global::DFrame.AllowParameterType>().Deserialize(ref reader, options);
                    break;

                case 1:
                    __IsNullable__ = reader.ReadBoolean();
                    break;

                case 2:
                    __IsArray__ = reader.ReadBoolean();
                    break;

                case 3:
                    __DefaultValue__ = formatterResolver.GetFormatterWithVerify <object>().Deserialize(ref reader, options);
                    break;

                case 4:
                    __ParameterName__ = formatterResolver.GetFormatterWithVerify <string>().Deserialize(ref reader, options);
                    break;

                case 5:
                    __EnumNames__ = formatterResolver.GetFormatterWithVerify <string[]>().Deserialize(ref reader, options);
                    break;

                case 6:
                    __EnumTypeName__ = formatterResolver.GetFormatterWithVerify <string>().Deserialize(ref reader, options);
                    break;

                default:
                    reader.Skip();
                    break;
                }
            }

            var ____result = new global::DFrame.WorkloadParameterInfo(__ParameterType__, __IsNullable__, __IsArray__, __DefaultValue__, __ParameterName__, __EnumNames__, __EnumTypeName__);

            reader.Depth--;
            return(____result);
        }
 public void Serialize(ref global::MessagePack.MessagePackWriter writer, global::MultiNewConnection value, global::MessagePack.MessagePackSerializerOptions options)
 {
     writer.WriteArrayHeader(1);
     writer.Write(value.tN);
 }