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; }
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); }