Add support for v3.5.0 (#2090)

* Fix Dvalin battle

See https://github.com/Anime-Game-Servers/Grasscutter-Quests/pull/25.

This is entirely untested and there's a 99% chance it's broken, I'm just submitting it as a draft PR so that I don't forget about its existence.

Co-Authored-By: mjolsic <21289772+mjolsic@users.noreply.github.com>

* Update protos

* 3.4 protos

* Fix

Now builds successfully, don't have the time to check if I should have specified true instead of false for withChildQuests, or if this functions as intended.

* Change from false to true

Per what smileoflove has been told on Discord

* 3.5

* Remove the Dvalin crap from this PR

Git is so confusing

* Update version

* Apply README changes from `origin/development`

* Remove unnecessary debugging information

---------

Co-authored-by: mjolsic <21289772+mjolsic@users.noreply.github.com>
Co-authored-by: KingRainbow44 <kobedo11@gmail.com>
This commit is contained in:
Colleiflower
2023-03-31 19:13:32 +00:00
committed by GitHub
Unverified
parent 922f7bca51
commit 516e5975e1
1383 changed files with 167226 additions and 586936 deletions
@@ -19,18 +19,23 @@ public final class HostPlayerNotifyOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 hostUid = 4;</code>
* @return The hostUid.
*/
int getHostUid();
/**
* <code>uint32 hostPeerId = 5;</code>
* <code>uint32 host_peer_id = 14;</code>
* @return The hostPeerId.
*/
int getHostPeerId();
/**
* <code>uint32 host_uid = 2;</code>
* @return The hostUid.
*/
int getHostUid();
}
/**
* <pre>
* Name: PMNCOOCIDBM
* CmdId: 354
* </pre>
*
* Protobuf type {@code HostPlayerNotify}
*/
public static final class HostPlayerNotify extends
@@ -75,12 +80,12 @@ public final class HostPlayerNotifyOuterClass {
case 0:
done = true;
break;
case 32: {
case 16: {
hostUid_ = input.readUInt32();
break;
}
case 40: {
case 112: {
hostPeerId_ = input.readUInt32();
break;
@@ -117,152 +122,10 @@ public final class HostPlayerNotifyOuterClass {
emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify.class, emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify.Builder.class);
}
/**
* Protobuf enum {@code HostPlayerNotify.AJDCLIKNOLN}
*/
public enum AJDCLIKNOLN
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>NONE = 0;</code>
*/
NONE(0, 0),
/**
* <code>PEPPOHPHJOJ = 387;</code>
*/
PEPPOHPHJOJ(1, 387),
/**
* <code>NNBKOLMPOEA = 1;</code>
*/
NNBKOLMPOEA(3, 1),
UNRECOGNIZED(-1, -1),
;
/**
* <code>DCDNILFDFLB = 0;</code>
*/
public static final AJDCLIKNOLN DCDNILFDFLB = NONE;
/**
* <code>NONE = 0;</code>
*/
public static final int NONE_VALUE = 0;
/**
* <code>PEPPOHPHJOJ = 387;</code>
*/
public static final int PEPPOHPHJOJ_VALUE = 387;
/**
* <code>DCDNILFDFLB = 0;</code>
*/
public static final int DCDNILFDFLB_VALUE = 0;
/**
* <code>NNBKOLMPOEA = 1;</code>
*/
public static final int NNBKOLMPOEA_VALUE = 1;
public final int getNumber() {
if (index == -1) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AJDCLIKNOLN valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static AJDCLIKNOLN forNumber(int value) {
switch (value) {
case 0: return NONE;
case 387: return PEPPOHPHJOJ;
case 1: return NNBKOLMPOEA;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<AJDCLIKNOLN>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AJDCLIKNOLN> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<AJDCLIKNOLN>() {
public AJDCLIKNOLN findValueByNumber(int number) {
return AJDCLIKNOLN.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (index == -1) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify.getDescriptor().getEnumTypes().get(0);
}
private static final AJDCLIKNOLN[] VALUES = getStaticValuesArray();
private static AJDCLIKNOLN[] getStaticValuesArray() {
return new AJDCLIKNOLN[] {
NONE, PEPPOHPHJOJ, DCDNILFDFLB, NNBKOLMPOEA,
};
}
public static AJDCLIKNOLN valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private AJDCLIKNOLN(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:HostPlayerNotify.AJDCLIKNOLN)
}
public static final int HOSTUID_FIELD_NUMBER = 4;
private int hostUid_;
/**
* <code>uint32 hostUid = 4;</code>
* @return The hostUid.
*/
@java.lang.Override
public int getHostUid() {
return hostUid_;
}
public static final int HOSTPEERID_FIELD_NUMBER = 5;
public static final int HOST_PEER_ID_FIELD_NUMBER = 14;
private int hostPeerId_;
/**
* <code>uint32 hostPeerId = 5;</code>
* <code>uint32 host_peer_id = 14;</code>
* @return The hostPeerId.
*/
@java.lang.Override
@@ -270,6 +133,17 @@ public final class HostPlayerNotifyOuterClass {
return hostPeerId_;
}
public static final int HOST_UID_FIELD_NUMBER = 2;
private int hostUid_;
/**
* <code>uint32 host_uid = 2;</code>
* @return The hostUid.
*/
@java.lang.Override
public int getHostUid() {
return hostUid_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -285,10 +159,10 @@ public final class HostPlayerNotifyOuterClass {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (hostUid_ != 0) {
output.writeUInt32(4, hostUid_);
output.writeUInt32(2, hostUid_);
}
if (hostPeerId_ != 0) {
output.writeUInt32(5, hostPeerId_);
output.writeUInt32(14, hostPeerId_);
}
unknownFields.writeTo(output);
}
@@ -301,11 +175,11 @@ public final class HostPlayerNotifyOuterClass {
size = 0;
if (hostUid_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, hostUid_);
.computeUInt32Size(2, hostUid_);
}
if (hostPeerId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, hostPeerId_);
.computeUInt32Size(14, hostPeerId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -322,10 +196,10 @@ public final class HostPlayerNotifyOuterClass {
}
emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify other = (emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify) obj;
if (getHostUid()
!= other.getHostUid()) return false;
if (getHostPeerId()
!= other.getHostPeerId()) return false;
if (getHostUid()
!= other.getHostUid()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -337,10 +211,10 @@ public final class HostPlayerNotifyOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + HOSTUID_FIELD_NUMBER;
hash = (53 * hash) + getHostUid();
hash = (37 * hash) + HOSTPEERID_FIELD_NUMBER;
hash = (37 * hash) + HOST_PEER_ID_FIELD_NUMBER;
hash = (53 * hash) + getHostPeerId();
hash = (37 * hash) + HOST_UID_FIELD_NUMBER;
hash = (53 * hash) + getHostUid();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -437,6 +311,11 @@ public final class HostPlayerNotifyOuterClass {
return builder;
}
/**
* <pre>
* Name: PMNCOOCIDBM
* CmdId: 354
* </pre>
*
* Protobuf type {@code HostPlayerNotify}
*/
public static final class Builder extends
@@ -474,10 +353,10 @@ public final class HostPlayerNotifyOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
hostUid_ = 0;
hostPeerId_ = 0;
hostUid_ = 0;
return this;
}
@@ -504,8 +383,8 @@ public final class HostPlayerNotifyOuterClass {
@java.lang.Override
public emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify buildPartial() {
emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify result = new emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify(this);
result.hostUid_ = hostUid_;
result.hostPeerId_ = hostPeerId_;
result.hostUid_ = hostUid_;
onBuilt();
return result;
}
@@ -554,12 +433,12 @@ public final class HostPlayerNotifyOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify other) {
if (other == emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify.getDefaultInstance()) return this;
if (other.getHostUid() != 0) {
setHostUid(other.getHostUid());
}
if (other.getHostPeerId() != 0) {
setHostPeerId(other.getHostPeerId());
}
if (other.getHostUid() != 0) {
setHostUid(other.getHostUid());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -589,40 +468,9 @@ public final class HostPlayerNotifyOuterClass {
return this;
}
private int hostUid_ ;
/**
* <code>uint32 hostUid = 4;</code>
* @return The hostUid.
*/
@java.lang.Override
public int getHostUid() {
return hostUid_;
}
/**
* <code>uint32 hostUid = 4;</code>
* @param value The hostUid to set.
* @return This builder for chaining.
*/
public Builder setHostUid(int value) {
hostUid_ = value;
onChanged();
return this;
}
/**
* <code>uint32 hostUid = 4;</code>
* @return This builder for chaining.
*/
public Builder clearHostUid() {
hostUid_ = 0;
onChanged();
return this;
}
private int hostPeerId_ ;
/**
* <code>uint32 hostPeerId = 5;</code>
* <code>uint32 host_peer_id = 14;</code>
* @return The hostPeerId.
*/
@java.lang.Override
@@ -630,7 +478,7 @@ public final class HostPlayerNotifyOuterClass {
return hostPeerId_;
}
/**
* <code>uint32 hostPeerId = 5;</code>
* <code>uint32 host_peer_id = 14;</code>
* @param value The hostPeerId to set.
* @return This builder for chaining.
*/
@@ -641,7 +489,7 @@ public final class HostPlayerNotifyOuterClass {
return this;
}
/**
* <code>uint32 hostPeerId = 5;</code>
* <code>uint32 host_peer_id = 14;</code>
* @return This builder for chaining.
*/
public Builder clearHostPeerId() {
@@ -650,6 +498,37 @@ public final class HostPlayerNotifyOuterClass {
onChanged();
return this;
}
private int hostUid_ ;
/**
* <code>uint32 host_uid = 2;</code>
* @return The hostUid.
*/
@java.lang.Override
public int getHostUid() {
return hostUid_;
}
/**
* <code>uint32 host_uid = 2;</code>
* @param value The hostUid to set.
* @return This builder for chaining.
*/
public Builder setHostUid(int value) {
hostUid_ = value;
onChanged();
return this;
}
/**
* <code>uint32 host_uid = 2;</code>
* @return This builder for chaining.
*/
public Builder clearHostUid() {
hostUid_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -717,11 +596,10 @@ public final class HostPlayerNotifyOuterClass {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\026HostPlayerNotify.proto\"\210\001\n\020HostPlayerN" +
"otify\022\017\n\007hostUid\030\004 \001(\r\022\022\n\nhostPeerId\030\005 \001" +
"(\r\"O\n\013AJDCLIKNOLN\022\010\n\004NONE\020\000\022\020\n\013PEPPOHPHJ" +
"OJ\020\203\003\022\017\n\013DCDNILFDFLB\020\000\022\017\n\013NNBKOLMPOEA\020\001\032" +
"\002\020\001B\033\n\031emu.grasscutter.net.protob\006proto3"
"\n\026HostPlayerNotify.proto\":\n\020HostPlayerNo" +
"tify\022\024\n\014host_peer_id\030\016 \001(\r\022\020\n\010host_uid\030\002" +
" \001(\rB\033\n\031emu.grasscutter.net.protob\006proto" +
"3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -732,7 +610,7 @@ public final class HostPlayerNotifyOuterClass {
internal_static_HostPlayerNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_HostPlayerNotify_descriptor,
new java.lang.String[] { "HostUid", "HostPeerId", });
new java.lang.String[] { "HostPeerId", "HostUid", });
}
// @@protoc_insertion_point(outer_class_scope)