mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-23 17:59:50 +08:00
Upgrade to REL3.7 (#2164)
* Remove hardcoded quest data * Remove deprecated fields * Try to fix packet * Apply fix for token exchange * Upgrade to REL3.7 * Add obfuscated protocol definitions * Add missing enum (other protos too maybe) * Re-add field setters and add note on removal
This commit is contained in:
@@ -19,21 +19,21 @@ public final class HostPlayerNotifyOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint32 host_peer_id = 3;</code>
|
||||
* <code>uint32 host_peer_id = 8;</code>
|
||||
* @return The hostPeerId.
|
||||
*/
|
||||
int getHostPeerId();
|
||||
|
||||
/**
|
||||
* <code>uint32 host_uid = 11;</code>
|
||||
* <code>uint32 host_uid = 3;</code>
|
||||
* @return The hostUid.
|
||||
*/
|
||||
int getHostUid();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 389
|
||||
* Name: NPBLKELHECA
|
||||
* CmdId: 302
|
||||
* Obf: DGNMEHADJDI
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code HostPlayerNotify}
|
||||
@@ -82,12 +82,12 @@ public final class HostPlayerNotifyOuterClass {
|
||||
break;
|
||||
case 24: {
|
||||
|
||||
hostPeerId_ = input.readUInt32();
|
||||
hostUid_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 88: {
|
||||
case 64: {
|
||||
|
||||
hostUid_ = input.readUInt32();
|
||||
hostPeerId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
@@ -122,10 +122,10 @@ public final class HostPlayerNotifyOuterClass {
|
||||
emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify.class, emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify.Builder.class);
|
||||
}
|
||||
|
||||
public static final int HOST_PEER_ID_FIELD_NUMBER = 3;
|
||||
public static final int HOST_PEER_ID_FIELD_NUMBER = 8;
|
||||
private int hostPeerId_;
|
||||
/**
|
||||
* <code>uint32 host_peer_id = 3;</code>
|
||||
* <code>uint32 host_peer_id = 8;</code>
|
||||
* @return The hostPeerId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -133,10 +133,10 @@ public final class HostPlayerNotifyOuterClass {
|
||||
return hostPeerId_;
|
||||
}
|
||||
|
||||
public static final int HOST_UID_FIELD_NUMBER = 11;
|
||||
public static final int HOST_UID_FIELD_NUMBER = 3;
|
||||
private int hostUid_;
|
||||
/**
|
||||
* <code>uint32 host_uid = 11;</code>
|
||||
* <code>uint32 host_uid = 3;</code>
|
||||
* @return The hostUid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -158,11 +158,11 @@ public final class HostPlayerNotifyOuterClass {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (hostPeerId_ != 0) {
|
||||
output.writeUInt32(3, hostPeerId_);
|
||||
}
|
||||
if (hostUid_ != 0) {
|
||||
output.writeUInt32(11, hostUid_);
|
||||
output.writeUInt32(3, hostUid_);
|
||||
}
|
||||
if (hostPeerId_ != 0) {
|
||||
output.writeUInt32(8, hostPeerId_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -173,13 +173,13 @@ public final class HostPlayerNotifyOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (hostPeerId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(3, hostPeerId_);
|
||||
}
|
||||
if (hostUid_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(11, hostUid_);
|
||||
.computeUInt32Size(3, hostUid_);
|
||||
}
|
||||
if (hostPeerId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(8, hostPeerId_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -312,8 +312,8 @@ public final class HostPlayerNotifyOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 389
|
||||
* Name: NPBLKELHECA
|
||||
* CmdId: 302
|
||||
* Obf: DGNMEHADJDI
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code HostPlayerNotify}
|
||||
@@ -470,7 +470,7 @@ public final class HostPlayerNotifyOuterClass {
|
||||
|
||||
private int hostPeerId_ ;
|
||||
/**
|
||||
* <code>uint32 host_peer_id = 3;</code>
|
||||
* <code>uint32 host_peer_id = 8;</code>
|
||||
* @return The hostPeerId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -478,7 +478,7 @@ public final class HostPlayerNotifyOuterClass {
|
||||
return hostPeerId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 host_peer_id = 3;</code>
|
||||
* <code>uint32 host_peer_id = 8;</code>
|
||||
* @param value The hostPeerId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -489,7 +489,7 @@ public final class HostPlayerNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 host_peer_id = 3;</code>
|
||||
* <code>uint32 host_peer_id = 8;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearHostPeerId() {
|
||||
@@ -501,7 +501,7 @@ public final class HostPlayerNotifyOuterClass {
|
||||
|
||||
private int hostUid_ ;
|
||||
/**
|
||||
* <code>uint32 host_uid = 11;</code>
|
||||
* <code>uint32 host_uid = 3;</code>
|
||||
* @return The hostUid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -509,7 +509,7 @@ public final class HostPlayerNotifyOuterClass {
|
||||
return hostUid_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 host_uid = 11;</code>
|
||||
* <code>uint32 host_uid = 3;</code>
|
||||
* @param value The hostUid to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -520,7 +520,7 @@ public final class HostPlayerNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 host_uid = 11;</code>
|
||||
* <code>uint32 host_uid = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearHostUid() {
|
||||
@@ -597,7 +597,7 @@ public final class HostPlayerNotifyOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\026HostPlayerNotify.proto\":\n\020HostPlayerNo" +
|
||||
"tify\022\024\n\014host_peer_id\030\003 \001(\r\022\020\n\010host_uid\030\013" +
|
||||
"tify\022\024\n\014host_peer_id\030\010 \001(\r\022\020\n\010host_uid\030\003" +
|
||||
" \001(\rB\033\n\031emu.grasscutter.net.protob\006proto" +
|
||||
"3"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user