mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-08 21:03:40 +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
+93
-87
@@ -19,29 +19,32 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint32 talent_id = 2;</code>
|
||||
* <code>uint32 talent_id = 14;</code>
|
||||
* @return The talentId.
|
||||
*/
|
||||
int getTalentId();
|
||||
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 1;</code>
|
||||
* @return The avatarGuid.
|
||||
*/
|
||||
long getAvatarGuid();
|
||||
|
||||
/**
|
||||
* <code>int32 retcode = 3;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
int getRetcode();
|
||||
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 10;</code>
|
||||
* @return The avatarGuid.
|
||||
*/
|
||||
long getAvatarGuid();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1098
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* enum CmdId {
|
||||
* option allow_alias = true;
|
||||
* NONE = 0;
|
||||
* CMD_ID = 1030;
|
||||
* ENET_CHANNEL_ID = 0;
|
||||
* ENET_IS_RELIABLE = 1;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code UnlockAvatarTalentRsp}
|
||||
@@ -88,9 +91,9 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 16: {
|
||||
case 8: {
|
||||
|
||||
talentId_ = input.readUInt32();
|
||||
avatarGuid_ = input.readUInt64();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
@@ -98,9 +101,9 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
retcode_ = input.readInt32();
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
case 112: {
|
||||
|
||||
avatarGuid_ = input.readUInt64();
|
||||
talentId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
@@ -135,10 +138,10 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp.class, emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp.Builder.class);
|
||||
}
|
||||
|
||||
public static final int TALENT_ID_FIELD_NUMBER = 2;
|
||||
public static final int TALENT_ID_FIELD_NUMBER = 14;
|
||||
private int talentId_;
|
||||
/**
|
||||
* <code>uint32 talent_id = 2;</code>
|
||||
* <code>uint32 talent_id = 14;</code>
|
||||
* @return The talentId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -146,6 +149,17 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
return talentId_;
|
||||
}
|
||||
|
||||
public static final int AVATAR_GUID_FIELD_NUMBER = 1;
|
||||
private long avatarGuid_;
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 1;</code>
|
||||
* @return The avatarGuid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public long getAvatarGuid() {
|
||||
return avatarGuid_;
|
||||
}
|
||||
|
||||
public static final int RETCODE_FIELD_NUMBER = 3;
|
||||
private int retcode_;
|
||||
/**
|
||||
@@ -157,17 +171,6 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
return retcode_;
|
||||
}
|
||||
|
||||
public static final int AVATAR_GUID_FIELD_NUMBER = 10;
|
||||
private long avatarGuid_;
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 10;</code>
|
||||
* @return The avatarGuid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public long getAvatarGuid() {
|
||||
return avatarGuid_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -182,14 +185,14 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (talentId_ != 0) {
|
||||
output.writeUInt32(2, talentId_);
|
||||
if (avatarGuid_ != 0L) {
|
||||
output.writeUInt64(1, avatarGuid_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
output.writeInt32(3, retcode_);
|
||||
}
|
||||
if (avatarGuid_ != 0L) {
|
||||
output.writeUInt64(10, avatarGuid_);
|
||||
if (talentId_ != 0) {
|
||||
output.writeUInt32(14, talentId_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -200,17 +203,17 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (talentId_ != 0) {
|
||||
if (avatarGuid_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(2, talentId_);
|
||||
.computeUInt64Size(1, avatarGuid_);
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(3, retcode_);
|
||||
}
|
||||
if (avatarGuid_ != 0L) {
|
||||
if (talentId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt64Size(10, avatarGuid_);
|
||||
.computeUInt32Size(14, talentId_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -229,10 +232,10 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
|
||||
if (getTalentId()
|
||||
!= other.getTalentId()) return false;
|
||||
if (getRetcode()
|
||||
!= other.getRetcode()) return false;
|
||||
if (getAvatarGuid()
|
||||
!= other.getAvatarGuid()) return false;
|
||||
if (getRetcode()
|
||||
!= other.getRetcode()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -246,11 +249,11 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + TALENT_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getTalentId();
|
||||
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRetcode();
|
||||
hash = (37 * hash) + AVATAR_GUID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getAvatarGuid());
|
||||
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRetcode();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -348,10 +351,13 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1098
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* enum CmdId {
|
||||
* option allow_alias = true;
|
||||
* NONE = 0;
|
||||
* CMD_ID = 1030;
|
||||
* ENET_CHANNEL_ID = 0;
|
||||
* ENET_IS_RELIABLE = 1;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code UnlockAvatarTalentRsp}
|
||||
@@ -393,10 +399,10 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
super.clear();
|
||||
talentId_ = 0;
|
||||
|
||||
retcode_ = 0;
|
||||
|
||||
avatarGuid_ = 0L;
|
||||
|
||||
retcode_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -424,8 +430,8 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
public emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp buildPartial() {
|
||||
emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp result = new emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp(this);
|
||||
result.talentId_ = talentId_;
|
||||
result.retcode_ = retcode_;
|
||||
result.avatarGuid_ = avatarGuid_;
|
||||
result.retcode_ = retcode_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -477,12 +483,12 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
if (other.getTalentId() != 0) {
|
||||
setTalentId(other.getTalentId());
|
||||
}
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
if (other.getAvatarGuid() != 0L) {
|
||||
setAvatarGuid(other.getAvatarGuid());
|
||||
}
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -514,7 +520,7 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
|
||||
private int talentId_ ;
|
||||
/**
|
||||
* <code>uint32 talent_id = 2;</code>
|
||||
* <code>uint32 talent_id = 14;</code>
|
||||
* @return The talentId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -522,7 +528,7 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
return talentId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 talent_id = 2;</code>
|
||||
* <code>uint32 talent_id = 14;</code>
|
||||
* @param value The talentId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -533,7 +539,7 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 talent_id = 2;</code>
|
||||
* <code>uint32 talent_id = 14;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearTalentId() {
|
||||
@@ -543,6 +549,37 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private long avatarGuid_ ;
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 1;</code>
|
||||
* @return The avatarGuid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public long getAvatarGuid() {
|
||||
return avatarGuid_;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 1;</code>
|
||||
* @param value The avatarGuid to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setAvatarGuid(long value) {
|
||||
|
||||
avatarGuid_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearAvatarGuid() {
|
||||
|
||||
avatarGuid_ = 0L;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int retcode_ ;
|
||||
/**
|
||||
* <code>int32 retcode = 3;</code>
|
||||
@@ -573,37 +610,6 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private long avatarGuid_ ;
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 10;</code>
|
||||
* @return The avatarGuid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public long getAvatarGuid() {
|
||||
return avatarGuid_;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 10;</code>
|
||||
* @param value The avatarGuid to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setAvatarGuid(long value) {
|
||||
|
||||
avatarGuid_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 10;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearAvatarGuid() {
|
||||
|
||||
avatarGuid_ = 0L;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -672,8 +678,8 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\033UnlockAvatarTalentRsp.proto\"P\n\025UnlockA" +
|
||||
"vatarTalentRsp\022\021\n\ttalent_id\030\002 \001(\r\022\017\n\007ret" +
|
||||
"code\030\003 \001(\005\022\023\n\013avatar_guid\030\n \001(\004B\033\n\031emu.g" +
|
||||
"vatarTalentRsp\022\021\n\ttalent_id\030\016 \001(\r\022\023\n\013ava" +
|
||||
"tar_guid\030\001 \001(\004\022\017\n\007retcode\030\003 \001(\005B\033\n\031emu.g" +
|
||||
"rasscutter.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -685,7 +691,7 @@ public final class UnlockAvatarTalentRspOuterClass {
|
||||
internal_static_UnlockAvatarTalentRsp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_UnlockAvatarTalentRsp_descriptor,
|
||||
new java.lang.String[] { "TalentId", "Retcode", "AvatarGuid", });
|
||||
new java.lang.String[] { "TalentId", "AvatarGuid", "Retcode", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user