test[protocol]: revert test protocol

This commit is contained in:
godotg committed 2022-10-27 10:52:03 +08:00
1 parent 730cc8a990
commit 9d17bd23de
2 files changed
+14

No files matched your search

@@ -24,12 +24,19 @@ import java.util.Objects;
*/ */
public class ObjectA implements IPacket { public class ObjectA implements IPacket {
public static final transient short PROTOCOL_ID = 102;
private int a; private int a;
private Map<Integer, String> m; private Map<Integer, String> m;
private ObjectB objectB; private ObjectB objectB;
@Override
public short protocolId() {
return PROTOCOL_ID;
}
public int getA() { public int getA() {
return a; return a;
} }
@@ -23,8 +23,15 @@ import java.util.Objects;
*/ */
public class ObjectB implements IPacket { public class ObjectB implements IPacket {
public static final transient short PROTOCOL_ID = 103;
private boolean flag; private boolean flag;
@Override
public short protocolId() {
return PROTOCOL_ID;
}
public boolean isFlag() { public boolean isFlag() {
return flag; return flag;
} }