Fix MoC cycle counter

This commit is contained in:
Melledy
2024-05-09 05:25:01 -07:00
parent 6c5c7d8801
commit f1d3ece247
5 changed files with 244 additions and 256 deletions

View File

@@ -19,7 +19,12 @@ public final class ChallengeInfoOuterClass {
private static final long serialVersionUID = 0L; private static final long serialVersionUID = 0L;
/** /**
* <code>optional uint32 score = 2;</code> * <code>optional uint32 round_count = 2;</code>
*/
private int roundCount;
/**
* <code>optional uint32 score = 3;</code>
*/ */
private int score; private int score;
@@ -28,11 +33,6 @@ public final class ChallengeInfoOuterClass {
*/ */
private int scoreTwo; private int scoreTwo;
/**
* <code>optional uint32 round_count = 13;</code>
*/
private int roundCount;
/** /**
* <code>optional uint32 challenge_id = 14;</code> * <code>optional uint32 challenge_id = 14;</code>
*/ */
@@ -64,25 +64,62 @@ public final class ChallengeInfoOuterClass {
} }
/** /**
* <code>optional uint32 score = 2;</code> * <code>optional uint32 round_count = 2;</code>
* @return whether the score field is set * @return whether the roundCount field is set
*/ */
public boolean hasScore() { public boolean hasRoundCount() {
return (bitField0_ & 0x00000001) != 0; return (bitField0_ & 0x00000001) != 0;
} }
/** /**
* <code>optional uint32 score = 2;</code> * <code>optional uint32 round_count = 2;</code>
* @return this
*/
public ChallengeInfo clearRoundCount() {
bitField0_ &= ~0x00000001;
roundCount = 0;
return this;
}
/**
* <code>optional uint32 round_count = 2;</code>
* @return the roundCount
*/
public int getRoundCount() {
return roundCount;
}
/**
* <code>optional uint32 round_count = 2;</code>
* @param value the roundCount to set
* @return this
*/
public ChallengeInfo setRoundCount(final int value) {
bitField0_ |= 0x00000001;
roundCount = value;
return this;
}
/**
* <code>optional uint32 score = 3;</code>
* @return whether the score field is set
*/
public boolean hasScore() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 score = 3;</code>
* @return this * @return this
*/ */
public ChallengeInfo clearScore() { public ChallengeInfo clearScore() {
bitField0_ &= ~0x00000001; bitField0_ &= ~0x00000002;
score = 0; score = 0;
return this; return this;
} }
/** /**
* <code>optional uint32 score = 2;</code> * <code>optional uint32 score = 3;</code>
* @return the score * @return the score
*/ */
public int getScore() { public int getScore() {
@@ -90,12 +127,12 @@ public final class ChallengeInfoOuterClass {
} }
/** /**
* <code>optional uint32 score = 2;</code> * <code>optional uint32 score = 3;</code>
* @param value the score to set * @param value the score to set
* @return this * @return this
*/ */
public ChallengeInfo setScore(final int value) { public ChallengeInfo setScore(final int value) {
bitField0_ |= 0x00000001; bitField0_ |= 0x00000002;
score = value; score = value;
return this; return this;
} }
@@ -105,7 +142,7 @@ public final class ChallengeInfoOuterClass {
* @return whether the scoreTwo field is set * @return whether the scoreTwo field is set
*/ */
public boolean hasScoreTwo() { public boolean hasScoreTwo() {
return (bitField0_ & 0x00000002) != 0; return (bitField0_ & 0x00000004) != 0;
} }
/** /**
@@ -113,7 +150,7 @@ public final class ChallengeInfoOuterClass {
* @return this * @return this
*/ */
public ChallengeInfo clearScoreTwo() { public ChallengeInfo clearScoreTwo() {
bitField0_ &= ~0x00000002; bitField0_ &= ~0x00000004;
scoreTwo = 0; scoreTwo = 0;
return this; return this;
} }
@@ -132,45 +169,8 @@ public final class ChallengeInfoOuterClass {
* @return this * @return this
*/ */
public ChallengeInfo setScoreTwo(final int value) { public ChallengeInfo setScoreTwo(final int value) {
bitField0_ |= 0x00000002;
scoreTwo = value;
return this;
}
/**
* <code>optional uint32 round_count = 13;</code>
* @return whether the roundCount field is set
*/
public boolean hasRoundCount() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional uint32 round_count = 13;</code>
* @return this
*/
public ChallengeInfo clearRoundCount() {
bitField0_ &= ~0x00000004;
roundCount = 0;
return this;
}
/**
* <code>optional uint32 round_count = 13;</code>
* @return the roundCount
*/
public int getRoundCount() {
return roundCount;
}
/**
* <code>optional uint32 round_count = 13;</code>
* @param value the roundCount to set
* @return this
*/
public ChallengeInfo setRoundCount(final int value) {
bitField0_ |= 0x00000004; bitField0_ |= 0x00000004;
roundCount = value; scoreTwo = value;
return this; return this;
} }
@@ -397,9 +397,9 @@ public final class ChallengeInfoOuterClass {
cachedSize = other.cachedSize; cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) { if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_; bitField0_ = other.bitField0_;
roundCount = other.roundCount;
score = other.score; score = other.score;
scoreTwo = other.scoreTwo; scoreTwo = other.scoreTwo;
roundCount = other.roundCount;
challengeId = other.challengeId; challengeId = other.challengeId;
status = other.status; status = other.status;
extraLineupType = other.extraLineupType; extraLineupType = other.extraLineupType;
@@ -414,15 +414,15 @@ public final class ChallengeInfoOuterClass {
return this; return this;
} }
cachedSize = -1; cachedSize = -1;
if (other.hasRoundCount()) {
setRoundCount(other.roundCount);
}
if (other.hasScore()) { if (other.hasScore()) {
setScore(other.score); setScore(other.score);
} }
if (other.hasScoreTwo()) { if (other.hasScoreTwo()) {
setScoreTwo(other.scoreTwo); setScoreTwo(other.scoreTwo);
} }
if (other.hasRoundCount()) {
setRoundCount(other.roundCount);
}
if (other.hasChallengeId()) { if (other.hasChallengeId()) {
setChallengeId(other.challengeId); setChallengeId(other.challengeId);
} }
@@ -445,9 +445,9 @@ public final class ChallengeInfoOuterClass {
} }
cachedSize = -1; cachedSize = -1;
bitField0_ = 0; bitField0_ = 0;
roundCount = 0;
score = 0; score = 0;
scoreTwo = 0; scoreTwo = 0;
roundCount = 0;
challengeId = 0; challengeId = 0;
status = 0; status = 0;
extraLineupType = 0; extraLineupType = 0;
@@ -476,9 +476,9 @@ public final class ChallengeInfoOuterClass {
} }
ChallengeInfo other = (ChallengeInfo) o; ChallengeInfo other = (ChallengeInfo) o;
return bitField0_ == other.bitField0_ return bitField0_ == other.bitField0_
&& (!hasRoundCount() || roundCount == other.roundCount)
&& (!hasScore() || score == other.score) && (!hasScore() || score == other.score)
&& (!hasScoreTwo() || scoreTwo == other.scoreTwo) && (!hasScoreTwo() || scoreTwo == other.scoreTwo)
&& (!hasRoundCount() || roundCount == other.roundCount)
&& (!hasChallengeId() || challengeId == other.challengeId) && (!hasChallengeId() || challengeId == other.challengeId)
&& (!hasStatus() || status == other.status) && (!hasStatus() || status == other.status)
&& (!hasExtraLineupType() || extraLineupType == other.extraLineupType) && (!hasExtraLineupType() || extraLineupType == other.extraLineupType)
@@ -489,15 +489,15 @@ public final class ChallengeInfoOuterClass {
public void writeTo(final ProtoSink output) throws IOException { public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) { if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 16); output.writeRawByte((byte) 16);
output.writeUInt32NoTag(score); output.writeUInt32NoTag(roundCount);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 32); output.writeRawByte((byte) 24);
output.writeUInt32NoTag(scoreTwo); output.writeUInt32NoTag(score);
} }
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 104); output.writeRawByte((byte) 32);
output.writeUInt32NoTag(roundCount); output.writeUInt32NoTag(scoreTwo);
} }
if ((bitField0_ & 0x00000008) != 0) { if ((bitField0_ & 0x00000008) != 0) {
output.writeRawByte((byte) 112); output.writeRawByte((byte) 112);
@@ -521,13 +521,13 @@ public final class ChallengeInfoOuterClass {
protected int computeSerializedSize() { protected int computeSerializedSize() {
int size = 0; int size = 0;
if ((bitField0_ & 0x00000001) != 0) { if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(score); size += 1 + ProtoSink.computeUInt32SizeNoTag(roundCount);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(scoreTwo); size += 1 + ProtoSink.computeUInt32SizeNoTag(score);
} }
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(roundCount); size += 1 + ProtoSink.computeUInt32SizeNoTag(scoreTwo);
} }
if ((bitField0_ & 0x00000008) != 0) { if ((bitField0_ & 0x00000008) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId); size += 1 + ProtoSink.computeUInt32SizeNoTag(challengeId);
@@ -552,9 +552,18 @@ public final class ChallengeInfoOuterClass {
while (true) { while (true) {
switch (tag) { switch (tag) {
case 16: { case 16: {
// roundCount
roundCount = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 24) {
break;
}
}
case 24: {
// score // score
score = input.readUInt32(); score = input.readUInt32();
bitField0_ |= 0x00000001; bitField0_ |= 0x00000002;
tag = input.readTag(); tag = input.readTag();
if (tag != 32) { if (tag != 32) {
break; break;
@@ -563,15 +572,6 @@ public final class ChallengeInfoOuterClass {
case 32: { case 32: {
// scoreTwo // scoreTwo
scoreTwo = input.readUInt32(); scoreTwo = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 104) {
break;
}
}
case 104: {
// roundCount
roundCount = input.readUInt32();
bitField0_ |= 0x00000004; bitField0_ |= 0x00000004;
tag = input.readTag(); tag = input.readTag();
if (tag != 112) { if (tag != 112) {
@@ -638,13 +638,13 @@ public final class ChallengeInfoOuterClass {
public void writeTo(final JsonSink output) throws IOException { public void writeTo(final JsonSink output) throws IOException {
output.beginObject(); output.beginObject();
if ((bitField0_ & 0x00000001) != 0) { if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.score, score); output.writeUInt32(FieldNames.roundCount, roundCount);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.scoreTwo, scoreTwo); output.writeUInt32(FieldNames.score, score);
} }
if ((bitField0_ & 0x00000004) != 0) { if ((bitField0_ & 0x00000004) != 0) {
output.writeUInt32(FieldNames.roundCount, roundCount); output.writeUInt32(FieldNames.scoreTwo, scoreTwo);
} }
if ((bitField0_ & 0x00000008) != 0) { if ((bitField0_ & 0x00000008) != 0) {
output.writeUInt32(FieldNames.challengeId, challengeId); output.writeUInt32(FieldNames.challengeId, challengeId);
@@ -668,11 +668,23 @@ public final class ChallengeInfoOuterClass {
} }
while (!input.isAtEnd()) { while (!input.isAtEnd()) {
switch (input.readFieldHash()) { switch (input.readFieldHash()) {
case -171935711:
case -244677858: {
if (input.isAtField(FieldNames.roundCount)) {
if (!input.trySkipNullValue()) {
roundCount = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 109264530: { case 109264530: {
if (input.isAtField(FieldNames.score)) { if (input.isAtField(FieldNames.score)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
score = input.readUInt32(); score = input.readUInt32();
bitField0_ |= 0x00000001; bitField0_ |= 0x00000002;
} }
} else { } else {
input.skipUnknownField(); input.skipUnknownField();
@@ -684,18 +696,6 @@ public final class ChallengeInfoOuterClass {
if (input.isAtField(FieldNames.scoreTwo)) { if (input.isAtField(FieldNames.scoreTwo)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
scoreTwo = input.readUInt32(); scoreTwo = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case -171935711:
case -244677858: {
if (input.isAtField(FieldNames.roundCount)) {
if (!input.trySkipNullValue()) {
roundCount = input.readUInt32();
bitField0_ |= 0x00000004; bitField0_ |= 0x00000004;
} }
} else { } else {
@@ -812,12 +812,12 @@ public final class ChallengeInfoOuterClass {
* Contains name constants used for serializing JSON * Contains name constants used for serializing JSON
*/ */
static class FieldNames { static class FieldNames {
static final FieldName roundCount = FieldName.forField("roundCount", "round_count");
static final FieldName score = FieldName.forField("score"); static final FieldName score = FieldName.forField("score");
static final FieldName scoreTwo = FieldName.forField("scoreTwo", "score_two"); static final FieldName scoreTwo = FieldName.forField("scoreTwo", "score_two");
static final FieldName roundCount = FieldName.forField("roundCount", "round_count");
static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id"); static final FieldName challengeId = FieldName.forField("challengeId", "challenge_id");
static final FieldName status = FieldName.forField("status"); static final FieldName status = FieldName.forField("status");

View File

@@ -25,10 +25,6 @@ public final class GetFriendLoginInfoScRspOuterClass {
private int retcode; private int retcode;
/** /**
* <pre>
* ?
* </pre>
*
* <code>repeated uint32 friend_uid_list = 7;</code> * <code>repeated uint32 friend_uid_list = 7;</code>
*/ */
private final RepeatedInt friendUidList = RepeatedInt.newEmptyInstance(); private final RepeatedInt friendUidList = RepeatedInt.newEmptyInstance();
@@ -81,10 +77,6 @@ public final class GetFriendLoginInfoScRspOuterClass {
} }
/** /**
* <pre>
* ?
* </pre>
*
* <code>repeated uint32 friend_uid_list = 7;</code> * <code>repeated uint32 friend_uid_list = 7;</code>
* @return whether the friendUidList field is set * @return whether the friendUidList field is set
*/ */
@@ -93,10 +85,6 @@ public final class GetFriendLoginInfoScRspOuterClass {
} }
/** /**
* <pre>
* ?
* </pre>
*
* <code>repeated uint32 friend_uid_list = 7;</code> * <code>repeated uint32 friend_uid_list = 7;</code>
* @return this * @return this
*/ */
@@ -107,10 +95,6 @@ public final class GetFriendLoginInfoScRspOuterClass {
} }
/** /**
* <pre>
* ?
* </pre>
*
* <code>repeated uint32 friend_uid_list = 7;</code> * <code>repeated uint32 friend_uid_list = 7;</code>
* *
* This method returns the internal storage object without modifying any has state. * This method returns the internal storage object without modifying any has state.
@@ -125,10 +109,6 @@ public final class GetFriendLoginInfoScRspOuterClass {
} }
/** /**
* <pre>
* ?
* </pre>
*
* <code>repeated uint32 friend_uid_list = 7;</code> * <code>repeated uint32 friend_uid_list = 7;</code>
* *
* This method returns the internal storage object and sets the corresponding * This method returns the internal storage object and sets the corresponding
@@ -143,10 +123,6 @@ public final class GetFriendLoginInfoScRspOuterClass {
} }
/** /**
* <pre>
* ?
* </pre>
*
* <code>repeated uint32 friend_uid_list = 7;</code> * <code>repeated uint32 friend_uid_list = 7;</code>
* @param value the friendUidList to add * @param value the friendUidList to add
* @return this * @return this
@@ -158,10 +134,6 @@ public final class GetFriendLoginInfoScRspOuterClass {
} }
/** /**
* <pre>
* ?
* </pre>
*
* <code>repeated uint32 friend_uid_list = 7;</code> * <code>repeated uint32 friend_uid_list = 7;</code>
* @param values the friendUidList to add * @param values the friendUidList to add
* @return this * @return this

View File

@@ -23,18 +23,18 @@ public final class StartChallengeStoryBuffInfoOuterClass {
* ? * ?
* </pre> * </pre>
* *
* <code>optional uint32 story_buff_one = 8;</code> * <code>optional uint32 story_buff_two = 8;</code>
*/ */
private int storyBuffOne; private int storyBuffTwo;
/** /**
* <pre> * <pre>
* ? * ?
* </pre> * </pre>
* *
* <code>optional uint32 story_buff_two = 9;</code> * <code>optional uint32 story_buff_one = 9;</code>
*/ */
private int storyBuffTwo; private int storyBuffOne;
private StartChallengeStoryBuffInfo() { private StartChallengeStoryBuffInfo() {
} }
@@ -51,10 +51,10 @@ public final class StartChallengeStoryBuffInfoOuterClass {
* ? * ?
* </pre> * </pre>
* *
* <code>optional uint32 story_buff_one = 8;</code> * <code>optional uint32 story_buff_two = 8;</code>
* @return whether the storyBuffOne field is set * @return whether the storyBuffTwo field is set
*/ */
public boolean hasStoryBuffOne() { public boolean hasStoryBuffTwo() {
return (bitField0_ & 0x00000001) != 0; return (bitField0_ & 0x00000001) != 0;
} }
@@ -63,64 +63,11 @@ public final class StartChallengeStoryBuffInfoOuterClass {
* ? * ?
* </pre> * </pre>
* *
* <code>optional uint32 story_buff_one = 8;</code> * <code>optional uint32 story_buff_two = 8;</code>
* @return this
*/
public StartChallengeStoryBuffInfo clearStoryBuffOne() {
bitField0_ &= ~0x00000001;
storyBuffOne = 0;
return this;
}
/**
* <pre>
* ?
* </pre>
*
* <code>optional uint32 story_buff_one = 8;</code>
* @return the storyBuffOne
*/
public int getStoryBuffOne() {
return storyBuffOne;
}
/**
* <pre>
* ?
* </pre>
*
* <code>optional uint32 story_buff_one = 8;</code>
* @param value the storyBuffOne to set
* @return this
*/
public StartChallengeStoryBuffInfo setStoryBuffOne(final int value) {
bitField0_ |= 0x00000001;
storyBuffOne = value;
return this;
}
/**
* <pre>
* ?
* </pre>
*
* <code>optional uint32 story_buff_two = 9;</code>
* @return whether the storyBuffTwo field is set
*/
public boolean hasStoryBuffTwo() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <pre>
* ?
* </pre>
*
* <code>optional uint32 story_buff_two = 9;</code>
* @return this * @return this
*/ */
public StartChallengeStoryBuffInfo clearStoryBuffTwo() { public StartChallengeStoryBuffInfo clearStoryBuffTwo() {
bitField0_ &= ~0x00000002; bitField0_ &= ~0x00000001;
storyBuffTwo = 0; storyBuffTwo = 0;
return this; return this;
} }
@@ -130,7 +77,7 @@ public final class StartChallengeStoryBuffInfoOuterClass {
* ? * ?
* </pre> * </pre>
* *
* <code>optional uint32 story_buff_two = 9;</code> * <code>optional uint32 story_buff_two = 8;</code>
* @return the storyBuffTwo * @return the storyBuffTwo
*/ */
public int getStoryBuffTwo() { public int getStoryBuffTwo() {
@@ -142,23 +89,76 @@ public final class StartChallengeStoryBuffInfoOuterClass {
* ? * ?
* </pre> * </pre>
* *
* <code>optional uint32 story_buff_two = 9;</code> * <code>optional uint32 story_buff_two = 8;</code>
* @param value the storyBuffTwo to set * @param value the storyBuffTwo to set
* @return this * @return this
*/ */
public StartChallengeStoryBuffInfo setStoryBuffTwo(final int value) { public StartChallengeStoryBuffInfo setStoryBuffTwo(final int value) {
bitField0_ |= 0x00000002; bitField0_ |= 0x00000001;
storyBuffTwo = value; storyBuffTwo = value;
return this; return this;
} }
/**
* <pre>
* ?
* </pre>
*
* <code>optional uint32 story_buff_one = 9;</code>
* @return whether the storyBuffOne field is set
*/
public boolean hasStoryBuffOne() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <pre>
* ?
* </pre>
*
* <code>optional uint32 story_buff_one = 9;</code>
* @return this
*/
public StartChallengeStoryBuffInfo clearStoryBuffOne() {
bitField0_ &= ~0x00000002;
storyBuffOne = 0;
return this;
}
/**
* <pre>
* ?
* </pre>
*
* <code>optional uint32 story_buff_one = 9;</code>
* @return the storyBuffOne
*/
public int getStoryBuffOne() {
return storyBuffOne;
}
/**
* <pre>
* ?
* </pre>
*
* <code>optional uint32 story_buff_one = 9;</code>
* @param value the storyBuffOne to set
* @return this
*/
public StartChallengeStoryBuffInfo setStoryBuffOne(final int value) {
bitField0_ |= 0x00000002;
storyBuffOne = value;
return this;
}
@Override @Override
public StartChallengeStoryBuffInfo copyFrom(final StartChallengeStoryBuffInfo other) { public StartChallengeStoryBuffInfo copyFrom(final StartChallengeStoryBuffInfo other) {
cachedSize = other.cachedSize; cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) { if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_; bitField0_ = other.bitField0_;
storyBuffOne = other.storyBuffOne;
storyBuffTwo = other.storyBuffTwo; storyBuffTwo = other.storyBuffTwo;
storyBuffOne = other.storyBuffOne;
} }
return this; return this;
} }
@@ -169,12 +169,12 @@ public final class StartChallengeStoryBuffInfoOuterClass {
return this; return this;
} }
cachedSize = -1; cachedSize = -1;
if (other.hasStoryBuffOne()) {
setStoryBuffOne(other.storyBuffOne);
}
if (other.hasStoryBuffTwo()) { if (other.hasStoryBuffTwo()) {
setStoryBuffTwo(other.storyBuffTwo); setStoryBuffTwo(other.storyBuffTwo);
} }
if (other.hasStoryBuffOne()) {
setStoryBuffOne(other.storyBuffOne);
}
return this; return this;
} }
@@ -185,8 +185,8 @@ public final class StartChallengeStoryBuffInfoOuterClass {
} }
cachedSize = -1; cachedSize = -1;
bitField0_ = 0; bitField0_ = 0;
storyBuffOne = 0;
storyBuffTwo = 0; storyBuffTwo = 0;
storyBuffOne = 0;
return this; return this;
} }
@@ -210,19 +210,19 @@ public final class StartChallengeStoryBuffInfoOuterClass {
} }
StartChallengeStoryBuffInfo other = (StartChallengeStoryBuffInfo) o; StartChallengeStoryBuffInfo other = (StartChallengeStoryBuffInfo) o;
return bitField0_ == other.bitField0_ return bitField0_ == other.bitField0_
&& (!hasStoryBuffOne() || storyBuffOne == other.storyBuffOne) && (!hasStoryBuffTwo() || storyBuffTwo == other.storyBuffTwo)
&& (!hasStoryBuffTwo() || storyBuffTwo == other.storyBuffTwo); && (!hasStoryBuffOne() || storyBuffOne == other.storyBuffOne);
} }
@Override @Override
public void writeTo(final ProtoSink output) throws IOException { public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) { if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 64); output.writeRawByte((byte) 64);
output.writeUInt32NoTag(storyBuffOne); output.writeUInt32NoTag(storyBuffTwo);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 72); output.writeRawByte((byte) 72);
output.writeUInt32NoTag(storyBuffTwo); output.writeUInt32NoTag(storyBuffOne);
} }
} }
@@ -230,10 +230,10 @@ public final class StartChallengeStoryBuffInfoOuterClass {
protected int computeSerializedSize() { protected int computeSerializedSize() {
int size = 0; int size = 0;
if ((bitField0_ & 0x00000001) != 0) { if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(storyBuffOne); size += 1 + ProtoSink.computeUInt32SizeNoTag(storyBuffTwo);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(storyBuffTwo); size += 1 + ProtoSink.computeUInt32SizeNoTag(storyBuffOne);
} }
return size; return size;
} }
@@ -246,8 +246,8 @@ public final class StartChallengeStoryBuffInfoOuterClass {
while (true) { while (true) {
switch (tag) { switch (tag) {
case 64: { case 64: {
// storyBuffOne // storyBuffTwo
storyBuffOne = input.readUInt32(); storyBuffTwo = input.readUInt32();
bitField0_ |= 0x00000001; bitField0_ |= 0x00000001;
tag = input.readTag(); tag = input.readTag();
if (tag != 72) { if (tag != 72) {
@@ -255,8 +255,8 @@ public final class StartChallengeStoryBuffInfoOuterClass {
} }
} }
case 72: { case 72: {
// storyBuffTwo // storyBuffOne
storyBuffTwo = input.readUInt32(); storyBuffOne = input.readUInt32();
bitField0_ |= 0x00000002; bitField0_ |= 0x00000002;
tag = input.readTag(); tag = input.readTag();
if (tag != 0) { if (tag != 0) {
@@ -281,10 +281,10 @@ public final class StartChallengeStoryBuffInfoOuterClass {
public void writeTo(final JsonSink output) throws IOException { public void writeTo(final JsonSink output) throws IOException {
output.beginObject(); output.beginObject();
if ((bitField0_ & 0x00000001) != 0) { if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.storyBuffOne, storyBuffOne); output.writeUInt32(FieldNames.storyBuffTwo, storyBuffTwo);
} }
if ((bitField0_ & 0x00000002) != 0) { if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.storyBuffTwo, storyBuffTwo); output.writeUInt32(FieldNames.storyBuffOne, storyBuffOne);
} }
output.endObject(); output.endObject();
} }
@@ -296,11 +296,11 @@ public final class StartChallengeStoryBuffInfoOuterClass {
} }
while (!input.isAtEnd()) { while (!input.isAtEnd()) {
switch (input.readFieldHash()) { switch (input.readFieldHash()) {
case 1761423966: case 1761429060:
case 1329547396: { case 1329552490: {
if (input.isAtField(FieldNames.storyBuffOne)) { if (input.isAtField(FieldNames.storyBuffTwo)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
storyBuffOne = input.readUInt32(); storyBuffTwo = input.readUInt32();
bitField0_ |= 0x00000001; bitField0_ |= 0x00000001;
} }
} else { } else {
@@ -308,11 +308,11 @@ public final class StartChallengeStoryBuffInfoOuterClass {
} }
break; break;
} }
case 1761429060: case 1761423966:
case 1329552490: { case 1329547396: {
if (input.isAtField(FieldNames.storyBuffTwo)) { if (input.isAtField(FieldNames.storyBuffOne)) {
if (!input.trySkipNullValue()) { if (!input.trySkipNullValue()) {
storyBuffTwo = input.readUInt32(); storyBuffOne = input.readUInt32();
bitField0_ |= 0x00000002; bitField0_ |= 0x00000002;
} }
} else { } else {
@@ -374,9 +374,9 @@ public final class StartChallengeStoryBuffInfoOuterClass {
* Contains name constants used for serializing JSON * Contains name constants used for serializing JSON
*/ */
static class FieldNames { static class FieldNames {
static final FieldName storyBuffOne = FieldName.forField("storyBuffOne", "story_buff_one");
static final FieldName storyBuffTwo = FieldName.forField("storyBuffTwo", "story_buff_two"); static final FieldName storyBuffTwo = FieldName.forField("storyBuffTwo", "story_buff_two");
static final FieldName storyBuffOne = FieldName.forField("storyBuffOne", "story_buff_one");
} }
} }
} }

View File

@@ -0,0 +1,16 @@
package emu.lunarcore.server.packet.recv;
import emu.lunarcore.server.game.GameSession;
import emu.lunarcore.server.packet.CmdId;
import emu.lunarcore.server.packet.Opcodes;
import emu.lunarcore.server.packet.PacketHandler;
@Opcodes(CmdId.GetFriendChallengeLineupCsReq)
public class HandlerGetFriendChallengeLineupCsReq extends PacketHandler {
@Override
public void handle(GameSession session, byte[] data) throws Exception {
session.send(CmdId.GetFriendChallengeLineupScRsp);
}
}