use of org.apollo.game.message.impl.ArrowKeyMessage in project apollo by apollo-rsps.
the class ArrowKeyMessageDecoder method decode.
@Override
public ArrowKeyMessage decode(GamePacket packet) {
GamePacketReader reader = new GamePacketReader(packet);
int roll = (int) reader.getUnsigned(DataType.SHORT, DataOrder.LITTLE);
int yaw = (int) reader.getUnsigned(DataType.SHORT, DataOrder.LITTLE);
return new ArrowKeyMessage(roll, yaw);
}
use of org.apollo.game.message.impl.ArrowKeyMessage in project apollo by apollo-rsps.
the class ArrowKeyMessageDecoder method decode.
@Override
public ArrowKeyMessage decode(GamePacket packet) {
GamePacketReader reader = new GamePacketReader(packet);
int roll = (int) reader.getUnsigned(DataType.SHORT, DataOrder.LITTLE);
int yaw = (int) reader.getUnsigned(DataType.SHORT, DataOrder.LITTLE);
return new ArrowKeyMessage(roll, yaw);
}
Aggregations