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:
Simplxs
2022-12-24 05:12:02 +08:00
committed by GitHub
Unverified
parent 8b83dbf58c
commit 92fbaa8670
1142 changed files with 474411 additions and 169883 deletions
@@ -19,47 +19,50 @@ public final class AvatarSkillChangeNotifyOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 cur_level = 11;</code>
* @return The curLevel.
*/
int getCurLevel();
/**
* <code>uint64 avatar_guid = 2;</code>
* <code>uint64 avatar_guid = 4;</code>
* @return The avatarGuid.
*/
long getAvatarGuid();
/**
* <code>uint32 entity_id = 7;</code>
* @return The entityId.
*/
int getEntityId();
/**
* <code>uint32 skill_depot_id = 13;</code>
* @return The skillDepotId.
*/
int getSkillDepotId();
/**
* <code>uint32 old_level = 1;</code>
* <code>uint32 old_level = 7;</code>
* @return The oldLevel.
*/
int getOldLevel();
/**
* <code>uint32 avatar_skill_id = 6;</code>
* <code>uint32 cur_level = 15;</code>
* @return The curLevel.
*/
int getCurLevel();
/**
* <code>uint32 skill_depot_id = 6;</code>
* @return The skillDepotId.
*/
int getSkillDepotId();
/**
* <code>uint32 entity_id = 1;</code>
* @return The entityId.
*/
int getEntityId();
/**
* <code>uint32 avatar_skill_id = 11;</code>
* @return The avatarSkillId.
*/
int getAvatarSkillId();
}
/**
* <pre>
* CmdId: 1097
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 1099;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* }
* </pre>
*
* Protobuf type {@code AvatarSkillChangeNotify}
@@ -108,32 +111,32 @@ public final class AvatarSkillChangeNotifyOuterClass {
break;
case 8: {
oldLevel_ = input.readUInt32();
entityId_ = input.readUInt32();
break;
}
case 16: {
case 32: {
avatarGuid_ = input.readUInt64();
break;
}
case 48: {
avatarSkillId_ = input.readUInt32();
skillDepotId_ = input.readUInt32();
break;
}
case 56: {
entityId_ = input.readUInt32();
oldLevel_ = input.readUInt32();
break;
}
case 88: {
curLevel_ = input.readUInt32();
avatarSkillId_ = input.readUInt32();
break;
}
case 104: {
case 120: {
skillDepotId_ = input.readUInt32();
curLevel_ = input.readUInt32();
break;
}
default: {
@@ -168,21 +171,10 @@ public final class AvatarSkillChangeNotifyOuterClass {
emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify.class, emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify.Builder.class);
}
public static final int CUR_LEVEL_FIELD_NUMBER = 11;
private int curLevel_;
/**
* <code>uint32 cur_level = 11;</code>
* @return The curLevel.
*/
@java.lang.Override
public int getCurLevel() {
return curLevel_;
}
public static final int AVATAR_GUID_FIELD_NUMBER = 2;
public static final int AVATAR_GUID_FIELD_NUMBER = 4;
private long avatarGuid_;
/**
* <code>uint64 avatar_guid = 2;</code>
* <code>uint64 avatar_guid = 4;</code>
* @return The avatarGuid.
*/
@java.lang.Override
@@ -190,32 +182,10 @@ public final class AvatarSkillChangeNotifyOuterClass {
return avatarGuid_;
}
public static final int ENTITY_ID_FIELD_NUMBER = 7;
private int entityId_;
/**
* <code>uint32 entity_id = 7;</code>
* @return The entityId.
*/
@java.lang.Override
public int getEntityId() {
return entityId_;
}
public static final int SKILL_DEPOT_ID_FIELD_NUMBER = 13;
private int skillDepotId_;
/**
* <code>uint32 skill_depot_id = 13;</code>
* @return The skillDepotId.
*/
@java.lang.Override
public int getSkillDepotId() {
return skillDepotId_;
}
public static final int OLD_LEVEL_FIELD_NUMBER = 1;
public static final int OLD_LEVEL_FIELD_NUMBER = 7;
private int oldLevel_;
/**
* <code>uint32 old_level = 1;</code>
* <code>uint32 old_level = 7;</code>
* @return The oldLevel.
*/
@java.lang.Override
@@ -223,10 +193,43 @@ public final class AvatarSkillChangeNotifyOuterClass {
return oldLevel_;
}
public static final int AVATAR_SKILL_ID_FIELD_NUMBER = 6;
public static final int CUR_LEVEL_FIELD_NUMBER = 15;
private int curLevel_;
/**
* <code>uint32 cur_level = 15;</code>
* @return The curLevel.
*/
@java.lang.Override
public int getCurLevel() {
return curLevel_;
}
public static final int SKILL_DEPOT_ID_FIELD_NUMBER = 6;
private int skillDepotId_;
/**
* <code>uint32 skill_depot_id = 6;</code>
* @return The skillDepotId.
*/
@java.lang.Override
public int getSkillDepotId() {
return skillDepotId_;
}
public static final int ENTITY_ID_FIELD_NUMBER = 1;
private int entityId_;
/**
* <code>uint32 entity_id = 1;</code>
* @return The entityId.
*/
@java.lang.Override
public int getEntityId() {
return entityId_;
}
public static final int AVATAR_SKILL_ID_FIELD_NUMBER = 11;
private int avatarSkillId_;
/**
* <code>uint32 avatar_skill_id = 6;</code>
* <code>uint32 avatar_skill_id = 11;</code>
* @return The avatarSkillId.
*/
@java.lang.Override
@@ -248,23 +251,23 @@ public final class AvatarSkillChangeNotifyOuterClass {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (oldLevel_ != 0) {
output.writeUInt32(1, oldLevel_);
if (entityId_ != 0) {
output.writeUInt32(1, entityId_);
}
if (avatarGuid_ != 0L) {
output.writeUInt64(2, avatarGuid_);
}
if (avatarSkillId_ != 0) {
output.writeUInt32(6, avatarSkillId_);
}
if (entityId_ != 0) {
output.writeUInt32(7, entityId_);
}
if (curLevel_ != 0) {
output.writeUInt32(11, curLevel_);
output.writeUInt64(4, avatarGuid_);
}
if (skillDepotId_ != 0) {
output.writeUInt32(13, skillDepotId_);
output.writeUInt32(6, skillDepotId_);
}
if (oldLevel_ != 0) {
output.writeUInt32(7, oldLevel_);
}
if (avatarSkillId_ != 0) {
output.writeUInt32(11, avatarSkillId_);
}
if (curLevel_ != 0) {
output.writeUInt32(15, curLevel_);
}
unknownFields.writeTo(output);
}
@@ -275,29 +278,29 @@ public final class AvatarSkillChangeNotifyOuterClass {
if (size != -1) return size;
size = 0;
if (oldLevel_ != 0) {
if (entityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, oldLevel_);
.computeUInt32Size(1, entityId_);
}
if (avatarGuid_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, avatarGuid_);
}
if (avatarSkillId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, avatarSkillId_);
}
if (entityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, entityId_);
}
if (curLevel_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, curLevel_);
.computeUInt64Size(4, avatarGuid_);
}
if (skillDepotId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(13, skillDepotId_);
.computeUInt32Size(6, skillDepotId_);
}
if (oldLevel_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, oldLevel_);
}
if (avatarSkillId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, avatarSkillId_);
}
if (curLevel_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(15, curLevel_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -314,16 +317,16 @@ public final class AvatarSkillChangeNotifyOuterClass {
}
emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify other = (emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify) obj;
if (getCurLevel()
!= other.getCurLevel()) return false;
if (getAvatarGuid()
!= other.getAvatarGuid()) return false;
if (getEntityId()
!= other.getEntityId()) return false;
if (getSkillDepotId()
!= other.getSkillDepotId()) return false;
if (getOldLevel()
!= other.getOldLevel()) return false;
if (getCurLevel()
!= other.getCurLevel()) return false;
if (getSkillDepotId()
!= other.getSkillDepotId()) return false;
if (getEntityId()
!= other.getEntityId()) return false;
if (getAvatarSkillId()
!= other.getAvatarSkillId()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
@@ -337,17 +340,17 @@ public final class AvatarSkillChangeNotifyOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CUR_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getCurLevel();
hash = (37 * hash) + AVATAR_GUID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAvatarGuid());
hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getEntityId();
hash = (37 * hash) + SKILL_DEPOT_ID_FIELD_NUMBER;
hash = (53 * hash) + getSkillDepotId();
hash = (37 * hash) + OLD_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getOldLevel();
hash = (37 * hash) + CUR_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getCurLevel();
hash = (37 * hash) + SKILL_DEPOT_ID_FIELD_NUMBER;
hash = (53 * hash) + getSkillDepotId();
hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getEntityId();
hash = (37 * hash) + AVATAR_SKILL_ID_FIELD_NUMBER;
hash = (53 * hash) + getAvatarSkillId();
hash = (29 * hash) + unknownFields.hashCode();
@@ -447,10 +450,13 @@ public final class AvatarSkillChangeNotifyOuterClass {
}
/**
* <pre>
* CmdId: 1097
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 1099;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* }
* </pre>
*
* Protobuf type {@code AvatarSkillChangeNotify}
@@ -490,15 +496,15 @@ public final class AvatarSkillChangeNotifyOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
curLevel_ = 0;
avatarGuid_ = 0L;
entityId_ = 0;
oldLevel_ = 0;
curLevel_ = 0;
skillDepotId_ = 0;
oldLevel_ = 0;
entityId_ = 0;
avatarSkillId_ = 0;
@@ -528,11 +534,11 @@ public final class AvatarSkillChangeNotifyOuterClass {
@java.lang.Override
public emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify buildPartial() {
emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify result = new emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify(this);
result.curLevel_ = curLevel_;
result.avatarGuid_ = avatarGuid_;
result.entityId_ = entityId_;
result.skillDepotId_ = skillDepotId_;
result.oldLevel_ = oldLevel_;
result.curLevel_ = curLevel_;
result.skillDepotId_ = skillDepotId_;
result.entityId_ = entityId_;
result.avatarSkillId_ = avatarSkillId_;
onBuilt();
return result;
@@ -582,20 +588,20 @@ public final class AvatarSkillChangeNotifyOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify other) {
if (other == emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify.getDefaultInstance()) return this;
if (other.getCurLevel() != 0) {
setCurLevel(other.getCurLevel());
}
if (other.getAvatarGuid() != 0L) {
setAvatarGuid(other.getAvatarGuid());
}
if (other.getEntityId() != 0) {
setEntityId(other.getEntityId());
if (other.getOldLevel() != 0) {
setOldLevel(other.getOldLevel());
}
if (other.getCurLevel() != 0) {
setCurLevel(other.getCurLevel());
}
if (other.getSkillDepotId() != 0) {
setSkillDepotId(other.getSkillDepotId());
}
if (other.getOldLevel() != 0) {
setOldLevel(other.getOldLevel());
if (other.getEntityId() != 0) {
setEntityId(other.getEntityId());
}
if (other.getAvatarSkillId() != 0) {
setAvatarSkillId(other.getAvatarSkillId());
@@ -629,40 +635,9 @@ public final class AvatarSkillChangeNotifyOuterClass {
return this;
}
private int curLevel_ ;
/**
* <code>uint32 cur_level = 11;</code>
* @return The curLevel.
*/
@java.lang.Override
public int getCurLevel() {
return curLevel_;
}
/**
* <code>uint32 cur_level = 11;</code>
* @param value The curLevel to set.
* @return This builder for chaining.
*/
public Builder setCurLevel(int value) {
curLevel_ = value;
onChanged();
return this;
}
/**
* <code>uint32 cur_level = 11;</code>
* @return This builder for chaining.
*/
public Builder clearCurLevel() {
curLevel_ = 0;
onChanged();
return this;
}
private long avatarGuid_ ;
/**
* <code>uint64 avatar_guid = 2;</code>
* <code>uint64 avatar_guid = 4;</code>
* @return The avatarGuid.
*/
@java.lang.Override
@@ -670,7 +645,7 @@ public final class AvatarSkillChangeNotifyOuterClass {
return avatarGuid_;
}
/**
* <code>uint64 avatar_guid = 2;</code>
* <code>uint64 avatar_guid = 4;</code>
* @param value The avatarGuid to set.
* @return This builder for chaining.
*/
@@ -681,7 +656,7 @@ public final class AvatarSkillChangeNotifyOuterClass {
return this;
}
/**
* <code>uint64 avatar_guid = 2;</code>
* <code>uint64 avatar_guid = 4;</code>
* @return This builder for chaining.
*/
public Builder clearAvatarGuid() {
@@ -691,71 +666,9 @@ public final class AvatarSkillChangeNotifyOuterClass {
return this;
}
private int entityId_ ;
/**
* <code>uint32 entity_id = 7;</code>
* @return The entityId.
*/
@java.lang.Override
public int getEntityId() {
return entityId_;
}
/**
* <code>uint32 entity_id = 7;</code>
* @param value The entityId to set.
* @return This builder for chaining.
*/
public Builder setEntityId(int value) {
entityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 entity_id = 7;</code>
* @return This builder for chaining.
*/
public Builder clearEntityId() {
entityId_ = 0;
onChanged();
return this;
}
private int skillDepotId_ ;
/**
* <code>uint32 skill_depot_id = 13;</code>
* @return The skillDepotId.
*/
@java.lang.Override
public int getSkillDepotId() {
return skillDepotId_;
}
/**
* <code>uint32 skill_depot_id = 13;</code>
* @param value The skillDepotId to set.
* @return This builder for chaining.
*/
public Builder setSkillDepotId(int value) {
skillDepotId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 skill_depot_id = 13;</code>
* @return This builder for chaining.
*/
public Builder clearSkillDepotId() {
skillDepotId_ = 0;
onChanged();
return this;
}
private int oldLevel_ ;
/**
* <code>uint32 old_level = 1;</code>
* <code>uint32 old_level = 7;</code>
* @return The oldLevel.
*/
@java.lang.Override
@@ -763,7 +676,7 @@ public final class AvatarSkillChangeNotifyOuterClass {
return oldLevel_;
}
/**
* <code>uint32 old_level = 1;</code>
* <code>uint32 old_level = 7;</code>
* @param value The oldLevel to set.
* @return This builder for chaining.
*/
@@ -774,7 +687,7 @@ public final class AvatarSkillChangeNotifyOuterClass {
return this;
}
/**
* <code>uint32 old_level = 1;</code>
* <code>uint32 old_level = 7;</code>
* @return This builder for chaining.
*/
public Builder clearOldLevel() {
@@ -784,9 +697,102 @@ public final class AvatarSkillChangeNotifyOuterClass {
return this;
}
private int curLevel_ ;
/**
* <code>uint32 cur_level = 15;</code>
* @return The curLevel.
*/
@java.lang.Override
public int getCurLevel() {
return curLevel_;
}
/**
* <code>uint32 cur_level = 15;</code>
* @param value The curLevel to set.
* @return This builder for chaining.
*/
public Builder setCurLevel(int value) {
curLevel_ = value;
onChanged();
return this;
}
/**
* <code>uint32 cur_level = 15;</code>
* @return This builder for chaining.
*/
public Builder clearCurLevel() {
curLevel_ = 0;
onChanged();
return this;
}
private int skillDepotId_ ;
/**
* <code>uint32 skill_depot_id = 6;</code>
* @return The skillDepotId.
*/
@java.lang.Override
public int getSkillDepotId() {
return skillDepotId_;
}
/**
* <code>uint32 skill_depot_id = 6;</code>
* @param value The skillDepotId to set.
* @return This builder for chaining.
*/
public Builder setSkillDepotId(int value) {
skillDepotId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 skill_depot_id = 6;</code>
* @return This builder for chaining.
*/
public Builder clearSkillDepotId() {
skillDepotId_ = 0;
onChanged();
return this;
}
private int entityId_ ;
/**
* <code>uint32 entity_id = 1;</code>
* @return The entityId.
*/
@java.lang.Override
public int getEntityId() {
return entityId_;
}
/**
* <code>uint32 entity_id = 1;</code>
* @param value The entityId to set.
* @return This builder for chaining.
*/
public Builder setEntityId(int value) {
entityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 entity_id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearEntityId() {
entityId_ = 0;
onChanged();
return this;
}
private int avatarSkillId_ ;
/**
* <code>uint32 avatar_skill_id = 6;</code>
* <code>uint32 avatar_skill_id = 11;</code>
* @return The avatarSkillId.
*/
@java.lang.Override
@@ -794,7 +800,7 @@ public final class AvatarSkillChangeNotifyOuterClass {
return avatarSkillId_;
}
/**
* <code>uint32 avatar_skill_id = 6;</code>
* <code>uint32 avatar_skill_id = 11;</code>
* @param value The avatarSkillId to set.
* @return This builder for chaining.
*/
@@ -805,7 +811,7 @@ public final class AvatarSkillChangeNotifyOuterClass {
return this;
}
/**
* <code>uint32 avatar_skill_id = 6;</code>
* <code>uint32 avatar_skill_id = 11;</code>
* @return This builder for chaining.
*/
public Builder clearAvatarSkillId() {
@@ -882,10 +888,10 @@ public final class AvatarSkillChangeNotifyOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\035AvatarSkillChangeNotify.proto\"\230\001\n\027Avat" +
"arSkillChangeNotify\022\021\n\tcur_level\030\013 \001(\r\022\023" +
"\n\013avatar_guid\030\002 \001(\004\022\021\n\tentity_id\030\007 \001(\r\022\026" +
"\n\016skill_depot_id\030\r \001(\r\022\021\n\told_level\030\001 \001(" +
"\r\022\027\n\017avatar_skill_id\030\006 \001(\rB\033\n\031emu.grassc" +
"arSkillChangeNotify\022\023\n\013avatar_guid\030\004 \001(\004" +
"\022\021\n\told_level\030\007 \001(\r\022\021\n\tcur_level\030\017 \001(\r\022\026" +
"\n\016skill_depot_id\030\006 \001(\r\022\021\n\tentity_id\030\001 \001(" +
"\r\022\027\n\017avatar_skill_id\030\013 \001(\rB\033\n\031emu.grassc" +
"utter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -897,7 +903,7 @@ public final class AvatarSkillChangeNotifyOuterClass {
internal_static_AvatarSkillChangeNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_AvatarSkillChangeNotify_descriptor,
new java.lang.String[] { "CurLevel", "AvatarGuid", "EntityId", "SkillDepotId", "OldLevel", "AvatarSkillId", });
new java.lang.String[] { "AvatarGuid", "OldLevel", "CurLevel", "SkillDepotId", "EntityId", "AvatarSkillId", });
}
// @@protoc_insertion_point(outer_class_scope)