mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-23 20:09:56 +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
+109
-103
@@ -19,11 +19,17 @@ public final class AvatarPropNotifyOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>uint64 avatar_guid = 1;</code>
|
||||
* @return The avatarGuid.
|
||||
*/
|
||||
long getAvatarGuid();
|
||||
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
int getPropMapCount();
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
boolean containsPropMap(
|
||||
int key);
|
||||
@@ -34,36 +40,33 @@ public final class AvatarPropNotifyOuterClass {
|
||||
java.util.Map<java.lang.Integer, java.lang.Long>
|
||||
getPropMap();
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
java.util.Map<java.lang.Integer, java.lang.Long>
|
||||
getPropMapMap();
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
|
||||
long getPropMapOrDefault(
|
||||
int key,
|
||||
long defaultValue);
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
|
||||
long getPropMapOrThrow(
|
||||
int key);
|
||||
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 15;</code>
|
||||
* @return The avatarGuid.
|
||||
*/
|
||||
long getAvatarGuid();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1231
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* enum CmdId {
|
||||
* option allow_alias = true;
|
||||
* NONE = 0;
|
||||
* CMD_ID = 1227;
|
||||
* ENET_CHANNEL_ID = 0;
|
||||
* ENET_IS_RELIABLE = 1;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AvatarPropNotify}
|
||||
@@ -111,7 +114,12 @@ public final class AvatarPropNotifyOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 114: {
|
||||
case 8: {
|
||||
|
||||
avatarGuid_ = input.readUInt64();
|
||||
break;
|
||||
}
|
||||
case 66: {
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
propMap_ = com.google.protobuf.MapField.newMapField(
|
||||
PropMapDefaultEntryHolder.defaultEntry);
|
||||
@@ -124,11 +132,6 @@ public final class AvatarPropNotifyOuterClass {
|
||||
propMap__.getKey(), propMap__.getValue());
|
||||
break;
|
||||
}
|
||||
case 120: {
|
||||
|
||||
avatarGuid_ = input.readUInt64();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -158,7 +161,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
protected com.google.protobuf.MapField internalGetMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 14:
|
||||
case 8:
|
||||
return internalGetPropMap();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
@@ -173,7 +176,18 @@ public final class AvatarPropNotifyOuterClass {
|
||||
emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify.class, emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify.Builder.class);
|
||||
}
|
||||
|
||||
public static final int PROP_MAP_FIELD_NUMBER = 14;
|
||||
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 PROP_MAP_FIELD_NUMBER = 8;
|
||||
private static final class PropMapDefaultEntryHolder {
|
||||
static final com.google.protobuf.MapEntry<
|
||||
java.lang.Integer, java.lang.Long> defaultEntry =
|
||||
@@ -200,7 +214,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return internalGetPropMap().getMap().size();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
|
||||
@java.lang.Override
|
||||
@@ -218,7 +232,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return getPropMapMap();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -226,7 +240,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return internalGetPropMap().getMap();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -239,7 +253,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -254,17 +268,6 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return map.get(key);
|
||||
}
|
||||
|
||||
public static final int AVATAR_GUID_FIELD_NUMBER = 15;
|
||||
private long avatarGuid_;
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 15;</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 AvatarPropNotifyOuterClass {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (avatarGuid_ != 0L) {
|
||||
output.writeUInt64(1, avatarGuid_);
|
||||
}
|
||||
com.google.protobuf.GeneratedMessageV3
|
||||
.serializeIntegerMapTo(
|
||||
output,
|
||||
internalGetPropMap(),
|
||||
PropMapDefaultEntryHolder.defaultEntry,
|
||||
14);
|
||||
if (avatarGuid_ != 0L) {
|
||||
output.writeUInt64(15, avatarGuid_);
|
||||
}
|
||||
8);
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@@ -297,6 +300,10 @@ public final class AvatarPropNotifyOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (avatarGuid_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt64Size(1, avatarGuid_);
|
||||
}
|
||||
for (java.util.Map.Entry<java.lang.Integer, java.lang.Long> entry
|
||||
: internalGetPropMap().getMap().entrySet()) {
|
||||
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Long>
|
||||
@@ -305,11 +312,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
.setValue(entry.getValue())
|
||||
.build();
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(14, propMap__);
|
||||
}
|
||||
if (avatarGuid_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt64Size(15, avatarGuid_);
|
||||
.computeMessageSize(8, propMap__);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -326,10 +329,10 @@ public final class AvatarPropNotifyOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify other = (emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify) obj;
|
||||
|
||||
if (!internalGetPropMap().equals(
|
||||
other.internalGetPropMap())) return false;
|
||||
if (getAvatarGuid()
|
||||
!= other.getAvatarGuid()) return false;
|
||||
if (!internalGetPropMap().equals(
|
||||
other.internalGetPropMap())) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -341,13 +344,13 @@ public final class AvatarPropNotifyOuterClass {
|
||||
}
|
||||
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 (!internalGetPropMap().getMap().isEmpty()) {
|
||||
hash = (37 * hash) + PROP_MAP_FIELD_NUMBER;
|
||||
hash = (53 * hash) + internalGetPropMap().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 AvatarPropNotifyOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1231
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* enum CmdId {
|
||||
* option allow_alias = true;
|
||||
* NONE = 0;
|
||||
* CMD_ID = 1227;
|
||||
* ENET_CHANNEL_ID = 0;
|
||||
* ENET_IS_RELIABLE = 1;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AvatarPropNotify}
|
||||
@@ -466,7 +472,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
protected com.google.protobuf.MapField internalGetMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 14:
|
||||
case 8:
|
||||
return internalGetPropMap();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
@@ -477,7 +483,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
protected com.google.protobuf.MapField internalGetMutableMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 14:
|
||||
case 8:
|
||||
return internalGetMutablePropMap();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
@@ -510,9 +516,9 @@ public final class AvatarPropNotifyOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
internalGetMutablePropMap().clear();
|
||||
avatarGuid_ = 0L;
|
||||
|
||||
internalGetMutablePropMap().clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -540,9 +546,9 @@ public final class AvatarPropNotifyOuterClass {
|
||||
public emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify buildPartial() {
|
||||
emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify result = new emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
result.avatarGuid_ = avatarGuid_;
|
||||
result.propMap_ = internalGetPropMap();
|
||||
result.propMap_.makeImmutable();
|
||||
result.avatarGuid_ = avatarGuid_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -591,11 +597,11 @@ public final class AvatarPropNotifyOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify other) {
|
||||
if (other == emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify.getDefaultInstance()) return this;
|
||||
internalGetMutablePropMap().mergeFrom(
|
||||
other.internalGetPropMap());
|
||||
if (other.getAvatarGuid() != 0L) {
|
||||
setAvatarGuid(other.getAvatarGuid());
|
||||
}
|
||||
internalGetMutablePropMap().mergeFrom(
|
||||
other.internalGetPropMap());
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -626,6 +632,37 @@ public final class AvatarPropNotifyOuterClass {
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
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 com.google.protobuf.MapField<
|
||||
java.lang.Integer, java.lang.Long> propMap_;
|
||||
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Long>
|
||||
@@ -653,7 +690,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return internalGetPropMap().getMap().size();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
|
||||
@java.lang.Override
|
||||
@@ -671,7 +708,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return getPropMapMap();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -679,7 +716,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return internalGetPropMap().getMap();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -692,7 +729,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
|
||||
@@ -713,7 +750,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
|
||||
public Builder removePropMap(
|
||||
@@ -732,7 +769,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return internalGetMutablePropMap().getMutableMap();
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
public Builder putPropMap(
|
||||
int key,
|
||||
@@ -744,7 +781,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>map<uint32, int64> prop_map = 14;</code>
|
||||
* <code>map<uint32, int64> prop_map = 8;</code>
|
||||
*/
|
||||
|
||||
public Builder putAllPropMap(
|
||||
@@ -753,37 +790,6 @@ public final class AvatarPropNotifyOuterClass {
|
||||
.putAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
private long avatarGuid_ ;
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 15;</code>
|
||||
* @return The avatarGuid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public long getAvatarGuid() {
|
||||
return avatarGuid_;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 avatar_guid = 15;</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 = 15;</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,8 +863,8 @@ public final class AvatarPropNotifyOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\026AvatarPropNotify.proto\"\211\001\n\020AvatarPropN" +
|
||||
"otify\0220\n\010prop_map\030\016 \003(\0132\036.AvatarPropNoti" +
|
||||
"fy.PropMapEntry\022\023\n\013avatar_guid\030\017 \001(\004\032.\n\014" +
|
||||
"otify\022\023\n\013avatar_guid\030\001 \001(\004\0220\n\010prop_map\030\010" +
|
||||
" \003(\0132\036.AvatarPropNotify.PropMapEntry\032.\n\014" +
|
||||
"PropMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\003" +
|
||||
":\0028\001B\033\n\031emu.grasscutter.net.protob\006proto" +
|
||||
"3"
|
||||
@@ -872,7 +878,7 @@ public final class AvatarPropNotifyOuterClass {
|
||||
internal_static_AvatarPropNotify_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_AvatarPropNotify_descriptor,
|
||||
new java.lang.String[] { "PropMap", "AvatarGuid", });
|
||||
new java.lang.String[] { "AvatarGuid", "PropMap", });
|
||||
internal_static_AvatarPropNotify_PropMapEntry_descriptor =
|
||||
internal_static_AvatarPropNotify_descriptor.getNestedTypes().get(0);
|
||||
internal_static_AvatarPropNotify_PropMapEntry_fieldAccessorTable = new
|
||||
|
||||
Reference in New Issue
Block a user