예제 #1
0
        protected static void moveTo(MemoryEndianBinaryReader reader, PlayerToBattleProxy proxy)
        {
            Single x;
            Single z;

            x = reader.ReadSingle();
            z = reader.ReadSingle();
            proxy.moveTo(x, z);
        }
예제 #2
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();
            }
        }
예제 #3
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();
                }
            }
        }
예제 #4
0
파일: SyncItem.cs 프로젝트: brucelevis/moba
        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();
                }
            }
        }