/** * Decode the introduce data the receiver got and prepare it for the execution. * * @param reader the receiver that got the data from the server that needs to be decoded * @throws IOException thrown in case there was not enough data received to decode the full * message */ @Override public void decode(@Nonnull final NetCommReader reader) throws IOException { charId = new CharacterId(reader); text = reader.readString(); }
@Override public void decode(@Nonnull NetCommReader reader) throws IOException { informType = reader.readUByte(); informText = reader.readString(); }
/** * Decode the talking data the receiver got and prepare it for the execution. * * @param reader the receiver that got the data from the server that needs to be decoded * @throws IOException thrown in case there was not enough data received to decode the full * message */ @Override public void decode(final NetCommReader reader) throws IOException { loc = decodeLocation(reader); text = reader.readString(); }