mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-08 07:13:33 +08:00
Update gc to 3.3 (#1981)
* replace the deprecated api * update proto * delete music game * fixed codes * fix costume switch * fix mail bug * Bump version number. * Re-add max boss chest number Co-authored-by: GanyusLeftHorn <1244229+GanyusLeftHorn@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
8b83dbf58c
commit
92fbaa8670
+178
-172
@@ -19,7 +19,24 @@ public final class TryEnterHomeRspOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint32 target_uid = 15;</code>
|
||||
* <code>repeated uint32 param_list = 11;</code>
|
||||
* @return A list containing the paramList.
|
||||
*/
|
||||
java.util.List<java.lang.Integer> getParamListList();
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 11;</code>
|
||||
* @return The count of paramList.
|
||||
*/
|
||||
int getParamListCount();
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 11;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The paramList at the given index.
|
||||
*/
|
||||
int getParamList(int index);
|
||||
|
||||
/**
|
||||
* <code>uint32 target_uid = 2;</code>
|
||||
* @return The targetUid.
|
||||
*/
|
||||
int getTargetUid();
|
||||
@@ -29,30 +46,16 @@ public final class TryEnterHomeRspOuterClass {
|
||||
* @return The retcode.
|
||||
*/
|
||||
int getRetcode();
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 10;</code>
|
||||
* @return A list containing the paramList.
|
||||
*/
|
||||
java.util.List<java.lang.Integer> getParamListList();
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 10;</code>
|
||||
* @return The count of paramList.
|
||||
*/
|
||||
int getParamListCount();
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 10;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The paramList at the given index.
|
||||
*/
|
||||
int getParamList(int index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 4653
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* enum CmdId {
|
||||
* option allow_alias = true;
|
||||
* NONE = 0;
|
||||
* CMD_ID = 4796;
|
||||
* ENET_CHANNEL_ID = 0;
|
||||
* ENET_IS_RELIABLE = 1;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code TryEnterHomeRsp}
|
||||
@@ -101,12 +104,17 @@ public final class TryEnterHomeRspOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 16: {
|
||||
|
||||
targetUid_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
|
||||
retcode_ = input.readInt32();
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
case 88: {
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
paramList_ = newIntList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
@@ -114,7 +122,7 @@ public final class TryEnterHomeRspOuterClass {
|
||||
paramList_.addInt(input.readUInt32());
|
||||
break;
|
||||
}
|
||||
case 82: {
|
||||
case 90: {
|
||||
int length = input.readRawVarint32();
|
||||
int limit = input.pushLimit(length);
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
|
||||
@@ -127,11 +135,6 @@ public final class TryEnterHomeRspOuterClass {
|
||||
input.popLimit(limit);
|
||||
break;
|
||||
}
|
||||
case 120: {
|
||||
|
||||
targetUid_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -167,10 +170,38 @@ public final class TryEnterHomeRspOuterClass {
|
||||
emu.grasscutter.net.proto.TryEnterHomeRspOuterClass.TryEnterHomeRsp.class, emu.grasscutter.net.proto.TryEnterHomeRspOuterClass.TryEnterHomeRsp.Builder.class);
|
||||
}
|
||||
|
||||
public static final int TARGET_UID_FIELD_NUMBER = 15;
|
||||
public static final int PARAM_LIST_FIELD_NUMBER = 11;
|
||||
private com.google.protobuf.Internal.IntList paramList_;
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 11;</code>
|
||||
* @return A list containing the paramList.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.List<java.lang.Integer>
|
||||
getParamListList() {
|
||||
return paramList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 11;</code>
|
||||
* @return The count of paramList.
|
||||
*/
|
||||
public int getParamListCount() {
|
||||
return paramList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 11;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The paramList at the given index.
|
||||
*/
|
||||
public int getParamList(int index) {
|
||||
return paramList_.getInt(index);
|
||||
}
|
||||
private int paramListMemoizedSerializedSize = -1;
|
||||
|
||||
public static final int TARGET_UID_FIELD_NUMBER = 2;
|
||||
private int targetUid_;
|
||||
/**
|
||||
* <code>uint32 target_uid = 15;</code>
|
||||
* <code>uint32 target_uid = 2;</code>
|
||||
* @return The targetUid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -189,34 +220,6 @@ public final class TryEnterHomeRspOuterClass {
|
||||
return retcode_;
|
||||
}
|
||||
|
||||
public static final int PARAM_LIST_FIELD_NUMBER = 10;
|
||||
private com.google.protobuf.Internal.IntList paramList_;
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 10;</code>
|
||||
* @return A list containing the paramList.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.List<java.lang.Integer>
|
||||
getParamListList() {
|
||||
return paramList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 10;</code>
|
||||
* @return The count of paramList.
|
||||
*/
|
||||
public int getParamListCount() {
|
||||
return paramList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 10;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The paramList at the given index.
|
||||
*/
|
||||
public int getParamList(int index) {
|
||||
return paramList_.getInt(index);
|
||||
}
|
||||
private int paramListMemoizedSerializedSize = -1;
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -232,19 +235,19 @@ public final class TryEnterHomeRspOuterClass {
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
getSerializedSize();
|
||||
if (targetUid_ != 0) {
|
||||
output.writeUInt32(2, targetUid_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
output.writeInt32(4, retcode_);
|
||||
}
|
||||
if (getParamListList().size() > 0) {
|
||||
output.writeUInt32NoTag(82);
|
||||
output.writeUInt32NoTag(90);
|
||||
output.writeUInt32NoTag(paramListMemoizedSerializedSize);
|
||||
}
|
||||
for (int i = 0; i < paramList_.size(); i++) {
|
||||
output.writeUInt32NoTag(paramList_.getInt(i));
|
||||
}
|
||||
if (targetUid_ != 0) {
|
||||
output.writeUInt32(15, targetUid_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@@ -254,6 +257,10 @@ public final class TryEnterHomeRspOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (targetUid_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(2, targetUid_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(4, retcode_);
|
||||
@@ -272,10 +279,6 @@ public final class TryEnterHomeRspOuterClass {
|
||||
}
|
||||
paramListMemoizedSerializedSize = dataSize;
|
||||
}
|
||||
if (targetUid_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(15, targetUid_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
@@ -291,12 +294,12 @@ public final class TryEnterHomeRspOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.TryEnterHomeRspOuterClass.TryEnterHomeRsp other = (emu.grasscutter.net.proto.TryEnterHomeRspOuterClass.TryEnterHomeRsp) obj;
|
||||
|
||||
if (!getParamListList()
|
||||
.equals(other.getParamListList())) return false;
|
||||
if (getTargetUid()
|
||||
!= other.getTargetUid()) return false;
|
||||
if (getRetcode()
|
||||
!= other.getRetcode()) return false;
|
||||
if (!getParamListList()
|
||||
.equals(other.getParamListList())) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -308,14 +311,14 @@ public final class TryEnterHomeRspOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + TARGET_UID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getTargetUid();
|
||||
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRetcode();
|
||||
if (getParamListCount() > 0) {
|
||||
hash = (37 * hash) + PARAM_LIST_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getParamListList().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + TARGET_UID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getTargetUid();
|
||||
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRetcode();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -413,10 +416,13 @@ public final class TryEnterHomeRspOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 4653
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* enum CmdId {
|
||||
* option allow_alias = true;
|
||||
* NONE = 0;
|
||||
* CMD_ID = 4796;
|
||||
* ENET_CHANNEL_ID = 0;
|
||||
* ENET_IS_RELIABLE = 1;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code TryEnterHomeRsp}
|
||||
@@ -456,12 +462,12 @@ public final class TryEnterHomeRspOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
paramList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
targetUid_ = 0;
|
||||
|
||||
retcode_ = 0;
|
||||
|
||||
paramList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -489,13 +495,13 @@ public final class TryEnterHomeRspOuterClass {
|
||||
public emu.grasscutter.net.proto.TryEnterHomeRspOuterClass.TryEnterHomeRsp buildPartial() {
|
||||
emu.grasscutter.net.proto.TryEnterHomeRspOuterClass.TryEnterHomeRsp result = new emu.grasscutter.net.proto.TryEnterHomeRspOuterClass.TryEnterHomeRsp(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
result.targetUid_ = targetUid_;
|
||||
result.retcode_ = retcode_;
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
paramList_.makeImmutable();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
}
|
||||
result.paramList_ = paramList_;
|
||||
result.targetUid_ = targetUid_;
|
||||
result.retcode_ = retcode_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -544,12 +550,6 @@ public final class TryEnterHomeRspOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.TryEnterHomeRspOuterClass.TryEnterHomeRsp other) {
|
||||
if (other == emu.grasscutter.net.proto.TryEnterHomeRspOuterClass.TryEnterHomeRsp.getDefaultInstance()) return this;
|
||||
if (other.getTargetUid() != 0) {
|
||||
setTargetUid(other.getTargetUid());
|
||||
}
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
if (!other.paramList_.isEmpty()) {
|
||||
if (paramList_.isEmpty()) {
|
||||
paramList_ = other.paramList_;
|
||||
@@ -560,6 +560,12 @@ public final class TryEnterHomeRspOuterClass {
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
if (other.getTargetUid() != 0) {
|
||||
setTargetUid(other.getTargetUid());
|
||||
}
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -590,9 +596,88 @@ public final class TryEnterHomeRspOuterClass {
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private com.google.protobuf.Internal.IntList paramList_ = emptyIntList();
|
||||
private void ensureParamListIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
paramList_ = mutableCopy(paramList_);
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 11;</code>
|
||||
* @return A list containing the paramList.
|
||||
*/
|
||||
public java.util.List<java.lang.Integer>
|
||||
getParamListList() {
|
||||
return ((bitField0_ & 0x00000001) != 0) ?
|
||||
java.util.Collections.unmodifiableList(paramList_) : paramList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 11;</code>
|
||||
* @return The count of paramList.
|
||||
*/
|
||||
public int getParamListCount() {
|
||||
return paramList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 11;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The paramList at the given index.
|
||||
*/
|
||||
public int getParamList(int index) {
|
||||
return paramList_.getInt(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 11;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The paramList to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setParamList(
|
||||
int index, int value) {
|
||||
ensureParamListIsMutable();
|
||||
paramList_.setInt(index, value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 11;</code>
|
||||
* @param value The paramList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addParamList(int value) {
|
||||
ensureParamListIsMutable();
|
||||
paramList_.addInt(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 11;</code>
|
||||
* @param values The paramList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addAllParamList(
|
||||
java.lang.Iterable<? extends java.lang.Integer> values) {
|
||||
ensureParamListIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, paramList_);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 11;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearParamList() {
|
||||
paramList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int targetUid_ ;
|
||||
/**
|
||||
* <code>uint32 target_uid = 15;</code>
|
||||
* <code>uint32 target_uid = 2;</code>
|
||||
* @return The targetUid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -600,7 +685,7 @@ public final class TryEnterHomeRspOuterClass {
|
||||
return targetUid_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 target_uid = 15;</code>
|
||||
* <code>uint32 target_uid = 2;</code>
|
||||
* @param value The targetUid to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -611,7 +696,7 @@ public final class TryEnterHomeRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 target_uid = 15;</code>
|
||||
* <code>uint32 target_uid = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearTargetUid() {
|
||||
@@ -651,85 +736,6 @@ public final class TryEnterHomeRspOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.Internal.IntList paramList_ = emptyIntList();
|
||||
private void ensureParamListIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
paramList_ = mutableCopy(paramList_);
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 10;</code>
|
||||
* @return A list containing the paramList.
|
||||
*/
|
||||
public java.util.List<java.lang.Integer>
|
||||
getParamListList() {
|
||||
return ((bitField0_ & 0x00000001) != 0) ?
|
||||
java.util.Collections.unmodifiableList(paramList_) : paramList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 10;</code>
|
||||
* @return The count of paramList.
|
||||
*/
|
||||
public int getParamListCount() {
|
||||
return paramList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 10;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The paramList at the given index.
|
||||
*/
|
||||
public int getParamList(int index) {
|
||||
return paramList_.getInt(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 10;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The paramList to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setParamList(
|
||||
int index, int value) {
|
||||
ensureParamListIsMutable();
|
||||
paramList_.setInt(index, value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 10;</code>
|
||||
* @param value The paramList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addParamList(int value) {
|
||||
ensureParamListIsMutable();
|
||||
paramList_.addInt(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 10;</code>
|
||||
* @param values The paramList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addAllParamList(
|
||||
java.lang.Iterable<? extends java.lang.Integer> values) {
|
||||
ensureParamListIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, paramList_);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 param_list = 10;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearParamList() {
|
||||
paramList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -798,8 +804,8 @@ public final class TryEnterHomeRspOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\025TryEnterHomeRsp.proto\"J\n\017TryEnterHomeR" +
|
||||
"sp\022\022\n\ntarget_uid\030\017 \001(\r\022\017\n\007retcode\030\004 \001(\005\022" +
|
||||
"\022\n\nparam_list\030\n \003(\rB\033\n\031emu.grasscutter.n" +
|
||||
"sp\022\022\n\nparam_list\030\013 \003(\r\022\022\n\ntarget_uid\030\002 \001" +
|
||||
"(\r\022\017\n\007retcode\030\004 \001(\005B\033\n\031emu.grasscutter.n" +
|
||||
"et.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -811,7 +817,7 @@ public final class TryEnterHomeRspOuterClass {
|
||||
internal_static_TryEnterHomeRsp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_TryEnterHomeRsp_descriptor,
|
||||
new java.lang.String[] { "TargetUid", "Retcode", "ParamList", });
|
||||
new java.lang.String[] { "ParamList", "TargetUid", "Retcode", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user