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