From 10346166eaaaa4d20b86c96b627941d0266e5b1c Mon Sep 17 00:00:00 2001
From: Hiro <84511935+Hiro420@users.noreply.github.com>
Date: Wed, 7 Feb 2024 21:28:09 +0200
Subject: [PATCH] fix bp
---
.../proto/BattlePassInfoNotifyOuterClass.java | 1108 ++++++++++-------
.../recv/HandlerPlayerLoginFinishCsReq.java | 3 +-
2 files changed, 636 insertions(+), 475 deletions(-)
diff --git a/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java b/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java
index ed6597b..557831b 100644
--- a/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java
+++ b/src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java
@@ -21,24 +21,37 @@ public final class BattlePassInfoNotifyOuterClass {
private static final long serialVersionUID = 0L;
/**
- * optional uint64 taken_premium_extended_reward = 2;
+ * optional uint64 taken_premium_reward2 = 1;
*/
- private long takenPremiumExtendedReward;
+ private long takenPremiumReward2;
/**
- * optional uint64 taken_free_extended_reward = 5;
- */
- private long takenFreeExtendedReward;
-
- /**
- * optional uint64 unkfield = 6;
+ *
+ * LOIGEPGJHEK + *+ * + *
optional uint64 unkfield = 2;
*/
private long unkfield;
/**
- * optional uint64 taken_premium_reward2 = 8;
+ * optional uint64 taken_premium_reward1 = 4;
*/
- private long takenPremiumReward2;
+ private long takenPremiumReward1;
+
+ /**
+ * optional uint64 taken_premium_extended_reward = 7;
+ */
+ private long takenPremiumExtendedReward;
+
+ /**
+ * + * KFCJBDNBEEK + *+ * + *
optional uint64 taken_premium_optional_reward = 8;
+ */
+ private long takenPremiumOptionalReward;
/**
* optional uint64 taken_free_reward = 9;
@@ -46,37 +59,45 @@ public final class BattlePassInfoNotifyOuterClass {
private long takenFreeReward;
/**
- * optional uint64 taken_premium_reward1 = 10;
+ * + * PODMLBJMKEJ + *+ * + *
optional uint64 taken_free_extended_reward = 12;
*/
- private long takenPremiumReward1;
+ private long takenFreeExtendedReward;
/**
- * optional uint64 taken_premium_optional_reward = 11;
+ * + * NAMKBIBEMBN + *+ * + *
optional uint64 idk = 14;
*/
- private long takenPremiumOptionalReward;
+ private long idk;
/**
- * optional uint32 exp = 4;
- */
- private int exp;
-
- /**
- * optional uint32 level = 7;
- */
- private int level;
-
- /**
- * optional uint32 cur_bp_id = 14;
- */
- private int curBpId;
-
- /**
- * optional uint32 cur_week_add_exp_sum = 15;
+ * optional uint32 cur_week_add_exp_sum = 3;
*/
private int curWeekAddExpSum;
/**
- * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 1;
+ * optional uint32 cur_bp_id = 5;
+ */
+ private int curBpId;
+
+ /**
+ * optional uint32 exp = 6;
+ */
+ private int exp;
+
+ /**
+ * optional uint32 level = 10;
+ */
+ private int level;
+
+ /**
+ * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 15;
*/
private int bpTierType;
@@ -91,136 +112,25 @@ public final class BattlePassInfoNotifyOuterClass {
}
/**
- * optional uint64 taken_premium_extended_reward = 2;
- * @return whether the takenPremiumExtendedReward field is set
+ * optional uint64 taken_premium_reward2 = 1;
+ * @return whether the takenPremiumReward2 field is set
*/
- public boolean hasTakenPremiumExtendedReward() {
+ public boolean hasTakenPremiumReward2() {
return (bitField0_ & 0x00000001) != 0;
}
/**
- * optional uint64 taken_premium_extended_reward = 2;
- * @return this
- */
- public BattlePassInfoNotify clearTakenPremiumExtendedReward() {
- bitField0_ &= ~0x00000001;
- takenPremiumExtendedReward = 0L;
- return this;
- }
-
- /**
- * optional uint64 taken_premium_extended_reward = 2;
- * @return the takenPremiumExtendedReward
- */
- public long getTakenPremiumExtendedReward() {
- return takenPremiumExtendedReward;
- }
-
- /**
- * optional uint64 taken_premium_extended_reward = 2;
- * @param value the takenPremiumExtendedReward to set
- * @return this
- */
- public BattlePassInfoNotify setTakenPremiumExtendedReward(final long value) {
- bitField0_ |= 0x00000001;
- takenPremiumExtendedReward = value;
- return this;
- }
-
- /**
- * optional uint64 taken_free_extended_reward = 5;
- * @return whether the takenFreeExtendedReward field is set
- */
- public boolean hasTakenFreeExtendedReward() {
- return (bitField0_ & 0x00000002) != 0;
- }
-
- /**
- * optional uint64 taken_free_extended_reward = 5;
- * @return this
- */
- public BattlePassInfoNotify clearTakenFreeExtendedReward() {
- bitField0_ &= ~0x00000002;
- takenFreeExtendedReward = 0L;
- return this;
- }
-
- /**
- * optional uint64 taken_free_extended_reward = 5;
- * @return the takenFreeExtendedReward
- */
- public long getTakenFreeExtendedReward() {
- return takenFreeExtendedReward;
- }
-
- /**
- * optional uint64 taken_free_extended_reward = 5;
- * @param value the takenFreeExtendedReward to set
- * @return this
- */
- public BattlePassInfoNotify setTakenFreeExtendedReward(final long value) {
- bitField0_ |= 0x00000002;
- takenFreeExtendedReward = value;
- return this;
- }
-
- /**
- * optional uint64 unkfield = 6;
- * @return whether the unkfield field is set
- */
- public boolean hasUnkfield() {
- return (bitField0_ & 0x00000004) != 0;
- }
-
- /**
- * optional uint64 unkfield = 6;
- * @return this
- */
- public BattlePassInfoNotify clearUnkfield() {
- bitField0_ &= ~0x00000004;
- unkfield = 0L;
- return this;
- }
-
- /**
- * optional uint64 unkfield = 6;
- * @return the unkfield
- */
- public long getUnkfield() {
- return unkfield;
- }
-
- /**
- * optional uint64 unkfield = 6;
- * @param value the unkfield to set
- * @return this
- */
- public BattlePassInfoNotify setUnkfield(final long value) {
- bitField0_ |= 0x00000004;
- unkfield = value;
- return this;
- }
-
- /**
- * optional uint64 taken_premium_reward2 = 8;
- * @return whether the takenPremiumReward2 field is set
- */
- public boolean hasTakenPremiumReward2() {
- return (bitField0_ & 0x00000008) != 0;
- }
-
- /**
- * optional uint64 taken_premium_reward2 = 8;
+ * optional uint64 taken_premium_reward2 = 1;
* @return this
*/
public BattlePassInfoNotify clearTakenPremiumReward2() {
- bitField0_ &= ~0x00000008;
+ bitField0_ &= ~0x00000001;
takenPremiumReward2 = 0L;
return this;
}
/**
- * optional uint64 taken_premium_reward2 = 8;
+ * optional uint64 taken_premium_reward2 = 1;
* @return the takenPremiumReward2
*/
public long getTakenPremiumReward2() {
@@ -228,22 +138,202 @@ public final class BattlePassInfoNotifyOuterClass {
}
/**
- * optional uint64 taken_premium_reward2 = 8;
+ * optional uint64 taken_premium_reward2 = 1;
* @param value the takenPremiumReward2 to set
* @return this
*/
public BattlePassInfoNotify setTakenPremiumReward2(final long value) {
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000001;
takenPremiumReward2 = value;
return this;
}
+ /**
+ * + * LOIGEPGJHEK + *+ * + *
optional uint64 unkfield = 2;
+ * @return whether the unkfield field is set
+ */
+ public boolean hasUnkfield() {
+ return (bitField0_ & 0x00000002) != 0;
+ }
+
+ /**
+ * + * LOIGEPGJHEK + *+ * + *
optional uint64 unkfield = 2;
+ * @return this
+ */
+ public BattlePassInfoNotify clearUnkfield() {
+ bitField0_ &= ~0x00000002;
+ unkfield = 0L;
+ return this;
+ }
+
+ /**
+ * + * LOIGEPGJHEK + *+ * + *
optional uint64 unkfield = 2;
+ * @return the unkfield
+ */
+ public long getUnkfield() {
+ return unkfield;
+ }
+
+ /**
+ * + * LOIGEPGJHEK + *+ * + *
optional uint64 unkfield = 2;
+ * @param value the unkfield to set
+ * @return this
+ */
+ public BattlePassInfoNotify setUnkfield(final long value) {
+ bitField0_ |= 0x00000002;
+ unkfield = value;
+ return this;
+ }
+
+ /**
+ * optional uint64 taken_premium_reward1 = 4;
+ * @return whether the takenPremiumReward1 field is set
+ */
+ public boolean hasTakenPremiumReward1() {
+ return (bitField0_ & 0x00000004) != 0;
+ }
+
+ /**
+ * optional uint64 taken_premium_reward1 = 4;
+ * @return this
+ */
+ public BattlePassInfoNotify clearTakenPremiumReward1() {
+ bitField0_ &= ~0x00000004;
+ takenPremiumReward1 = 0L;
+ return this;
+ }
+
+ /**
+ * optional uint64 taken_premium_reward1 = 4;
+ * @return the takenPremiumReward1
+ */
+ public long getTakenPremiumReward1() {
+ return takenPremiumReward1;
+ }
+
+ /**
+ * optional uint64 taken_premium_reward1 = 4;
+ * @param value the takenPremiumReward1 to set
+ * @return this
+ */
+ public BattlePassInfoNotify setTakenPremiumReward1(final long value) {
+ bitField0_ |= 0x00000004;
+ takenPremiumReward1 = value;
+ return this;
+ }
+
+ /**
+ * optional uint64 taken_premium_extended_reward = 7;
+ * @return whether the takenPremiumExtendedReward field is set
+ */
+ public boolean hasTakenPremiumExtendedReward() {
+ return (bitField0_ & 0x00000008) != 0;
+ }
+
+ /**
+ * optional uint64 taken_premium_extended_reward = 7;
+ * @return this
+ */
+ public BattlePassInfoNotify clearTakenPremiumExtendedReward() {
+ bitField0_ &= ~0x00000008;
+ takenPremiumExtendedReward = 0L;
+ return this;
+ }
+
+ /**
+ * optional uint64 taken_premium_extended_reward = 7;
+ * @return the takenPremiumExtendedReward
+ */
+ public long getTakenPremiumExtendedReward() {
+ return takenPremiumExtendedReward;
+ }
+
+ /**
+ * optional uint64 taken_premium_extended_reward = 7;
+ * @param value the takenPremiumExtendedReward to set
+ * @return this
+ */
+ public BattlePassInfoNotify setTakenPremiumExtendedReward(final long value) {
+ bitField0_ |= 0x00000008;
+ takenPremiumExtendedReward = value;
+ return this;
+ }
+
+ /**
+ * + * KFCJBDNBEEK + *+ * + *
optional uint64 taken_premium_optional_reward = 8;
+ * @return whether the takenPremiumOptionalReward field is set
+ */
+ public boolean hasTakenPremiumOptionalReward() {
+ return (bitField0_ & 0x00000010) != 0;
+ }
+
+ /**
+ * + * KFCJBDNBEEK + *+ * + *
optional uint64 taken_premium_optional_reward = 8;
+ * @return this
+ */
+ public BattlePassInfoNotify clearTakenPremiumOptionalReward() {
+ bitField0_ &= ~0x00000010;
+ takenPremiumOptionalReward = 0L;
+ return this;
+ }
+
+ /**
+ * + * KFCJBDNBEEK + *+ * + *
optional uint64 taken_premium_optional_reward = 8;
+ * @return the takenPremiumOptionalReward
+ */
+ public long getTakenPremiumOptionalReward() {
+ return takenPremiumOptionalReward;
+ }
+
+ /**
+ * + * KFCJBDNBEEK + *+ * + *
optional uint64 taken_premium_optional_reward = 8;
+ * @param value the takenPremiumOptionalReward to set
+ * @return this
+ */
+ public BattlePassInfoNotify setTakenPremiumOptionalReward(final long value) {
+ bitField0_ |= 0x00000010;
+ takenPremiumOptionalReward = value;
+ return this;
+ }
+
/**
* optional uint64 taken_free_reward = 9;
* @return whether the takenFreeReward field is set
*/
public boolean hasTakenFreeReward() {
- return (bitField0_ & 0x00000010) != 0;
+ return (bitField0_ & 0x00000020) != 0;
}
/**
@@ -251,7 +341,7 @@ public final class BattlePassInfoNotifyOuterClass {
* @return this
*/
public BattlePassInfoNotify clearTakenFreeReward() {
- bitField0_ &= ~0x00000010;
+ bitField0_ &= ~0x00000020;
takenFreeReward = 0L;
return this;
}
@@ -270,161 +360,156 @@ public final class BattlePassInfoNotifyOuterClass {
* @return this
*/
public BattlePassInfoNotify setTakenFreeReward(final long value) {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000020;
takenFreeReward = value;
return this;
}
/**
- * optional uint64 taken_premium_reward1 = 10;
- * @return whether the takenPremiumReward1 field is set
+ * + * PODMLBJMKEJ + *+ * + *
optional uint64 taken_free_extended_reward = 12;
+ * @return whether the takenFreeExtendedReward field is set
*/
- public boolean hasTakenPremiumReward1() {
- return (bitField0_ & 0x00000020) != 0;
- }
-
- /**
- * optional uint64 taken_premium_reward1 = 10;
- * @return this
- */
- public BattlePassInfoNotify clearTakenPremiumReward1() {
- bitField0_ &= ~0x00000020;
- takenPremiumReward1 = 0L;
- return this;
- }
-
- /**
- * optional uint64 taken_premium_reward1 = 10;
- * @return the takenPremiumReward1
- */
- public long getTakenPremiumReward1() {
- return takenPremiumReward1;
- }
-
- /**
- * optional uint64 taken_premium_reward1 = 10;
- * @param value the takenPremiumReward1 to set
- * @return this
- */
- public BattlePassInfoNotify setTakenPremiumReward1(final long value) {
- bitField0_ |= 0x00000020;
- takenPremiumReward1 = value;
- return this;
- }
-
- /**
- * optional uint64 taken_premium_optional_reward = 11;
- * @return whether the takenPremiumOptionalReward field is set
- */
- public boolean hasTakenPremiumOptionalReward() {
+ public boolean hasTakenFreeExtendedReward() {
return (bitField0_ & 0x00000040) != 0;
}
/**
- * optional uint64 taken_premium_optional_reward = 11;
+ * + * PODMLBJMKEJ + *+ * + *
optional uint64 taken_free_extended_reward = 12;
* @return this
*/
- public BattlePassInfoNotify clearTakenPremiumOptionalReward() {
+ public BattlePassInfoNotify clearTakenFreeExtendedReward() {
bitField0_ &= ~0x00000040;
- takenPremiumOptionalReward = 0L;
+ takenFreeExtendedReward = 0L;
return this;
}
/**
- * optional uint64 taken_premium_optional_reward = 11;
- * @return the takenPremiumOptionalReward
+ * + * PODMLBJMKEJ + *+ * + *
optional uint64 taken_free_extended_reward = 12;
+ * @return the takenFreeExtendedReward
*/
- public long getTakenPremiumOptionalReward() {
- return takenPremiumOptionalReward;
+ public long getTakenFreeExtendedReward() {
+ return takenFreeExtendedReward;
}
/**
- * optional uint64 taken_premium_optional_reward = 11;
- * @param value the takenPremiumOptionalReward to set
+ * + * PODMLBJMKEJ + *+ * + *
optional uint64 taken_free_extended_reward = 12;
+ * @param value the takenFreeExtendedReward to set
* @return this
*/
- public BattlePassInfoNotify setTakenPremiumOptionalReward(final long value) {
+ public BattlePassInfoNotify setTakenFreeExtendedReward(final long value) {
bitField0_ |= 0x00000040;
- takenPremiumOptionalReward = value;
+ takenFreeExtendedReward = value;
return this;
}
/**
- * optional uint32 exp = 4;
- * @return whether the exp field is set
+ * + * NAMKBIBEMBN + *+ * + *
optional uint64 idk = 14;
+ * @return whether the idk field is set
*/
- public boolean hasExp() {
+ public boolean hasIdk() {
return (bitField0_ & 0x00000080) != 0;
}
/**
- * optional uint32 exp = 4;
+ * + * NAMKBIBEMBN + *+ * + *
optional uint64 idk = 14;
* @return this
*/
- public BattlePassInfoNotify clearExp() {
+ public BattlePassInfoNotify clearIdk() {
bitField0_ &= ~0x00000080;
- exp = 0;
+ idk = 0L;
return this;
}
/**
- * optional uint32 exp = 4;
- * @return the exp
+ * + * NAMKBIBEMBN + *+ * + *
optional uint64 idk = 14;
+ * @return the idk
*/
- public int getExp() {
- return exp;
+ public long getIdk() {
+ return idk;
}
/**
- * optional uint32 exp = 4;
- * @param value the exp to set
+ * + * NAMKBIBEMBN + *+ * + *
optional uint64 idk = 14;
+ * @param value the idk to set
* @return this
*/
- public BattlePassInfoNotify setExp(final int value) {
+ public BattlePassInfoNotify setIdk(final long value) {
bitField0_ |= 0x00000080;
- exp = value;
+ idk = value;
return this;
}
/**
- * optional uint32 level = 7;
- * @return whether the level field is set
+ * optional uint32 cur_week_add_exp_sum = 3;
+ * @return whether the curWeekAddExpSum field is set
*/
- public boolean hasLevel() {
+ public boolean hasCurWeekAddExpSum() {
return (bitField0_ & 0x00000100) != 0;
}
/**
- * optional uint32 level = 7;
+ * optional uint32 cur_week_add_exp_sum = 3;
* @return this
*/
- public BattlePassInfoNotify clearLevel() {
+ public BattlePassInfoNotify clearCurWeekAddExpSum() {
bitField0_ &= ~0x00000100;
- level = 0;
+ curWeekAddExpSum = 0;
return this;
}
/**
- * optional uint32 level = 7;
- * @return the level
+ * optional uint32 cur_week_add_exp_sum = 3;
+ * @return the curWeekAddExpSum
*/
- public int getLevel() {
- return level;
+ public int getCurWeekAddExpSum() {
+ return curWeekAddExpSum;
}
/**
- * optional uint32 level = 7;
- * @param value the level to set
+ * optional uint32 cur_week_add_exp_sum = 3;
+ * @param value the curWeekAddExpSum to set
* @return this
*/
- public BattlePassInfoNotify setLevel(final int value) {
+ public BattlePassInfoNotify setCurWeekAddExpSum(final int value) {
bitField0_ |= 0x00000100;
- level = value;
+ curWeekAddExpSum = value;
return this;
}
/**
- * optional uint32 cur_bp_id = 14;
+ * optional uint32 cur_bp_id = 5;
* @return whether the curBpId field is set
*/
public boolean hasCurBpId() {
@@ -432,7 +517,7 @@ public final class BattlePassInfoNotifyOuterClass {
}
/**
- * optional uint32 cur_bp_id = 14;
+ * optional uint32 cur_bp_id = 5;
* @return this
*/
public BattlePassInfoNotify clearCurBpId() {
@@ -442,7 +527,7 @@ public final class BattlePassInfoNotifyOuterClass {
}
/**
- * optional uint32 cur_bp_id = 14;
+ * optional uint32 cur_bp_id = 5;
* @return the curBpId
*/
public int getCurBpId() {
@@ -450,7 +535,7 @@ public final class BattlePassInfoNotifyOuterClass {
}
/**
- * optional uint32 cur_bp_id = 14;
+ * optional uint32 cur_bp_id = 5;
* @param value the curBpId to set
* @return this
*/
@@ -461,62 +546,99 @@ public final class BattlePassInfoNotifyOuterClass {
}
/**
- * optional uint32 cur_week_add_exp_sum = 15;
- * @return whether the curWeekAddExpSum field is set
+ * optional uint32 exp = 6;
+ * @return whether the exp field is set
*/
- public boolean hasCurWeekAddExpSum() {
+ public boolean hasExp() {
return (bitField0_ & 0x00000400) != 0;
}
/**
- * optional uint32 cur_week_add_exp_sum = 15;
+ * optional uint32 exp = 6;
* @return this
*/
- public BattlePassInfoNotify clearCurWeekAddExpSum() {
+ public BattlePassInfoNotify clearExp() {
bitField0_ &= ~0x00000400;
- curWeekAddExpSum = 0;
+ exp = 0;
return this;
}
/**
- * optional uint32 cur_week_add_exp_sum = 15;
- * @return the curWeekAddExpSum
+ * optional uint32 exp = 6;
+ * @return the exp
*/
- public int getCurWeekAddExpSum() {
- return curWeekAddExpSum;
+ public int getExp() {
+ return exp;
}
/**
- * optional uint32 cur_week_add_exp_sum = 15;
- * @param value the curWeekAddExpSum to set
+ * optional uint32 exp = 6;
+ * @param value the exp to set
* @return this
*/
- public BattlePassInfoNotify setCurWeekAddExpSum(final int value) {
+ public BattlePassInfoNotify setExp(final int value) {
bitField0_ |= 0x00000400;
- curWeekAddExpSum = value;
+ exp = value;
return this;
}
/**
- * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 1;
- * @return whether the bpTierType field is set
+ * optional uint32 level = 10;
+ * @return whether the level field is set
*/
- public boolean hasBpTierType() {
+ public boolean hasLevel() {
return (bitField0_ & 0x00000800) != 0;
}
/**
- * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 1;
+ * optional uint32 level = 10;
+ * @return this
+ */
+ public BattlePassInfoNotify clearLevel() {
+ bitField0_ &= ~0x00000800;
+ level = 0;
+ return this;
+ }
+
+ /**
+ * optional uint32 level = 10;
+ * @return the level
+ */
+ public int getLevel() {
+ return level;
+ }
+
+ /**
+ * optional uint32 level = 10;
+ * @param value the level to set
+ * @return this
+ */
+ public BattlePassInfoNotify setLevel(final int value) {
+ bitField0_ |= 0x00000800;
+ level = value;
+ return this;
+ }
+
+ /**
+ * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 15;
+ * @return whether the bpTierType field is set
+ */
+ public boolean hasBpTierType() {
+ return (bitField0_ & 0x00001000) != 0;
+ }
+
+ /**
+ * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 15;
* @return this
*/
public BattlePassInfoNotify clearBpTierType() {
- bitField0_ &= ~0x00000800;
+ bitField0_ &= ~0x00001000;
bpTierType = 0;
return this;
}
/**
- * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 1;
+ * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 15;
* @return the bpTierType
*/
public BpTierType getBpTierType() {
@@ -543,18 +665,18 @@ public final class BattlePassInfoNotifyOuterClass {
* @return this
*/
public BattlePassInfoNotify setBpTierTypeValue(final int value) {
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
bpTierType = value;
return this;
}
/**
- * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 1;
+ * optional .BattlePassInfoNotify.BpTierType bp_tier_type = 15;
* @param value the bpTierType to set
* @return this
*/
public BattlePassInfoNotify setBpTierType(final BpTierType value) {
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
bpTierType = value.getNumber();
return this;
}
@@ -564,17 +686,18 @@ public final class BattlePassInfoNotifyOuterClass {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
- takenPremiumExtendedReward = other.takenPremiumExtendedReward;
- takenFreeExtendedReward = other.takenFreeExtendedReward;
- unkfield = other.unkfield;
takenPremiumReward2 = other.takenPremiumReward2;
- takenFreeReward = other.takenFreeReward;
+ unkfield = other.unkfield;
takenPremiumReward1 = other.takenPremiumReward1;
+ takenPremiumExtendedReward = other.takenPremiumExtendedReward;
takenPremiumOptionalReward = other.takenPremiumOptionalReward;
+ takenFreeReward = other.takenFreeReward;
+ takenFreeExtendedReward = other.takenFreeExtendedReward;
+ idk = other.idk;
+ curWeekAddExpSum = other.curWeekAddExpSum;
+ curBpId = other.curBpId;
exp = other.exp;
level = other.level;
- curBpId = other.curBpId;
- curWeekAddExpSum = other.curWeekAddExpSum;
bpTierType = other.bpTierType;
}
return this;
@@ -586,26 +709,35 @@ public final class BattlePassInfoNotifyOuterClass {
return this;
}
cachedSize = -1;
- if (other.hasTakenPremiumExtendedReward()) {
- setTakenPremiumExtendedReward(other.takenPremiumExtendedReward);
- }
- if (other.hasTakenFreeExtendedReward()) {
- setTakenFreeExtendedReward(other.takenFreeExtendedReward);
+ if (other.hasTakenPremiumReward2()) {
+ setTakenPremiumReward2(other.takenPremiumReward2);
}
if (other.hasUnkfield()) {
setUnkfield(other.unkfield);
}
- if (other.hasTakenPremiumReward2()) {
- setTakenPremiumReward2(other.takenPremiumReward2);
+ if (other.hasTakenPremiumReward1()) {
+ setTakenPremiumReward1(other.takenPremiumReward1);
+ }
+ if (other.hasTakenPremiumExtendedReward()) {
+ setTakenPremiumExtendedReward(other.takenPremiumExtendedReward);
+ }
+ if (other.hasTakenPremiumOptionalReward()) {
+ setTakenPremiumOptionalReward(other.takenPremiumOptionalReward);
}
if (other.hasTakenFreeReward()) {
setTakenFreeReward(other.takenFreeReward);
}
- if (other.hasTakenPremiumReward1()) {
- setTakenPremiumReward1(other.takenPremiumReward1);
+ if (other.hasTakenFreeExtendedReward()) {
+ setTakenFreeExtendedReward(other.takenFreeExtendedReward);
}
- if (other.hasTakenPremiumOptionalReward()) {
- setTakenPremiumOptionalReward(other.takenPremiumOptionalReward);
+ if (other.hasIdk()) {
+ setIdk(other.idk);
+ }
+ if (other.hasCurWeekAddExpSum()) {
+ setCurWeekAddExpSum(other.curWeekAddExpSum);
+ }
+ if (other.hasCurBpId()) {
+ setCurBpId(other.curBpId);
}
if (other.hasExp()) {
setExp(other.exp);
@@ -613,12 +745,6 @@ public final class BattlePassInfoNotifyOuterClass {
if (other.hasLevel()) {
setLevel(other.level);
}
- if (other.hasCurBpId()) {
- setCurBpId(other.curBpId);
- }
- if (other.hasCurWeekAddExpSum()) {
- setCurWeekAddExpSum(other.curWeekAddExpSum);
- }
if (other.hasBpTierType()) {
setBpTierTypeValue(other.bpTierType);
}
@@ -632,17 +758,18 @@ public final class BattlePassInfoNotifyOuterClass {
}
cachedSize = -1;
bitField0_ = 0;
- takenPremiumExtendedReward = 0L;
- takenFreeExtendedReward = 0L;
- unkfield = 0L;
takenPremiumReward2 = 0L;
- takenFreeReward = 0L;
+ unkfield = 0L;
takenPremiumReward1 = 0L;
+ takenPremiumExtendedReward = 0L;
takenPremiumOptionalReward = 0L;
+ takenFreeReward = 0L;
+ takenFreeExtendedReward = 0L;
+ idk = 0L;
+ curWeekAddExpSum = 0;
+ curBpId = 0;
exp = 0;
level = 0;
- curBpId = 0;
- curWeekAddExpSum = 0;
bpTierType = 0;
return this;
}
@@ -667,68 +794,73 @@ public final class BattlePassInfoNotifyOuterClass {
}
BattlePassInfoNotify other = (BattlePassInfoNotify) o;
return bitField0_ == other.bitField0_
- && (!hasTakenPremiumExtendedReward() || takenPremiumExtendedReward == other.takenPremiumExtendedReward)
- && (!hasTakenFreeExtendedReward() || takenFreeExtendedReward == other.takenFreeExtendedReward)
- && (!hasUnkfield() || unkfield == other.unkfield)
&& (!hasTakenPremiumReward2() || takenPremiumReward2 == other.takenPremiumReward2)
- && (!hasTakenFreeReward() || takenFreeReward == other.takenFreeReward)
+ && (!hasUnkfield() || unkfield == other.unkfield)
&& (!hasTakenPremiumReward1() || takenPremiumReward1 == other.takenPremiumReward1)
+ && (!hasTakenPremiumExtendedReward() || takenPremiumExtendedReward == other.takenPremiumExtendedReward)
&& (!hasTakenPremiumOptionalReward() || takenPremiumOptionalReward == other.takenPremiumOptionalReward)
+ && (!hasTakenFreeReward() || takenFreeReward == other.takenFreeReward)
+ && (!hasTakenFreeExtendedReward() || takenFreeExtendedReward == other.takenFreeExtendedReward)
+ && (!hasIdk() || idk == other.idk)
+ && (!hasCurWeekAddExpSum() || curWeekAddExpSum == other.curWeekAddExpSum)
+ && (!hasCurBpId() || curBpId == other.curBpId)
&& (!hasExp() || exp == other.exp)
&& (!hasLevel() || level == other.level)
- && (!hasCurBpId() || curBpId == other.curBpId)
- && (!hasCurWeekAddExpSum() || curWeekAddExpSum == other.curWeekAddExpSum)
&& (!hasBpTierType() || bpTierType == other.bpTierType);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
- output.writeRawByte((byte) 16);
- output.writeUInt64NoTag(takenPremiumExtendedReward);
- }
- if ((bitField0_ & 0x00000002) != 0) {
- output.writeRawByte((byte) 40);
- output.writeUInt64NoTag(takenFreeExtendedReward);
- }
- if ((bitField0_ & 0x00000004) != 0) {
- output.writeRawByte((byte) 48);
- output.writeUInt64NoTag(unkfield);
- }
- if ((bitField0_ & 0x00000008) != 0) {
- output.writeRawByte((byte) 64);
+ output.writeRawByte((byte) 8);
output.writeUInt64NoTag(takenPremiumReward2);
}
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeRawByte((byte) 16);
+ output.writeUInt64NoTag(unkfield);
+ }
+ if ((bitField0_ & 0x00000004) != 0) {
+ output.writeRawByte((byte) 32);
+ output.writeUInt64NoTag(takenPremiumReward1);
+ }
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeRawByte((byte) 56);
+ output.writeUInt64NoTag(takenPremiumExtendedReward);
+ }
if ((bitField0_ & 0x00000010) != 0) {
+ output.writeRawByte((byte) 64);
+ output.writeUInt64NoTag(takenPremiumOptionalReward);
+ }
+ if ((bitField0_ & 0x00000020) != 0) {
output.writeRawByte((byte) 72);
output.writeUInt64NoTag(takenFreeReward);
}
- if ((bitField0_ & 0x00000020) != 0) {
- output.writeRawByte((byte) 80);
- output.writeUInt64NoTag(takenPremiumReward1);
- }
if ((bitField0_ & 0x00000040) != 0) {
- output.writeRawByte((byte) 88);
- output.writeUInt64NoTag(takenPremiumOptionalReward);
+ output.writeRawByte((byte) 96);
+ output.writeUInt64NoTag(takenFreeExtendedReward);
}
if ((bitField0_ & 0x00000080) != 0) {
- output.writeRawByte((byte) 32);
- output.writeUInt32NoTag(exp);
+ output.writeRawByte((byte) 112);
+ output.writeUInt64NoTag(idk);
}
if ((bitField0_ & 0x00000100) != 0) {
- output.writeRawByte((byte) 56);
- output.writeUInt32NoTag(level);
+ output.writeRawByte((byte) 24);
+ output.writeUInt32NoTag(curWeekAddExpSum);
}
if ((bitField0_ & 0x00000200) != 0) {
- output.writeRawByte((byte) 112);
+ output.writeRawByte((byte) 40);
output.writeUInt32NoTag(curBpId);
}
if ((bitField0_ & 0x00000400) != 0) {
- output.writeRawByte((byte) 120);
- output.writeUInt32NoTag(curWeekAddExpSum);
+ output.writeRawByte((byte) 48);
+ output.writeUInt32NoTag(exp);
}
if ((bitField0_ & 0x00000800) != 0) {
- output.writeRawByte((byte) 8);
+ output.writeRawByte((byte) 80);
+ output.writeUInt32NoTag(level);
+ }
+ if ((bitField0_ & 0x00001000) != 0) {
+ output.writeRawByte((byte) 120);
output.writeEnumNoTag(bpTierType);
}
}
@@ -737,39 +869,42 @@ public final class BattlePassInfoNotifyOuterClass {
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
- size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumExtendedReward);
- }
- if ((bitField0_ & 0x00000002) != 0) {
- size += 1 + ProtoSink.computeUInt64SizeNoTag(takenFreeExtendedReward);
- }
- if ((bitField0_ & 0x00000004) != 0) {
- size += 1 + ProtoSink.computeUInt64SizeNoTag(unkfield);
- }
- if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumReward2);
}
- if ((bitField0_ & 0x00000010) != 0) {
- size += 1 + ProtoSink.computeUInt64SizeNoTag(takenFreeReward);
+ if ((bitField0_ & 0x00000002) != 0) {
+ size += 1 + ProtoSink.computeUInt64SizeNoTag(unkfield);
}
- if ((bitField0_ & 0x00000020) != 0) {
+ if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumReward1);
}
- if ((bitField0_ & 0x00000040) != 0) {
+ if ((bitField0_ & 0x00000008) != 0) {
+ size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumExtendedReward);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
size += 1 + ProtoSink.computeUInt64SizeNoTag(takenPremiumOptionalReward);
}
+ if ((bitField0_ & 0x00000020) != 0) {
+ size += 1 + ProtoSink.computeUInt64SizeNoTag(takenFreeReward);
+ }
+ if ((bitField0_ & 0x00000040) != 0) {
+ size += 1 + ProtoSink.computeUInt64SizeNoTag(takenFreeExtendedReward);
+ }
if ((bitField0_ & 0x00000080) != 0) {
- size += 1 + ProtoSink.computeUInt32SizeNoTag(exp);
+ size += 1 + ProtoSink.computeUInt64SizeNoTag(idk);
}
if ((bitField0_ & 0x00000100) != 0) {
- size += 1 + ProtoSink.computeUInt32SizeNoTag(level);
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(curWeekAddExpSum);
}
if ((bitField0_ & 0x00000200) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(curBpId);
}
if ((bitField0_ & 0x00000400) != 0) {
- size += 1 + ProtoSink.computeUInt32SizeNoTag(curWeekAddExpSum);
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(exp);
}
if ((bitField0_ & 0x00000800) != 0) {
+ size += 1 + ProtoSink.computeUInt32SizeNoTag(level);
+ }
+ if ((bitField0_ & 0x00001000) != 0) {
size += 1 + ProtoSink.computeEnumSizeNoTag(bpTierType);
}
return size;
@@ -782,37 +917,46 @@ public final class BattlePassInfoNotifyOuterClass {
int tag = input.readTag();
while (true) {
switch (tag) {
- case 16: {
- // takenPremiumExtendedReward
- takenPremiumExtendedReward = input.readUInt64();
+ case 8: {
+ // takenPremiumReward2
+ takenPremiumReward2 = input.readUInt64();
bitField0_ |= 0x00000001;
tag = input.readTag();
- if (tag != 40) {
+ if (tag != 16) {
break;
}
}
- case 40: {
- // takenFreeExtendedReward
- takenFreeExtendedReward = input.readUInt64();
- bitField0_ |= 0x00000002;
- tag = input.readTag();
- if (tag != 48) {
- break;
- }
- }
- case 48: {
+ case 16: {
// unkfield
unkfield = input.readUInt64();
+ bitField0_ |= 0x00000002;
+ tag = input.readTag();
+ if (tag != 32) {
+ break;
+ }
+ }
+ case 32: {
+ // takenPremiumReward1
+ takenPremiumReward1 = input.readUInt64();
bitField0_ |= 0x00000004;
tag = input.readTag();
+ if (tag != 56) {
+ break;
+ }
+ }
+ case 56: {
+ // takenPremiumExtendedReward
+ takenPremiumExtendedReward = input.readUInt64();
+ bitField0_ |= 0x00000008;
+ tag = input.readTag();
if (tag != 64) {
break;
}
}
case 64: {
- // takenPremiumReward2
- takenPremiumReward2 = input.readUInt64();
- bitField0_ |= 0x00000008;
+ // takenPremiumOptionalReward
+ takenPremiumOptionalReward = input.readUInt64();
+ bitField0_ |= 0x00000010;
tag = input.readTag();
if (tag != 72) {
break;
@@ -821,72 +965,72 @@ public final class BattlePassInfoNotifyOuterClass {
case 72: {
// takenFreeReward
takenFreeReward = input.readUInt64();
- bitField0_ |= 0x00000010;
- tag = input.readTag();
- if (tag != 80) {
- break;
- }
- }
- case 80: {
- // takenPremiumReward1
- takenPremiumReward1 = input.readUInt64();
bitField0_ |= 0x00000020;
tag = input.readTag();
- if (tag != 88) {
+ if (tag != 96) {
break;
}
}
- case 88: {
- // takenPremiumOptionalReward
- takenPremiumOptionalReward = input.readUInt64();
+ case 96: {
+ // takenFreeExtendedReward
+ takenFreeExtendedReward = input.readUInt64();
bitField0_ |= 0x00000040;
tag = input.readTag();
- if (tag != 32) {
- break;
- }
- }
- case 32: {
- // exp
- exp = input.readUInt32();
- bitField0_ |= 0x00000080;
- tag = input.readTag();
- if (tag != 56) {
- break;
- }
- }
- case 56: {
- // level
- level = input.readUInt32();
- bitField0_ |= 0x00000100;
- tag = input.readTag();
if (tag != 112) {
break;
}
}
case 112: {
+ // idk
+ idk = input.readUInt64();
+ bitField0_ |= 0x00000080;
+ tag = input.readTag();
+ if (tag != 24) {
+ break;
+ }
+ }
+ case 24: {
+ // curWeekAddExpSum
+ curWeekAddExpSum = input.readUInt32();
+ bitField0_ |= 0x00000100;
+ tag = input.readTag();
+ if (tag != 40) {
+ break;
+ }
+ }
+ case 40: {
// curBpId
curBpId = input.readUInt32();
bitField0_ |= 0x00000200;
tag = input.readTag();
+ if (tag != 48) {
+ break;
+ }
+ }
+ case 48: {
+ // exp
+ exp = input.readUInt32();
+ bitField0_ |= 0x00000400;
+ tag = input.readTag();
+ if (tag != 80) {
+ break;
+ }
+ }
+ case 80: {
+ // level
+ level = input.readUInt32();
+ bitField0_ |= 0x00000800;
+ tag = input.readTag();
if (tag != 120) {
break;
}
}
case 120: {
- // curWeekAddExpSum
- curWeekAddExpSum = input.readUInt32();
- bitField0_ |= 0x00000400;
- tag = input.readTag();
- if (tag != 8) {
- break;
- }
- }
- case 8: {
// bpTierType
final int value = input.readInt32();
if (BpTierType.forNumber(value) != null) {
bpTierType = value;
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
}
tag = input.readTag();
if (tag != 0) {
@@ -911,39 +1055,42 @@ public final class BattlePassInfoNotifyOuterClass {
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
- output.writeUInt64(FieldNames.takenPremiumExtendedReward, takenPremiumExtendedReward);
- }
- if ((bitField0_ & 0x00000002) != 0) {
- output.writeUInt64(FieldNames.takenFreeExtendedReward, takenFreeExtendedReward);
- }
- if ((bitField0_ & 0x00000004) != 0) {
- output.writeUInt64(FieldNames.unkfield, unkfield);
- }
- if ((bitField0_ & 0x00000008) != 0) {
output.writeUInt64(FieldNames.takenPremiumReward2, takenPremiumReward2);
}
- if ((bitField0_ & 0x00000010) != 0) {
- output.writeUInt64(FieldNames.takenFreeReward, takenFreeReward);
+ if ((bitField0_ & 0x00000002) != 0) {
+ output.writeUInt64(FieldNames.unkfield, unkfield);
}
- if ((bitField0_ & 0x00000020) != 0) {
+ if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt64(FieldNames.takenPremiumReward1, takenPremiumReward1);
}
- if ((bitField0_ & 0x00000040) != 0) {
+ if ((bitField0_ & 0x00000008) != 0) {
+ output.writeUInt64(FieldNames.takenPremiumExtendedReward, takenPremiumExtendedReward);
+ }
+ if ((bitField0_ & 0x00000010) != 0) {
output.writeUInt64(FieldNames.takenPremiumOptionalReward, takenPremiumOptionalReward);
}
+ if ((bitField0_ & 0x00000020) != 0) {
+ output.writeUInt64(FieldNames.takenFreeReward, takenFreeReward);
+ }
+ if ((bitField0_ & 0x00000040) != 0) {
+ output.writeUInt64(FieldNames.takenFreeExtendedReward, takenFreeExtendedReward);
+ }
if ((bitField0_ & 0x00000080) != 0) {
- output.writeUInt32(FieldNames.exp, exp);
+ output.writeUInt64(FieldNames.idk, idk);
}
if ((bitField0_ & 0x00000100) != 0) {
- output.writeUInt32(FieldNames.level, level);
+ output.writeUInt32(FieldNames.curWeekAddExpSum, curWeekAddExpSum);
}
if ((bitField0_ & 0x00000200) != 0) {
output.writeUInt32(FieldNames.curBpId, curBpId);
}
if ((bitField0_ & 0x00000400) != 0) {
- output.writeUInt32(FieldNames.curWeekAddExpSum, curWeekAddExpSum);
+ output.writeUInt32(FieldNames.exp, exp);
}
if ((bitField0_ & 0x00000800) != 0) {
+ output.writeUInt32(FieldNames.level, level);
+ }
+ if ((bitField0_ & 0x00001000) != 0) {
output.writeEnum(FieldNames.bpTierType, bpTierType, BpTierType.converter());
}
output.endObject();
@@ -956,11 +1103,11 @@ public final class BattlePassInfoNotifyOuterClass {
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
- case -1290021512:
- case -2138632299: {
- if (input.isAtField(FieldNames.takenPremiumExtendedReward)) {
+ case 226926899:
+ case 1195903363: {
+ if (input.isAtField(FieldNames.takenPremiumReward2)) {
if (!input.trySkipNullValue()) {
- takenPremiumExtendedReward = input.readUInt64();
+ takenPremiumReward2 = input.readUInt64();
bitField0_ |= 0x00000001;
}
} else {
@@ -968,47 +1115,11 @@ public final class BattlePassInfoNotifyOuterClass {
}
break;
}
- case -1116117893:
- case 1257087386: {
- if (input.isAtField(FieldNames.takenFreeExtendedReward)) {
- if (!input.trySkipNullValue()) {
- takenFreeExtendedReward = input.readUInt64();
- bitField0_ |= 0x00000002;
- }
- } else {
- input.skipUnknownField();
- }
- break;
- }
case -247717048: {
if (input.isAtField(FieldNames.unkfield)) {
if (!input.trySkipNullValue()) {
unkfield = input.readUInt64();
- bitField0_ |= 0x00000004;
- }
- } else {
- input.skipUnknownField();
- }
- break;
- }
- case 226926899:
- case 1195903363: {
- if (input.isAtField(FieldNames.takenPremiumReward2)) {
- if (!input.trySkipNullValue()) {
- takenPremiumReward2 = input.readUInt64();
- bitField0_ |= 0x00000008;
- }
- } else {
- input.skipUnknownField();
- }
- break;
- }
- case 1065549026:
- case 135671018: {
- if (input.isAtField(FieldNames.takenFreeReward)) {
- if (!input.trySkipNullValue()) {
- takenFreeReward = input.readUInt64();
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
@@ -1020,7 +1131,19 @@ public final class BattlePassInfoNotifyOuterClass {
if (input.isAtField(FieldNames.takenPremiumReward1)) {
if (!input.trySkipNullValue()) {
takenPremiumReward1 = input.readUInt64();
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000004;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -1290021512:
+ case -2138632299: {
+ if (input.isAtField(FieldNames.takenPremiumExtendedReward)) {
+ if (!input.trySkipNullValue()) {
+ takenPremiumExtendedReward = input.readUInt64();
+ bitField0_ |= 0x00000008;
}
} else {
input.skipUnknownField();
@@ -1032,6 +1155,30 @@ public final class BattlePassInfoNotifyOuterClass {
if (input.isAtField(FieldNames.takenPremiumOptionalReward)) {
if (!input.trySkipNullValue()) {
takenPremiumOptionalReward = input.readUInt64();
+ bitField0_ |= 0x00000010;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case 1065549026:
+ case 135671018: {
+ if (input.isAtField(FieldNames.takenFreeReward)) {
+ if (!input.trySkipNullValue()) {
+ takenFreeReward = input.readUInt64();
+ bitField0_ |= 0x00000020;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
+ case -1116117893:
+ case 1257087386: {
+ if (input.isAtField(FieldNames.takenFreeExtendedReward)) {
+ if (!input.trySkipNullValue()) {
+ takenFreeExtendedReward = input.readUInt64();
bitField0_ |= 0x00000040;
}
} else {
@@ -1039,10 +1186,10 @@ public final class BattlePassInfoNotifyOuterClass {
}
break;
}
- case 100893: {
- if (input.isAtField(FieldNames.exp)) {
+ case 104112: {
+ if (input.isAtField(FieldNames.idk)) {
if (!input.trySkipNullValue()) {
- exp = input.readUInt32();
+ idk = input.readUInt64();
bitField0_ |= 0x00000080;
}
} else {
@@ -1050,10 +1197,11 @@ public final class BattlePassInfoNotifyOuterClass {
}
break;
}
- case 102865796: {
- if (input.isAtField(FieldNames.level)) {
+ case 835771131:
+ case 26830815: {
+ if (input.isAtField(FieldNames.curWeekAddExpSum)) {
if (!input.trySkipNullValue()) {
- level = input.readUInt32();
+ curWeekAddExpSum = input.readUInt32();
bitField0_ |= 0x00000100;
}
} else {
@@ -1073,11 +1221,10 @@ public final class BattlePassInfoNotifyOuterClass {
}
break;
}
- case 835771131:
- case 26830815: {
- if (input.isAtField(FieldNames.curWeekAddExpSum)) {
+ case 100893: {
+ if (input.isAtField(FieldNames.exp)) {
if (!input.trySkipNullValue()) {
- curWeekAddExpSum = input.readUInt32();
+ exp = input.readUInt32();
bitField0_ |= 0x00000400;
}
} else {
@@ -1085,6 +1232,17 @@ public final class BattlePassInfoNotifyOuterClass {
}
break;
}
+ case 102865796: {
+ if (input.isAtField(FieldNames.level)) {
+ if (!input.trySkipNullValue()) {
+ level = input.readUInt32();
+ bitField0_ |= 0x00000800;
+ }
+ } else {
+ input.skipUnknownField();
+ }
+ break;
+ }
case -584657238:
case 779964614: {
if (input.isAtField(FieldNames.bpTierType)) {
@@ -1092,7 +1250,7 @@ public final class BattlePassInfoNotifyOuterClass {
final BpTierType value = input.readEnum(BpTierType.converter());
if (value != null) {
bpTierType = value.getNumber();
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
} else {
input.skipUnknownEnumValue();
}
@@ -1292,28 +1450,30 @@ public final class BattlePassInfoNotifyOuterClass {
* Contains name constants used for serializing JSON
*/
static class FieldNames {
- static final FieldName takenPremiumExtendedReward = FieldName.forField("takenPremiumExtendedReward", "taken_premium_extended_reward");
-
- static final FieldName takenFreeExtendedReward = FieldName.forField("takenFreeExtendedReward", "taken_free_extended_reward");
+ static final FieldName takenPremiumReward2 = FieldName.forField("takenPremiumReward2", "taken_premium_reward2");
static final FieldName unkfield = FieldName.forField("unkfield");
- static final FieldName takenPremiumReward2 = FieldName.forField("takenPremiumReward2", "taken_premium_reward2");
+ static final FieldName takenPremiumReward1 = FieldName.forField("takenPremiumReward1", "taken_premium_reward1");
+
+ static final FieldName takenPremiumExtendedReward = FieldName.forField("takenPremiumExtendedReward", "taken_premium_extended_reward");
+
+ static final FieldName takenPremiumOptionalReward = FieldName.forField("takenPremiumOptionalReward", "taken_premium_optional_reward");
static final FieldName takenFreeReward = FieldName.forField("takenFreeReward", "taken_free_reward");
- static final FieldName takenPremiumReward1 = FieldName.forField("takenPremiumReward1", "taken_premium_reward1");
+ static final FieldName takenFreeExtendedReward = FieldName.forField("takenFreeExtendedReward", "taken_free_extended_reward");
- static final FieldName takenPremiumOptionalReward = FieldName.forField("takenPremiumOptionalReward", "taken_premium_optional_reward");
+ static final FieldName idk = FieldName.forField("idk");
+
+ static final FieldName curWeekAddExpSum = FieldName.forField("curWeekAddExpSum", "cur_week_add_exp_sum");
+
+ static final FieldName curBpId = FieldName.forField("curBpId", "cur_bp_id");
static final FieldName exp = FieldName.forField("exp");
static final FieldName level = FieldName.forField("level");
- static final FieldName curBpId = FieldName.forField("curBpId", "cur_bp_id");
-
- static final FieldName curWeekAddExpSum = FieldName.forField("curWeekAddExpSum", "cur_week_add_exp_sum");
-
static final FieldName bpTierType = FieldName.forField("bpTierType", "bp_tier_type");
}
}
diff --git a/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerLoginFinishCsReq.java b/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerLoginFinishCsReq.java
index 89fc46a..9db5934 100644
--- a/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerLoginFinishCsReq.java
+++ b/src/main/java/emu/lunarcore/server/packet/recv/HandlerPlayerLoginFinishCsReq.java
@@ -4,6 +4,7 @@ import emu.lunarcore.server.game.GameSession;
import emu.lunarcore.server.packet.CmdId;
import emu.lunarcore.server.packet.Opcodes;
import emu.lunarcore.server.packet.PacketHandler;
+import emu.lunarcore.server.packet.send.PacketBattlePassInfoNotify;
@Opcodes(CmdId.PlayerLoginFinishCsReq)
public class HandlerPlayerLoginFinishCsReq extends PacketHandler {
@@ -12,7 +13,7 @@ public class HandlerPlayerLoginFinishCsReq extends PacketHandler {
public void handle(GameSession session, byte[] data) throws Exception {
session.send(CmdId.PlayerLoginFinishScRsp);
session.send(CmdId.GetArchiveDataScRsp);
- //session.send(new PacketBattlePassInfoNotify());
+ session.send(new PacketBattlePassInfoNotify());
}
}