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,11 +19,17 @@ public final class AvatarFightPropNotifyOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>uint64 avatar_guid = 13;</code>
* @return The avatarGuid.
*/
long getAvatarGuid();
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
int getFightPropMapCount();
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
boolean containsFightPropMap(
int key);
@@ -34,36 +40,33 @@ public final class AvatarFightPropNotifyOuterClass {
java.util.Map<java.lang.Integer, java.lang.Float>
getFightPropMap();
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
java.util.Map<java.lang.Integer, java.lang.Float>
getFightPropMapMap();
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
float getFightPropMapOrDefault(
int key,
float defaultValue);
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
float getFightPropMapOrThrow(
int key);
/**
* <code>uint64 avatar_guid = 4;</code>
* @return The avatarGuid.
*/
long getAvatarGuid();
}
/**
* <pre>
* CmdId: 1207
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 1300;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* }
* </pre>
*
* Protobuf type {@code AvatarFightPropNotify}
@@ -111,12 +114,7 @@ public final class AvatarFightPropNotifyOuterClass {
case 0:
done = true;
break;
case 32: {
avatarGuid_ = input.readUInt64();
break;
}
case 66: {
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
fightPropMap_ = com.google.protobuf.MapField.newMapField(
FightPropMapDefaultEntryHolder.defaultEntry);
@@ -129,6 +127,11 @@ public final class AvatarFightPropNotifyOuterClass {
fightPropMap__.getKey(), fightPropMap__.getValue());
break;
}
case 104: {
avatarGuid_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -158,7 +161,7 @@ public final class AvatarFightPropNotifyOuterClass {
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 8:
case 5:
return internalGetFightPropMap();
default:
throw new RuntimeException(
@@ -173,7 +176,18 @@ public final class AvatarFightPropNotifyOuterClass {
emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify.class, emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify.Builder.class);
}
public static final int FIGHT_PROP_MAP_FIELD_NUMBER = 8;
public static final int AVATAR_GUID_FIELD_NUMBER = 13;
private long avatarGuid_;
/**
* <code>uint64 avatar_guid = 13;</code>
* @return The avatarGuid.
*/
@java.lang.Override
public long getAvatarGuid() {
return avatarGuid_;
}
public static final int FIGHT_PROP_MAP_FIELD_NUMBER = 5;
private static final class FightPropMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Integer, java.lang.Float> defaultEntry =
@@ -200,7 +214,7 @@ public final class AvatarFightPropNotifyOuterClass {
return internalGetFightPropMap().getMap().size();
}
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
@java.lang.Override
@@ -218,7 +232,7 @@ public final class AvatarFightPropNotifyOuterClass {
return getFightPropMapMap();
}
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
@java.lang.Override
@@ -226,7 +240,7 @@ public final class AvatarFightPropNotifyOuterClass {
return internalGetFightPropMap().getMap();
}
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
@java.lang.Override
@@ -239,7 +253,7 @@ public final class AvatarFightPropNotifyOuterClass {
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
@java.lang.Override
@@ -254,17 +268,6 @@ public final class AvatarFightPropNotifyOuterClass {
return map.get(key);
}
public static final int AVATAR_GUID_FIELD_NUMBER = 4;
private long avatarGuid_;
/**
* <code>uint64 avatar_guid = 4;</code>
* @return The avatarGuid.
*/
@java.lang.Override
public long getAvatarGuid() {
return avatarGuid_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -279,15 +282,15 @@ public final class AvatarFightPropNotifyOuterClass {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (avatarGuid_ != 0L) {
output.writeUInt64(4, avatarGuid_);
}
com.google.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetFightPropMap(),
FightPropMapDefaultEntryHolder.defaultEntry,
8);
5);
if (avatarGuid_ != 0L) {
output.writeUInt64(13, avatarGuid_);
}
unknownFields.writeTo(output);
}
@@ -297,10 +300,6 @@ public final class AvatarFightPropNotifyOuterClass {
if (size != -1) return size;
size = 0;
if (avatarGuid_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, avatarGuid_);
}
for (java.util.Map.Entry<java.lang.Integer, java.lang.Float> entry
: internalGetFightPropMap().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Float>
@@ -309,7 +308,11 @@ public final class AvatarFightPropNotifyOuterClass {
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, fightPropMap__);
.computeMessageSize(5, fightPropMap__);
}
if (avatarGuid_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(13, avatarGuid_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -326,10 +329,10 @@ public final class AvatarFightPropNotifyOuterClass {
}
emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify other = (emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify) obj;
if (!internalGetFightPropMap().equals(
other.internalGetFightPropMap())) return false;
if (getAvatarGuid()
!= other.getAvatarGuid()) return false;
if (!internalGetFightPropMap().equals(
other.internalGetFightPropMap())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -341,13 +344,13 @@ public final class AvatarFightPropNotifyOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + AVATAR_GUID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAvatarGuid());
if (!internalGetFightPropMap().getMap().isEmpty()) {
hash = (37 * hash) + FIGHT_PROP_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetFightPropMap().hashCode();
}
hash = (37 * hash) + AVATAR_GUID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAvatarGuid());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -445,10 +448,13 @@ public final class AvatarFightPropNotifyOuterClass {
}
/**
* <pre>
* CmdId: 1207
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 1300;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* }
* </pre>
*
* Protobuf type {@code AvatarFightPropNotify}
@@ -466,7 +472,7 @@ public final class AvatarFightPropNotifyOuterClass {
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 8:
case 5:
return internalGetFightPropMap();
default:
throw new RuntimeException(
@@ -477,7 +483,7 @@ public final class AvatarFightPropNotifyOuterClass {
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 8:
case 5:
return internalGetMutableFightPropMap();
default:
throw new RuntimeException(
@@ -510,9 +516,9 @@ public final class AvatarFightPropNotifyOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableFightPropMap().clear();
avatarGuid_ = 0L;
internalGetMutableFightPropMap().clear();
return this;
}
@@ -540,9 +546,9 @@ public final class AvatarFightPropNotifyOuterClass {
public emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify buildPartial() {
emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify result = new emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify(this);
int from_bitField0_ = bitField0_;
result.avatarGuid_ = avatarGuid_;
result.fightPropMap_ = internalGetFightPropMap();
result.fightPropMap_.makeImmutable();
result.avatarGuid_ = avatarGuid_;
onBuilt();
return result;
}
@@ -591,11 +597,11 @@ public final class AvatarFightPropNotifyOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify other) {
if (other == emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify.getDefaultInstance()) return this;
internalGetMutableFightPropMap().mergeFrom(
other.internalGetFightPropMap());
if (other.getAvatarGuid() != 0L) {
setAvatarGuid(other.getAvatarGuid());
}
internalGetMutableFightPropMap().mergeFrom(
other.internalGetFightPropMap());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -626,6 +632,37 @@ public final class AvatarFightPropNotifyOuterClass {
}
private int bitField0_;
private long avatarGuid_ ;
/**
* <code>uint64 avatar_guid = 13;</code>
* @return The avatarGuid.
*/
@java.lang.Override
public long getAvatarGuid() {
return avatarGuid_;
}
/**
* <code>uint64 avatar_guid = 13;</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 = 13;</code>
* @return This builder for chaining.
*/
public Builder clearAvatarGuid() {
avatarGuid_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Float> fightPropMap_;
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Float>
@@ -653,7 +690,7 @@ public final class AvatarFightPropNotifyOuterClass {
return internalGetFightPropMap().getMap().size();
}
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
@java.lang.Override
@@ -671,7 +708,7 @@ public final class AvatarFightPropNotifyOuterClass {
return getFightPropMapMap();
}
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
@java.lang.Override
@@ -679,7 +716,7 @@ public final class AvatarFightPropNotifyOuterClass {
return internalGetFightPropMap().getMap();
}
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
@java.lang.Override
@@ -692,7 +729,7 @@ public final class AvatarFightPropNotifyOuterClass {
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
@java.lang.Override
@@ -713,7 +750,7 @@ public final class AvatarFightPropNotifyOuterClass {
return this;
}
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
public Builder removeFightPropMap(
@@ -732,7 +769,7 @@ public final class AvatarFightPropNotifyOuterClass {
return internalGetMutableFightPropMap().getMutableMap();
}
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
public Builder putFightPropMap(
int key,
@@ -744,7 +781,7 @@ public final class AvatarFightPropNotifyOuterClass {
return this;
}
/**
* <code>map&lt;uint32, float&gt; fight_prop_map = 8;</code>
* <code>map&lt;uint32, float&gt; fight_prop_map = 5;</code>
*/
public Builder putAllFightPropMap(
@@ -753,37 +790,6 @@ public final class AvatarFightPropNotifyOuterClass {
.putAll(values);
return this;
}
private long avatarGuid_ ;
/**
* <code>uint64 avatar_guid = 4;</code>
* @return The avatarGuid.
*/
@java.lang.Override
public long getAvatarGuid() {
return avatarGuid_;
}
/**
* <code>uint64 avatar_guid = 4;</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 = 4;</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) {
@@ -857,9 +863,9 @@ public final class AvatarFightPropNotifyOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\033AvatarFightPropNotify.proto\"\243\001\n\025Avatar" +
"FightPropNotify\022@\n\016fight_prop_map\030\010 \003(\0132" +
"(.AvatarFightPropNotify.FightPropMapEntr" +
"y\022\023\n\013avatar_guid\030\004 \001(\004\0323\n\021FightPropMapEn" +
"FightPropNotify\022\023\n\013avatar_guid\030\r \001(\004\022@\n\016" +
"fight_prop_map\030\005 \003(\0132(.AvatarFightPropNo" +
"tify.FightPropMapEntry\0323\n\021FightPropMapEn" +
"try\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\002:\0028\001B\033\n\031e" +
"mu.grasscutter.net.protob\006proto3"
};
@@ -872,7 +878,7 @@ public final class AvatarFightPropNotifyOuterClass {
internal_static_AvatarFightPropNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_AvatarFightPropNotify_descriptor,
new java.lang.String[] { "FightPropMap", "AvatarGuid", });
new java.lang.String[] { "AvatarGuid", "FightPropMap", });
internal_static_AvatarFightPropNotify_FightPropMapEntry_descriptor =
internal_static_AvatarFightPropNotify_descriptor.getNestedTypes().get(0);
internal_static_AvatarFightPropNotify_FightPropMapEntry_fieldAccessorTable = new