use of org.apollo.game.message.impl.PrivacyOptionMessage in project apollo by apollo-rsps.
the class PrivacyOptionMessageDecoder method decode.
@Override
public PrivacyOptionMessage decode(GamePacket packet) {
GamePacketReader reader = new GamePacketReader(packet);
int publicChatState = (int) reader.getUnsigned(DataType.BYTE);
int privateChatState = (int) reader.getUnsigned(DataType.BYTE);
int tradeChatState = (int) reader.getUnsigned(DataType.BYTE);
return new PrivacyOptionMessage(publicChatState, privateChatState, tradeChatState);
}
use of org.apollo.game.message.impl.PrivacyOptionMessage in project apollo by apollo-rsps.
the class PrivacyOptionMessageDecoder method decode.
@Override
public PrivacyOptionMessage decode(GamePacket packet) {
GamePacketReader reader = new GamePacketReader(packet);
int publicChatState = (int) reader.getUnsigned(DataType.BYTE);
int privateChatState = (int) reader.getUnsigned(DataType.BYTE);
int tradeChatState = (int) reader.getUnsigned(DataType.BYTE);
return new PrivacyOptionMessage(publicChatState, privateChatState, tradeChatState);
}
Aggregations