|
|
@ -15,6 +15,8 @@ import engine.net.ByteBufferReader; |
|
|
|
import engine.net.ByteBufferWriter; |
|
|
|
import engine.net.ByteBufferWriter; |
|
|
|
import engine.net.client.Protocol; |
|
|
|
import engine.net.client.Protocol; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.stream.IntStream; |
|
|
|
|
|
|
|
|
|
|
|
import static engine.net.client.handlers.PetitionReceivedMsgHandler.PETITION_NEW; |
|
|
|
import static engine.net.client.handlers.PetitionReceivedMsgHandler.PETITION_NEW; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -32,7 +34,7 @@ public class PetitionReceivedMsg extends ClientNetMsg { |
|
|
|
public int subType; |
|
|
|
public int subType; |
|
|
|
public String compType; |
|
|
|
public String compType; |
|
|
|
public String language; |
|
|
|
public String language; |
|
|
|
public int unknown07; |
|
|
|
public int stringCount; |
|
|
|
public String message; |
|
|
|
public String message; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -79,8 +81,9 @@ public class PetitionReceivedMsg extends ClientNetMsg { |
|
|
|
this.subType = reader.getInt(); |
|
|
|
this.subType = reader.getInt(); |
|
|
|
this.compType = reader.getString(); |
|
|
|
this.compType = reader.getString(); |
|
|
|
this.language = reader.getString(); |
|
|
|
this.language = reader.getString(); |
|
|
|
this.unknown07 = reader.getInt(); |
|
|
|
this.stringCount = reader.getInt(); |
|
|
|
this.message = reader.getString(); |
|
|
|
IntStream.range(0, stringCount).forEach($ -> this.message += reader.getString()); |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.unknown01 = reader.getInt(); |
|
|
|
this.unknown01 = reader.getInt(); |
|
|
|
this.unknown02 = reader.getInt(); |
|
|
|
this.unknown02 = reader.getInt(); |
|
|
|