Add support for game version 3.6 (#2110)

* Update to game version `3.6.0` (pt. 1)

not complete!

* Update to game version `3.6.0` (pt. 2)

not complete!

* Update compiled definitions
This commit is contained in:
Magix
2023-04-30 19:08:54 -07:00
committed by GitHub
Unverified
parent 60e8106b01
commit c4f1208f45
1323 changed files with 434863 additions and 141164 deletions
@@ -19,27 +19,27 @@ public final class PlayerGameTimeNotifyOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>bool is_home = 10;</code>
* @return The isHome.
* <code>uint32 uid = 15;</code>
* @return The uid.
*/
boolean getIsHome();
int getUid();
/**
* <code>uint32 game_time = 14;</code>
* <code>uint32 game_time = 3;</code>
* @return The gameTime.
*/
int getGameTime();
/**
* <code>uint32 uid = 12;</code>
* @return The uid.
* <code>bool is_home = 14;</code>
* @return The isHome.
*/
int getUid();
boolean getIsHome();
}
/**
* <pre>
* Name: ELLGKGBIOFD
* CmdId: 159
* Name: PEAFHFCBPFF
* </pre>
*
* Protobuf type {@code PlayerGameTimeNotify}
@@ -86,19 +86,19 @@ public final class PlayerGameTimeNotifyOuterClass {
case 0:
done = true;
break;
case 80: {
case 24: {
isHome_ = input.readBool();
break;
}
case 96: {
uid_ = input.readUInt32();
gameTime_ = input.readUInt32();
break;
}
case 112: {
gameTime_ = input.readUInt32();
isHome_ = input.readBool();
break;
}
case 120: {
uid_ = input.readUInt32();
break;
}
default: {
@@ -133,21 +133,21 @@ public final class PlayerGameTimeNotifyOuterClass {
emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify.class, emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify.Builder.class);
}
public static final int IS_HOME_FIELD_NUMBER = 10;
private boolean isHome_;
public static final int UID_FIELD_NUMBER = 15;
private int uid_;
/**
* <code>bool is_home = 10;</code>
* @return The isHome.
* <code>uint32 uid = 15;</code>
* @return The uid.
*/
@java.lang.Override
public boolean getIsHome() {
return isHome_;
public int getUid() {
return uid_;
}
public static final int GAME_TIME_FIELD_NUMBER = 14;
public static final int GAME_TIME_FIELD_NUMBER = 3;
private int gameTime_;
/**
* <code>uint32 game_time = 14;</code>
* <code>uint32 game_time = 3;</code>
* @return The gameTime.
*/
@java.lang.Override
@@ -155,15 +155,15 @@ public final class PlayerGameTimeNotifyOuterClass {
return gameTime_;
}
public static final int UID_FIELD_NUMBER = 12;
private int uid_;
public static final int IS_HOME_FIELD_NUMBER = 14;
private boolean isHome_;
/**
* <code>uint32 uid = 12;</code>
* @return The uid.
* <code>bool is_home = 14;</code>
* @return The isHome.
*/
@java.lang.Override
public int getUid() {
return uid_;
public boolean getIsHome() {
return isHome_;
}
private byte memoizedIsInitialized = -1;
@@ -180,14 +180,14 @@ public final class PlayerGameTimeNotifyOuterClass {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (gameTime_ != 0) {
output.writeUInt32(3, gameTime_);
}
if (isHome_ != false) {
output.writeBool(10, isHome_);
output.writeBool(14, isHome_);
}
if (uid_ != 0) {
output.writeUInt32(12, uid_);
}
if (gameTime_ != 0) {
output.writeUInt32(14, gameTime_);
output.writeUInt32(15, uid_);
}
unknownFields.writeTo(output);
}
@@ -198,17 +198,17 @@ public final class PlayerGameTimeNotifyOuterClass {
if (size != -1) return size;
size = 0;
if (gameTime_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, gameTime_);
}
if (isHome_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, isHome_);
.computeBoolSize(14, isHome_);
}
if (uid_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, uid_);
}
if (gameTime_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(14, gameTime_);
.computeUInt32Size(15, uid_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -225,12 +225,12 @@ public final class PlayerGameTimeNotifyOuterClass {
}
emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify other = (emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify) obj;
if (getIsHome()
!= other.getIsHome()) return false;
if (getGameTime()
!= other.getGameTime()) return false;
if (getUid()
!= other.getUid()) return false;
if (getGameTime()
!= other.getGameTime()) return false;
if (getIsHome()
!= other.getIsHome()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -242,13 +242,13 @@ public final class PlayerGameTimeNotifyOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUid();
hash = (37 * hash) + GAME_TIME_FIELD_NUMBER;
hash = (53 * hash) + getGameTime();
hash = (37 * hash) + IS_HOME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsHome());
hash = (37 * hash) + GAME_TIME_FIELD_NUMBER;
hash = (53 * hash) + getGameTime();
hash = (37 * hash) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUid();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -346,8 +346,8 @@ public final class PlayerGameTimeNotifyOuterClass {
}
/**
* <pre>
* Name: ELLGKGBIOFD
* CmdId: 159
* Name: PEAFHFCBPFF
* </pre>
*
* Protobuf type {@code PlayerGameTimeNotify}
@@ -387,11 +387,11 @@ public final class PlayerGameTimeNotifyOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
isHome_ = false;
uid_ = 0;
gameTime_ = 0;
uid_ = 0;
isHome_ = false;
return this;
}
@@ -419,9 +419,9 @@ public final class PlayerGameTimeNotifyOuterClass {
@java.lang.Override
public emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify buildPartial() {
emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify result = new emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify(this);
result.isHome_ = isHome_;
result.gameTime_ = gameTime_;
result.uid_ = uid_;
result.gameTime_ = gameTime_;
result.isHome_ = isHome_;
onBuilt();
return result;
}
@@ -470,14 +470,14 @@ public final class PlayerGameTimeNotifyOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify other) {
if (other == emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify.getDefaultInstance()) return this;
if (other.getIsHome() != false) {
setIsHome(other.getIsHome());
if (other.getUid() != 0) {
setUid(other.getUid());
}
if (other.getGameTime() != 0) {
setGameTime(other.getGameTime());
}
if (other.getUid() != 0) {
setUid(other.getUid());
if (other.getIsHome() != false) {
setIsHome(other.getIsHome());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
@@ -508,71 +508,9 @@ public final class PlayerGameTimeNotifyOuterClass {
return this;
}
private boolean isHome_ ;
/**
* <code>bool is_home = 10;</code>
* @return The isHome.
*/
@java.lang.Override
public boolean getIsHome() {
return isHome_;
}
/**
* <code>bool is_home = 10;</code>
* @param value The isHome to set.
* @return This builder for chaining.
*/
public Builder setIsHome(boolean value) {
isHome_ = value;
onChanged();
return this;
}
/**
* <code>bool is_home = 10;</code>
* @return This builder for chaining.
*/
public Builder clearIsHome() {
isHome_ = false;
onChanged();
return this;
}
private int gameTime_ ;
/**
* <code>uint32 game_time = 14;</code>
* @return The gameTime.
*/
@java.lang.Override
public int getGameTime() {
return gameTime_;
}
/**
* <code>uint32 game_time = 14;</code>
* @param value The gameTime to set.
* @return This builder for chaining.
*/
public Builder setGameTime(int value) {
gameTime_ = value;
onChanged();
return this;
}
/**
* <code>uint32 game_time = 14;</code>
* @return This builder for chaining.
*/
public Builder clearGameTime() {
gameTime_ = 0;
onChanged();
return this;
}
private int uid_ ;
/**
* <code>uint32 uid = 12;</code>
* <code>uint32 uid = 15;</code>
* @return The uid.
*/
@java.lang.Override
@@ -580,7 +518,7 @@ public final class PlayerGameTimeNotifyOuterClass {
return uid_;
}
/**
* <code>uint32 uid = 12;</code>
* <code>uint32 uid = 15;</code>
* @param value The uid to set.
* @return This builder for chaining.
*/
@@ -591,7 +529,7 @@ public final class PlayerGameTimeNotifyOuterClass {
return this;
}
/**
* <code>uint32 uid = 12;</code>
* <code>uint32 uid = 15;</code>
* @return This builder for chaining.
*/
public Builder clearUid() {
@@ -600,6 +538,68 @@ public final class PlayerGameTimeNotifyOuterClass {
onChanged();
return this;
}
private int gameTime_ ;
/**
* <code>uint32 game_time = 3;</code>
* @return The gameTime.
*/
@java.lang.Override
public int getGameTime() {
return gameTime_;
}
/**
* <code>uint32 game_time = 3;</code>
* @param value The gameTime to set.
* @return This builder for chaining.
*/
public Builder setGameTime(int value) {
gameTime_ = value;
onChanged();
return this;
}
/**
* <code>uint32 game_time = 3;</code>
* @return This builder for chaining.
*/
public Builder clearGameTime() {
gameTime_ = 0;
onChanged();
return this;
}
private boolean isHome_ ;
/**
* <code>bool is_home = 14;</code>
* @return The isHome.
*/
@java.lang.Override
public boolean getIsHome() {
return isHome_;
}
/**
* <code>bool is_home = 14;</code>
* @param value The isHome to set.
* @return This builder for chaining.
*/
public Builder setIsHome(boolean value) {
isHome_ = value;
onChanged();
return this;
}
/**
* <code>bool is_home = 14;</code>
* @return This builder for chaining.
*/
public Builder clearIsHome() {
isHome_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -668,8 +668,8 @@ public final class PlayerGameTimeNotifyOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\032PlayerGameTimeNotify.proto\"G\n\024PlayerGa" +
"meTimeNotify\022\017\n\007is_home\030\n \001(\010\022\021\n\tgame_ti" +
"me\030\016 \001(\r\022\013\n\003uid\030\014 \001(\rB\033\n\031emu.grasscutter" +
"meTimeNotify\022\013\n\003uid\030\017 \001(\r\022\021\n\tgame_time\030\003" +
" \001(\r\022\017\n\007is_home\030\016 \001(\010B\033\n\031emu.grasscutter" +
".net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -681,7 +681,7 @@ public final class PlayerGameTimeNotifyOuterClass {
internal_static_PlayerGameTimeNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_PlayerGameTimeNotify_descriptor,
new java.lang.String[] { "IsHome", "GameTime", "Uid", });
new java.lang.String[] { "Uid", "GameTime", "IsHome", });
}
// @@protoc_insertion_point(outer_class_scope)