public static ItemMovePacket Parse(NetworkMessage message)
        {
            ItemMovePacket packet = new ItemMovePacket();

            packet.FromLocation = message.GetLocation();
            packet.SpriteId = message.GetUInt16();
            packet.FromStackPosition = message.GetByte();
            packet.ToLocation = message.GetLocation();
            packet.Count = message.GetByte();

            return packet;
        }
Exemple #2
0
        public static ItemMovePacket Parse(NetworkMessage message)
        {
            ItemMovePacket packet = new ItemMovePacket();

            packet.FromLocation      = message.GetLocation();
            packet.SpriteId          = message.GetUInt16();
            packet.FromStackPosition = message.GetByte();
            packet.ToLocation        = message.GetLocation();
            packet.Count             = message.GetByte();

            return(packet);
        }