Add support for game version 3.6 (#2110)

* Update to game version `3.6.0` (pt. 1)

not complete!

* Update to game version `3.6.0` (pt. 2)

not complete!

* Update compiled definitions
This commit is contained in:
Magix
2023-04-30 19:08:54 -07:00
committed by GitHub
Unverified
parent 60e8106b01
commit c4f1208f45
1323 changed files with 434863 additions and 141164 deletions
@@ -25,17 +25,17 @@ public final class PrivateChatReqOuterClass {
int getTargetUid();
/**
* <code>string text = 14;</code>
* <code>string text = 10;</code>
* @return Whether the text field is set.
*/
boolean hasText();
/**
* <code>string text = 14;</code>
* <code>string text = 10;</code>
* @return The text.
*/
java.lang.String getText();
/**
* <code>string text = 14;</code>
* <code>string text = 10;</code>
* @return The bytes for text.
*/
com.google.protobuf.ByteString
@@ -56,8 +56,8 @@ public final class PrivateChatReqOuterClass {
}
/**
* <pre>
* Name: OJLJEEAEION
* CmdId: 5017
* CmdId: 5040
* Name: GJDPKMJKHAF
* </pre>
*
* Protobuf type {@code PrivateChatReq}
@@ -109,17 +109,17 @@ public final class PrivateChatReqOuterClass {
content_ = input.readUInt32();
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
contentCase_ = 10;
content_ = s;
break;
}
case 104: {
targetUid_ = input.readUInt32();
break;
}
case 114: {
java.lang.String s = input.readStringRequireUtf8();
contentCase_ = 14;
content_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -157,7 +157,7 @@ public final class PrivateChatReqOuterClass {
public enum ContentCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
TEXT(14),
TEXT(10),
ICON(8),
CONTENT_NOT_SET(0);
private final int value;
@@ -176,7 +176,7 @@ public final class PrivateChatReqOuterClass {
public static ContentCase forNumber(int value) {
switch (value) {
case 14: return TEXT;
case 10: return TEXT;
case 8: return ICON;
case 0: return CONTENT_NOT_SET;
default: return null;
@@ -204,21 +204,21 @@ public final class PrivateChatReqOuterClass {
return targetUid_;
}
public static final int TEXT_FIELD_NUMBER = 14;
public static final int TEXT_FIELD_NUMBER = 10;
/**
* <code>string text = 14;</code>
* <code>string text = 10;</code>
* @return Whether the text field is set.
*/
public boolean hasText() {
return contentCase_ == 14;
return contentCase_ == 10;
}
/**
* <code>string text = 14;</code>
* <code>string text = 10;</code>
* @return The text.
*/
public java.lang.String getText() {
java.lang.Object ref = "";
if (contentCase_ == 14) {
if (contentCase_ == 10) {
ref = content_;
}
if (ref instanceof java.lang.String) {
@@ -227,27 +227,27 @@ public final class PrivateChatReqOuterClass {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (contentCase_ == 14) {
if (contentCase_ == 10) {
content_ = s;
}
return s;
}
}
/**
* <code>string text = 14;</code>
* <code>string text = 10;</code>
* @return The bytes for text.
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = "";
if (contentCase_ == 14) {
if (contentCase_ == 10) {
ref = content_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (contentCase_ == 14) {
if (contentCase_ == 10) {
content_ = b;
}
return b;
@@ -295,12 +295,12 @@ public final class PrivateChatReqOuterClass {
output.writeUInt32(
8, (int)((java.lang.Integer) content_));
}
if (contentCase_ == 10) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, content_);
}
if (targetUid_ != 0) {
output.writeUInt32(13, targetUid_);
}
if (contentCase_ == 14) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, content_);
}
unknownFields.writeTo(output);
}
@@ -315,13 +315,13 @@ public final class PrivateChatReqOuterClass {
.computeUInt32Size(
8, (int)((java.lang.Integer) content_));
}
if (contentCase_ == 10) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, content_);
}
if (targetUid_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(13, targetUid_);
}
if (contentCase_ == 14) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, content_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -341,7 +341,7 @@ public final class PrivateChatReqOuterClass {
!= other.getTargetUid()) return false;
if (!getContentCase().equals(other.getContentCase())) return false;
switch (contentCase_) {
case 14:
case 10:
if (!getText()
.equals(other.getText())) return false;
break;
@@ -366,7 +366,7 @@ public final class PrivateChatReqOuterClass {
hash = (37 * hash) + TARGET_UID_FIELD_NUMBER;
hash = (53 * hash) + getTargetUid();
switch (contentCase_) {
case 14:
case 10:
hash = (37 * hash) + TEXT_FIELD_NUMBER;
hash = (53 * hash) + getText().hashCode();
break;
@@ -474,8 +474,8 @@ public final class PrivateChatReqOuterClass {
}
/**
* <pre>
* Name: OJLJEEAEION
* CmdId: 5017
* CmdId: 5040
* Name: GJDPKMJKHAF
* </pre>
*
* Protobuf type {@code PrivateChatReq}
@@ -546,7 +546,7 @@ public final class PrivateChatReqOuterClass {
public emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq buildPartial() {
emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq result = new emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq(this);
result.targetUid_ = targetUid_;
if (contentCase_ == 14) {
if (contentCase_ == 10) {
result.content_ = content_;
}
if (contentCase_ == 8) {
@@ -606,7 +606,7 @@ public final class PrivateChatReqOuterClass {
}
switch (other.getContentCase()) {
case TEXT: {
contentCase_ = 14;
contentCase_ = 10;
content_ = other.content_;
onChanged();
break;
@@ -695,28 +695,28 @@ public final class PrivateChatReqOuterClass {
}
/**
* <code>string text = 14;</code>
* <code>string text = 10;</code>
* @return Whether the text field is set.
*/
@java.lang.Override
public boolean hasText() {
return contentCase_ == 14;
return contentCase_ == 10;
}
/**
* <code>string text = 14;</code>
* <code>string text = 10;</code>
* @return The text.
*/
@java.lang.Override
public java.lang.String getText() {
java.lang.Object ref = "";
if (contentCase_ == 14) {
if (contentCase_ == 10) {
ref = content_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (contentCase_ == 14) {
if (contentCase_ == 10) {
content_ = s;
}
return s;
@@ -725,21 +725,21 @@ public final class PrivateChatReqOuterClass {
}
}
/**
* <code>string text = 14;</code>
* <code>string text = 10;</code>
* @return The bytes for text.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = "";
if (contentCase_ == 14) {
if (contentCase_ == 10) {
ref = content_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (contentCase_ == 14) {
if (contentCase_ == 10) {
content_ = b;
}
return b;
@@ -748,7 +748,7 @@ public final class PrivateChatReqOuterClass {
}
}
/**
* <code>string text = 14;</code>
* <code>string text = 10;</code>
* @param value The text to set.
* @return This builder for chaining.
*/
@@ -757,17 +757,17 @@ public final class PrivateChatReqOuterClass {
if (value == null) {
throw new NullPointerException();
}
contentCase_ = 14;
contentCase_ = 10;
content_ = value;
onChanged();
return this;
}
/**
* <code>string text = 14;</code>
* <code>string text = 10;</code>
* @return This builder for chaining.
*/
public Builder clearText() {
if (contentCase_ == 14) {
if (contentCase_ == 10) {
contentCase_ = 0;
content_ = null;
onChanged();
@@ -775,7 +775,7 @@ public final class PrivateChatReqOuterClass {
return this;
}
/**
* <code>string text = 14;</code>
* <code>string text = 10;</code>
* @param value The bytes for text to set.
* @return This builder for chaining.
*/
@@ -785,7 +785,7 @@ public final class PrivateChatReqOuterClass {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
contentCase_ = 14;
contentCase_ = 10;
content_ = value;
onChanged();
return this;
@@ -899,7 +899,7 @@ public final class PrivateChatReqOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\024PrivateChatReq.proto\"O\n\016PrivateChatReq" +
"\022\022\n\ntarget_uid\030\r \001(\r\022\016\n\004text\030\016 \001(\tH\000\022\016\n\004" +
"\022\022\n\ntarget_uid\030\r \001(\r\022\016\n\004text\030\n \001(\tH\000\022\016\n\004" +
"icon\030\010 \001(\rH\000B\t\n\007contentB\033\n\031emu.grasscutt" +
"er.net.protob\006proto3"
};