Search in sources :

Example 1 with FocusUpdateMessage

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

the class FocusUpdateMessageDecoder method decode.

@Override
public FocusUpdateMessage decode(GamePacket packet) {
    GamePacketReader reader = new GamePacketReader(packet);
    boolean focused = (byte) reader.getUnsigned(DataType.BYTE) == 1;
    return new FocusUpdateMessage(focused);
}
Also used : GamePacketReader(org.apollo.net.codec.game.GamePacketReader) FocusUpdateMessage(org.apollo.game.message.impl.FocusUpdateMessage)

Aggregations

FocusUpdateMessage (org.apollo.game.message.impl.FocusUpdateMessage)1 GamePacketReader (org.apollo.net.codec.game.GamePacketReader)1