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