Search in sources :

Example 1 with ButtonMessage

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

the class ButtonMessageDecoder method decode.

@Override
public ButtonMessage decode(GamePacket packet) {
    GamePacketReader reader = new GamePacketReader(packet);
    int interfaceId = (int) reader.getUnsigned(DataType.SHORT);
    return new ButtonMessage(interfaceId);
}
Also used : ButtonMessage(org.apollo.game.message.impl.ButtonMessage) GamePacketReader(org.apollo.net.codec.game.GamePacketReader)

Example 2 with ButtonMessage

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

the class ButtonMessageDecoder method decode.

@Override
public ButtonMessage decode(GamePacket packet) {
    GamePacketReader reader = new GamePacketReader(packet);
    int interfaceId = (int) reader.getUnsigned(DataType.SHORT);
    return new ButtonMessage(interfaceId);
}
Also used : ButtonMessage(org.apollo.game.message.impl.ButtonMessage) GamePacketReader(org.apollo.net.codec.game.GamePacketReader)

Aggregations

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