Пример #1
0
 /**
  * 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();
 }
Пример #2
0
 @Override
 public void decode(@Nonnull NetCommReader reader) throws IOException {
   informType = reader.readUByte();
   informText = reader.readString();
 }
Пример #3
0
 /**
  * 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();
 }