Search in sources :

Example 1 with RemoveFriendMessage

use of org.apollo.game.message.impl.RemoveFriendMessage in project apollo by apollo-rsps.

the class RemoveFriendMessageDecoder method decode.

@Override
public RemoveFriendMessage decode(GamePacket packet) {
    GamePacketReader reader = new GamePacketReader(packet);
    String username = NameUtil.decodeBase37(reader.getSigned(DataType.LONG));
    return new RemoveFriendMessage(username);
}
Also used : GamePacketReader(org.apollo.net.codec.game.GamePacketReader) RemoveFriendMessage(org.apollo.game.message.impl.RemoveFriendMessage)

Example 2 with RemoveFriendMessage

use of org.apollo.game.message.impl.RemoveFriendMessage in project apollo by apollo-rsps.

the class RemoveFriendMessageDecoder method decode.

@Override
public RemoveFriendMessage decode(GamePacket packet) {
    GamePacketReader reader = new GamePacketReader(packet);
    String username = NameUtil.decodeBase37(reader.getSigned(DataType.LONG));
    return new RemoveFriendMessage(username);
}
Also used : GamePacketReader(org.apollo.net.codec.game.GamePacketReader) RemoveFriendMessage(org.apollo.game.message.impl.RemoveFriendMessage)

Aggregations

RemoveFriendMessage (org.apollo.game.message.impl.RemoveFriendMessage)2 GamePacketReader (org.apollo.net.codec.game.GamePacketReader)2