Search in sources :

Example 1 with EnteredAmountMessage

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

the class EnteredAmountMessageDecoder method decode.

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

Example 2 with EnteredAmountMessage

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

the class EnteredAmountMessageDecoder method decode.

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

Aggregations

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