mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-08 19:33:39 +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
+95
-89
@@ -19,34 +19,37 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>int32 retcode = 4;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
int getRetcode();
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 mission_id_list = 11;</code>
|
||||
* <code>repeated uint32 mission_id_list = 13;</code>
|
||||
* @return A list containing the missionIdList.
|
||||
*/
|
||||
java.util.List<java.lang.Integer> getMissionIdListList();
|
||||
/**
|
||||
* <code>repeated uint32 mission_id_list = 11;</code>
|
||||
* <code>repeated uint32 mission_id_list = 13;</code>
|
||||
* @return The count of missionIdList.
|
||||
*/
|
||||
int getMissionIdListCount();
|
||||
/**
|
||||
* <code>repeated uint32 mission_id_list = 11;</code>
|
||||
* <code>repeated uint32 mission_id_list = 13;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The missionIdList at the given index.
|
||||
*/
|
||||
int getMissionIdList(int index);
|
||||
|
||||
/**
|
||||
* <code>int32 retcode = 5;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
int getRetcode();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 2622
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* enum CmdId {
|
||||
* option allow_alias = true;
|
||||
* NONE = 0;
|
||||
* CMD_ID = 2617;
|
||||
* ENET_CHANNEL_ID = 0;
|
||||
* ENET_IS_RELIABLE = 1;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code TakeBattlePassMissionPointRsp}
|
||||
@@ -95,12 +98,12 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 32: {
|
||||
case 40: {
|
||||
|
||||
retcode_ = input.readInt32();
|
||||
break;
|
||||
}
|
||||
case 88: {
|
||||
case 104: {
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
missionIdList_ = newIntList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
@@ -108,7 +111,7 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
missionIdList_.addInt(input.readUInt32());
|
||||
break;
|
||||
}
|
||||
case 90: {
|
||||
case 106: {
|
||||
int length = input.readRawVarint32();
|
||||
int limit = input.pushLimit(length);
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
|
||||
@@ -156,21 +159,10 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp.class, emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp.Builder.class);
|
||||
}
|
||||
|
||||
public static final int RETCODE_FIELD_NUMBER = 4;
|
||||
private int retcode_;
|
||||
/**
|
||||
* <code>int32 retcode = 4;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
|
||||
public static final int MISSION_ID_LIST_FIELD_NUMBER = 11;
|
||||
public static final int MISSION_ID_LIST_FIELD_NUMBER = 13;
|
||||
private com.google.protobuf.Internal.IntList missionIdList_;
|
||||
/**
|
||||
* <code>repeated uint32 mission_id_list = 11;</code>
|
||||
* <code>repeated uint32 mission_id_list = 13;</code>
|
||||
* @return A list containing the missionIdList.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -179,14 +171,14 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
return missionIdList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mission_id_list = 11;</code>
|
||||
* <code>repeated uint32 mission_id_list = 13;</code>
|
||||
* @return The count of missionIdList.
|
||||
*/
|
||||
public int getMissionIdListCount() {
|
||||
return missionIdList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mission_id_list = 11;</code>
|
||||
* <code>repeated uint32 mission_id_list = 13;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The missionIdList at the given index.
|
||||
*/
|
||||
@@ -195,6 +187,17 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
}
|
||||
private int missionIdListMemoizedSerializedSize = -1;
|
||||
|
||||
public static final int RETCODE_FIELD_NUMBER = 5;
|
||||
private int retcode_;
|
||||
/**
|
||||
* <code>int32 retcode = 5;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -211,10 +214,10 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
throws java.io.IOException {
|
||||
getSerializedSize();
|
||||
if (retcode_ != 0) {
|
||||
output.writeInt32(4, retcode_);
|
||||
output.writeInt32(5, retcode_);
|
||||
}
|
||||
if (getMissionIdListList().size() > 0) {
|
||||
output.writeUInt32NoTag(90);
|
||||
output.writeUInt32NoTag(106);
|
||||
output.writeUInt32NoTag(missionIdListMemoizedSerializedSize);
|
||||
}
|
||||
for (int i = 0; i < missionIdList_.size(); i++) {
|
||||
@@ -231,7 +234,7 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
size = 0;
|
||||
if (retcode_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(4, retcode_);
|
||||
.computeInt32Size(5, retcode_);
|
||||
}
|
||||
{
|
||||
int dataSize = 0;
|
||||
@@ -262,10 +265,10 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp other = (emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp) obj;
|
||||
|
||||
if (getRetcode()
|
||||
!= other.getRetcode()) return false;
|
||||
if (!getMissionIdListList()
|
||||
.equals(other.getMissionIdListList())) return false;
|
||||
if (getRetcode()
|
||||
!= other.getRetcode()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -277,12 +280,12 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRetcode();
|
||||
if (getMissionIdListCount() > 0) {
|
||||
hash = (37 * hash) + MISSION_ID_LIST_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getMissionIdListList().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRetcode();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -380,10 +383,13 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 2622
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* enum CmdId {
|
||||
* option allow_alias = true;
|
||||
* NONE = 0;
|
||||
* CMD_ID = 2617;
|
||||
* ENET_CHANNEL_ID = 0;
|
||||
* ENET_IS_RELIABLE = 1;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code TakeBattlePassMissionPointRsp}
|
||||
@@ -423,10 +429,10 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
retcode_ = 0;
|
||||
|
||||
missionIdList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
retcode_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -454,12 +460,12 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
public emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp buildPartial() {
|
||||
emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp result = new emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
result.retcode_ = retcode_;
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
missionIdList_.makeImmutable();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
}
|
||||
result.missionIdList_ = missionIdList_;
|
||||
result.retcode_ = retcode_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -508,9 +514,6 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp other) {
|
||||
if (other == emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp.getDefaultInstance()) return this;
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
if (!other.missionIdList_.isEmpty()) {
|
||||
if (missionIdList_.isEmpty()) {
|
||||
missionIdList_ = other.missionIdList_;
|
||||
@@ -521,6 +524,9 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -551,37 +557,6 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private int retcode_ ;
|
||||
/**
|
||||
* <code>int32 retcode = 4;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 4;</code>
|
||||
* @param value The retcode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setRetcode(int value) {
|
||||
|
||||
retcode_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 4;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearRetcode() {
|
||||
|
||||
retcode_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.Internal.IntList missionIdList_ = emptyIntList();
|
||||
private void ensureMissionIdListIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
@@ -590,7 +565,7 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mission_id_list = 11;</code>
|
||||
* <code>repeated uint32 mission_id_list = 13;</code>
|
||||
* @return A list containing the missionIdList.
|
||||
*/
|
||||
public java.util.List<java.lang.Integer>
|
||||
@@ -599,14 +574,14 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
java.util.Collections.unmodifiableList(missionIdList_) : missionIdList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mission_id_list = 11;</code>
|
||||
* <code>repeated uint32 mission_id_list = 13;</code>
|
||||
* @return The count of missionIdList.
|
||||
*/
|
||||
public int getMissionIdListCount() {
|
||||
return missionIdList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mission_id_list = 11;</code>
|
||||
* <code>repeated uint32 mission_id_list = 13;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The missionIdList at the given index.
|
||||
*/
|
||||
@@ -614,7 +589,7 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
return missionIdList_.getInt(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mission_id_list = 11;</code>
|
||||
* <code>repeated uint32 mission_id_list = 13;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The missionIdList to set.
|
||||
* @return This builder for chaining.
|
||||
@@ -627,7 +602,7 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mission_id_list = 11;</code>
|
||||
* <code>repeated uint32 mission_id_list = 13;</code>
|
||||
* @param value The missionIdList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -638,7 +613,7 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mission_id_list = 11;</code>
|
||||
* <code>repeated uint32 mission_id_list = 13;</code>
|
||||
* @param values The missionIdList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -651,7 +626,7 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mission_id_list = 11;</code>
|
||||
* <code>repeated uint32 mission_id_list = 13;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearMissionIdList() {
|
||||
@@ -660,6 +635,37 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int retcode_ ;
|
||||
/**
|
||||
* <code>int32 retcode = 5;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getRetcode() {
|
||||
return retcode_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 5;</code>
|
||||
* @param value The retcode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setRetcode(int value) {
|
||||
|
||||
retcode_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 5;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearRetcode() {
|
||||
|
||||
retcode_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -728,8 +734,8 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n#TakeBattlePassMissionPointRsp.proto\"I\n" +
|
||||
"\035TakeBattlePassMissionPointRsp\022\017\n\007retcod" +
|
||||
"e\030\004 \001(\005\022\027\n\017mission_id_list\030\013 \003(\rB\033\n\031emu." +
|
||||
"\035TakeBattlePassMissionPointRsp\022\027\n\017missio" +
|
||||
"n_id_list\030\r \003(\r\022\017\n\007retcode\030\005 \001(\005B\033\n\031emu." +
|
||||
"grasscutter.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -741,7 +747,7 @@ public final class TakeBattlePassMissionPointRspOuterClass {
|
||||
internal_static_TakeBattlePassMissionPointRsp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_TakeBattlePassMissionPointRsp_descriptor,
|
||||
new java.lang.String[] { "Retcode", "MissionIdList", });
|
||||
new java.lang.String[] { "MissionIdList", "Retcode", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user