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
@@ -19,30 +19,30 @@ public final class PlayerChatReqOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>.ChatInfo chat_info = 5;</code>
* <code>uint32 channel_id = 3;</code>
* @return The channelId.
*/
int getChannelId();
/**
* <code>.ChatInfo chat_info = 7;</code>
* @return Whether the chatInfo field is set.
*/
boolean hasChatInfo();
/**
* <code>.ChatInfo chat_info = 5;</code>
* <code>.ChatInfo chat_info = 7;</code>
* @return The chatInfo.
*/
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo();
/**
* <code>.ChatInfo chat_info = 5;</code>
* <code>.ChatInfo chat_info = 7;</code>
*/
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder();
/**
* <code>uint32 channel_id = 15;</code>
* @return The channelId.
*/
int getChannelId();
}
/**
* <pre>
* Name: NFIKNDINCMM
* CmdId: 3125
* CmdId: 3065
* Name: EBEELCKAIEG
* </pre>
*
* Protobuf type {@code PlayerChatReq}
@@ -89,7 +89,12 @@ public final class PlayerChatReqOuterClass {
case 0:
done = true;
break;
case 42: {
case 24: {
channelId_ = input.readUInt32();
break;
}
case 58: {
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder subBuilder = null;
if (chatInfo_ != null) {
subBuilder = chatInfo_.toBuilder();
@@ -102,11 +107,6 @@ public final class PlayerChatReqOuterClass {
break;
}
case 120: {
channelId_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -139,10 +139,21 @@ public final class PlayerChatReqOuterClass {
emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq.class, emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq.Builder.class);
}
public static final int CHAT_INFO_FIELD_NUMBER = 5;
public static final int CHANNEL_ID_FIELD_NUMBER = 3;
private int channelId_;
/**
* <code>uint32 channel_id = 3;</code>
* @return The channelId.
*/
@java.lang.Override
public int getChannelId() {
return channelId_;
}
public static final int CHAT_INFO_FIELD_NUMBER = 7;
private emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo chatInfo_;
/**
* <code>.ChatInfo chat_info = 5;</code>
* <code>.ChatInfo chat_info = 7;</code>
* @return Whether the chatInfo field is set.
*/
@java.lang.Override
@@ -150,7 +161,7 @@ public final class PlayerChatReqOuterClass {
return chatInfo_ != null;
}
/**
* <code>.ChatInfo chat_info = 5;</code>
* <code>.ChatInfo chat_info = 7;</code>
* @return The chatInfo.
*/
@java.lang.Override
@@ -158,24 +169,13 @@ public final class PlayerChatReqOuterClass {
return chatInfo_ == null ? emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance() : chatInfo_;
}
/**
* <code>.ChatInfo chat_info = 5;</code>
* <code>.ChatInfo chat_info = 7;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder() {
return getChatInfo();
}
public static final int CHANNEL_ID_FIELD_NUMBER = 15;
private int channelId_;
/**
* <code>uint32 channel_id = 15;</code>
* @return The channelId.
*/
@java.lang.Override
public int getChannelId() {
return channelId_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -190,11 +190,11 @@ public final class PlayerChatReqOuterClass {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (chatInfo_ != null) {
output.writeMessage(5, getChatInfo());
}
if (channelId_ != 0) {
output.writeUInt32(15, channelId_);
output.writeUInt32(3, channelId_);
}
if (chatInfo_ != null) {
output.writeMessage(7, getChatInfo());
}
unknownFields.writeTo(output);
}
@@ -205,13 +205,13 @@ public final class PlayerChatReqOuterClass {
if (size != -1) return size;
size = 0;
if (chatInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getChatInfo());
}
if (channelId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(15, channelId_);
.computeUInt32Size(3, channelId_);
}
if (chatInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getChatInfo());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -228,13 +228,13 @@ public final class PlayerChatReqOuterClass {
}
emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq other = (emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq) obj;
if (getChannelId()
!= other.getChannelId()) return false;
if (hasChatInfo() != other.hasChatInfo()) return false;
if (hasChatInfo()) {
if (!getChatInfo()
.equals(other.getChatInfo())) return false;
}
if (getChannelId()
!= other.getChannelId()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -246,12 +246,12 @@ public final class PlayerChatReqOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER;
hash = (53 * hash) + getChannelId();
if (hasChatInfo()) {
hash = (37 * hash) + CHAT_INFO_FIELD_NUMBER;
hash = (53 * hash) + getChatInfo().hashCode();
}
hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER;
hash = (53 * hash) + getChannelId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -349,8 +349,8 @@ public final class PlayerChatReqOuterClass {
}
/**
* <pre>
* Name: NFIKNDINCMM
* CmdId: 3125
* CmdId: 3065
* Name: EBEELCKAIEG
* </pre>
*
* Protobuf type {@code PlayerChatReq}
@@ -390,14 +390,14 @@ public final class PlayerChatReqOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
channelId_ = 0;
if (chatInfoBuilder_ == null) {
chatInfo_ = null;
} else {
chatInfo_ = null;
chatInfoBuilder_ = null;
}
channelId_ = 0;
return this;
}
@@ -424,12 +424,12 @@ public final class PlayerChatReqOuterClass {
@java.lang.Override
public emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq buildPartial() {
emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq result = new emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq(this);
result.channelId_ = channelId_;
if (chatInfoBuilder_ == null) {
result.chatInfo_ = chatInfo_;
} else {
result.chatInfo_ = chatInfoBuilder_.build();
}
result.channelId_ = channelId_;
onBuilt();
return result;
}
@@ -478,12 +478,12 @@ public final class PlayerChatReqOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq other) {
if (other == emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq.getDefaultInstance()) return this;
if (other.hasChatInfo()) {
mergeChatInfo(other.getChatInfo());
}
if (other.getChannelId() != 0) {
setChannelId(other.getChannelId());
}
if (other.hasChatInfo()) {
mergeChatInfo(other.getChatInfo());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -513,18 +513,49 @@ public final class PlayerChatReqOuterClass {
return this;
}
private int channelId_ ;
/**
* <code>uint32 channel_id = 3;</code>
* @return The channelId.
*/
@java.lang.Override
public int getChannelId() {
return channelId_;
}
/**
* <code>uint32 channel_id = 3;</code>
* @param value The channelId to set.
* @return This builder for chaining.
*/
public Builder setChannelId(int value) {
channelId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 channel_id = 3;</code>
* @return This builder for chaining.
*/
public Builder clearChannelId() {
channelId_ = 0;
onChanged();
return this;
}
private emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo chatInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder> chatInfoBuilder_;
/**
* <code>.ChatInfo chat_info = 5;</code>
* <code>.ChatInfo chat_info = 7;</code>
* @return Whether the chatInfo field is set.
*/
public boolean hasChatInfo() {
return chatInfoBuilder_ != null || chatInfo_ != null;
}
/**
* <code>.ChatInfo chat_info = 5;</code>
* <code>.ChatInfo chat_info = 7;</code>
* @return The chatInfo.
*/
public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo() {
@@ -535,7 +566,7 @@ public final class PlayerChatReqOuterClass {
}
}
/**
* <code>.ChatInfo chat_info = 5;</code>
* <code>.ChatInfo chat_info = 7;</code>
*/
public Builder setChatInfo(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) {
if (chatInfoBuilder_ == null) {
@@ -551,7 +582,7 @@ public final class PlayerChatReqOuterClass {
return this;
}
/**
* <code>.ChatInfo chat_info = 5;</code>
* <code>.ChatInfo chat_info = 7;</code>
*/
public Builder setChatInfo(
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder builderForValue) {
@@ -565,7 +596,7 @@ public final class PlayerChatReqOuterClass {
return this;
}
/**
* <code>.ChatInfo chat_info = 5;</code>
* <code>.ChatInfo chat_info = 7;</code>
*/
public Builder mergeChatInfo(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo value) {
if (chatInfoBuilder_ == null) {
@@ -583,7 +614,7 @@ public final class PlayerChatReqOuterClass {
return this;
}
/**
* <code>.ChatInfo chat_info = 5;</code>
* <code>.ChatInfo chat_info = 7;</code>
*/
public Builder clearChatInfo() {
if (chatInfoBuilder_ == null) {
@@ -597,7 +628,7 @@ public final class PlayerChatReqOuterClass {
return this;
}
/**
* <code>.ChatInfo chat_info = 5;</code>
* <code>.ChatInfo chat_info = 7;</code>
*/
public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder getChatInfoBuilder() {
@@ -605,7 +636,7 @@ public final class PlayerChatReqOuterClass {
return getChatInfoFieldBuilder().getBuilder();
}
/**
* <code>.ChatInfo chat_info = 5;</code>
* <code>.ChatInfo chat_info = 7;</code>
*/
public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder() {
if (chatInfoBuilder_ != null) {
@@ -616,7 +647,7 @@ public final class PlayerChatReqOuterClass {
}
}
/**
* <code>.ChatInfo chat_info = 5;</code>
* <code>.ChatInfo chat_info = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder>
@@ -631,37 +662,6 @@ public final class PlayerChatReqOuterClass {
}
return chatInfoBuilder_;
}
private int channelId_ ;
/**
* <code>uint32 channel_id = 15;</code>
* @return The channelId.
*/
@java.lang.Override
public int getChannelId() {
return channelId_;
}
/**
* <code>uint32 channel_id = 15;</code>
* @param value The channelId to set.
* @return This builder for chaining.
*/
public Builder setChannelId(int value) {
channelId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 channel_id = 15;</code>
* @return This builder for chaining.
*/
public Builder clearChannelId() {
channelId_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -730,8 +730,8 @@ public final class PlayerChatReqOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\023PlayerChatReq.proto\032\016ChatInfo.proto\"A\n" +
"\rPlayerChatReq\022\034\n\tchat_info\030\005 \001(\0132\t.Chat" +
"Info\022\022\n\nchannel_id\030\017 \001(\rB\033\n\031emu.grasscut" +
"\rPlayerChatReq\022\022\n\nchannel_id\030\003 \001(\r\022\034\n\tch" +
"at_info\030\007 \001(\0132\t.ChatInfoB\033\n\031emu.grasscut" +
"ter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -744,7 +744,7 @@ public final class PlayerChatReqOuterClass {
internal_static_PlayerChatReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_PlayerChatReq_descriptor,
new java.lang.String[] { "ChatInfo", "ChannelId", });
new java.lang.String[] { "ChannelId", "ChatInfo", });
emu.grasscutter.net.proto.ChatInfoOuterClass.getDescriptor();
}