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();
                }
            }
        }
        public static void Dispatch(MemoryEndianBinaryReader reader, PlayerToBattleProxy proxy)
        {
            int fid = reader.ReadByte();

            switch (fid)
            {
            case 0:
            {
                playerPing(reader, proxy);
            }
            break;

            case 1:
            {
                playerPong(reader, proxy);
            }
            break;

            case 2:
            {
                play(reader, proxy);
            }
            break;

            case 3:
            {
                moveTo(reader, proxy);
            }
            break;
            }
        }
Esempio n. 4
0
        public static void Dispatch(MemoryEndianBinaryReader reader, MatchToBattleProxy proxy)
        {
            int fid = reader.ReadByte();

            switch (fid)
            {
            }
        }
Esempio n. 5
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. 6
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. 7
0
        public static void Dispatch(MemoryEndianBinaryReader reader, Server2ClientProxy proxy)
        {
            int fid = reader.ReadByte();

            switch (fid)
            {
            case 0:
            {
                onHit(reader, proxy);
            }
            break;

            case 1:
            {
                onSync(reader, proxy);
            }
            break;
            }
        }
Esempio n. 8
0
        public static void Dispatch(MemoryEndianBinaryReader reader, Client2ServerProxy proxy)
        {
            int fid = reader.ReadByte();

            switch (fid)
            {
            case 0:
            {
                fire(reader, proxy);
            }
            break;

            case 1:
            {
                useItem(reader, proxy);
            }
            break;
            }
        }
Esempio n. 9
0
        public static void Dispatch(MemoryEndianBinaryReader reader, BattleToPlayerProxy proxy)
        {
            int fid = reader.ReadByte();

            switch (fid)
            {
            case 0:
            {
                battlePing(reader, proxy);
            }
            break;

            case 1:
            {
                battlePong(reader, proxy);
            }
            break;

            case 2:
            {
                onJoinArena(reader, proxy);
            }
            break;

            case 3:
            {
                sync(reader, proxy);
            }
            break;

            case 4:
            {
                playerSpawned(reader, proxy);
            }
            break;
            }
        }