Esempio n. 1
0
        public void Deserialize(MemoryEndianBinaryReader reader)
        {
            FieldMark fm = new FieldMark(1);

            reader.Read(fm.getData());
            if (fm.ReadMark())
            {
                name = reader.ReadUTF();
            }
            if (fm.ReadMark())
            {
                id = reader.ReadByte();
            }
            if (fm.ReadMark())
            {
                int __0__ = SerializationUtil.ReadVariableLength(reader);
                itemInsts = new ItemInst[__0__];
                for (int i = 0; i < itemInsts.Length; i++)
                {
                    itemInsts[i] = new ItemInst();
                    itemInsts[i].Deserialize(reader);
                }
            }
            if (fm.ReadMark())
            {
                position = new Point3d();
                position.Deserialize(reader);
            }
        }
Esempio n. 2
0
        public void Deserialize(MemoryEndianBinaryReader reader)
        {
            FieldMark fm = new FieldMark(1);

            reader.Read(fm.getData());
            if (fm.ReadMark())
            {
                int __1__ = SerializationUtil.ReadVariableLength(reader);
                byteArray = new sbyte[__1__];
                for (int i = 0; i < __1__; i++)
                {
                    byteArray[i] = reader.ReadByte();
                }
            }
            if (fm.ReadMark())
            {
                int __2__ = SerializationUtil.ReadVariableLength(reader);
                shortArray = new Int16[__2__];
                for (int i = 0; i < __2__; i++)
                {
                    shortArray[i] = reader.ReadInt16();
                }
            }
            if (fm.ReadMark())
            {
                int __3__ = SerializationUtil.ReadVariableLength(reader);
                intArray = new Int32[__3__];
                for (int i = 0; i < __3__; i++)
                {
                    intArray[i] = reader.ReadInt32();
                }
            }
            if (fm.ReadMark())
            {
                int __4__ = SerializationUtil.ReadVariableLength(reader);
                longArray = new Int64[__4__];
                for (int i = 0; i < __4__; i++)
                {
                    longArray[i] = reader.ReadInt64();
                }
            }
            if (fm.ReadMark())
            {
                int __5__ = SerializationUtil.ReadVariableLength(reader);
                floatArray = new single[__5__];
                for (int i = 0; i < __5__; i++)
                {
                    floatArray[i] = reader.ReadSingle();
                }
            }
            if (fm.ReadMark())
            {
                int __6__ = SerializationUtil.ReadVariableLength(reader);
                doubleArray = new double[__6__];
                for (int i = 0; i < __6__; i++)
                {
                    doubleArray[i] = reader.ReadDouble();
                }
            }
        }
Esempio n. 3
0
        public void Deserialize(MemoryEndianBinaryReader reader)
        {
            FieldMark fm = new FieldMark(1);

            reader.Read(fm.getData());
            if (fm.ReadMark())
            {
                id = reader.ReadByte();
            }
            if (fm.ReadMark())
            {
                name = reader.ReadUTF();
            }
        }
Esempio n. 4
0
        public void Deserialize(MemoryEndianBinaryReader reader)
        {
            FieldMark fm = new FieldMark(1);

            reader.Read(fm.GetData(), 0, fm.GetData().Length);
            if (fm.ReadMark())
            {
                x = reader.ReadSingle();
            }
            if (fm.ReadMark())
            {
                z = reader.ReadSingle();
            }
        }
Esempio n. 5
0
        public void Deserialize(MemoryEndianBinaryReader reader)
        {
            FieldMark fm = new FieldMark(1);

            reader.Read(fm.GetData(), 0, fm.GetData().Length);
            if (fm.ReadMark())
            {
                int __0__ = SerializationUtil.ReadVariableLength(reader);
                items = new SyncItem[__0__];
                for (int i = 0; i < items.Length; i++)
                {
                    items[i] = new SyncItem();
                    items[i].Deserialize(reader);
                }
            }
        }
Esempio n. 6
0
        public void Deserialize(MemoryEndianBinaryReader reader)
        {
            FieldMark fm = new FieldMark(1);

            reader.Read(fm.getData());
            if (fm.ReadMark())
            {
                seq = reader.ReadByte();
            }
            if (fm.ReadMark())
            {
                itemId = reader.ReadByte();
            }
            if (fm.ReadMark())
            {
                count = reader.ReadByte();
            }
        }
Esempio n. 7
0
        public void Deserialize(MemoryEndianBinaryReader reader)
        {
            FieldMark fm = new FieldMark(1);

            reader.Read(fm.GetData(), 0, fm.GetData().Length);
            if (fm.ReadMark())
            {
                entityId = reader.ReadUInt32();
            }
            if (fm.ReadMark())
            {
                timestamp = reader.ReadUInt32();
            }
            if (fm.ReadMark())
            {
                idleTime = reader.ReadUInt16();
            }
            if (fm.ReadMark())
            {
                int __1__ = SerializationUtil.ReadVariableLength(reader);
                fields = new UInt32[__1__];
                for (int i = 0; i < __1__; i++)
                {
                    fields[i] = reader.ReadUInt32();
                }
            }
            if (fm.ReadMark())
            {
                int __2__ = SerializationUtil.ReadVariableLength(reader);
                values = new Single[__2__];
                for (int i = 0; i < __2__; i++)
                {
                    values[i] = reader.ReadSingle();
                }
            }
        }
Esempio n. 8
0
        public void Deserialize(MemoryEndianBinaryReader reader)
        {
            FieldMark fm = new FieldMark(0);

            reader.Read(fm.GetData(), 0, fm.GetData().Length);
        }