Skip to content

Commit

Permalink
Fix protos
Browse files Browse the repository at this point in the history
  • Loading branch information
Melledy committed Feb 8, 2024
1 parent 65b696c commit bb28503
Show file tree
Hide file tree
Showing 22 changed files with 6,116 additions and 9,365 deletions.
2,303 changes: 1,076 additions & 1,227 deletions src/generated/main/emu/lunarcore/proto/BattlePassInfoNotifyOuterClass.java

Large diffs are not rendered by default.

Large diffs are not rendered by default.

752 changes: 263 additions & 489 deletions src/generated/main/emu/lunarcore/proto/DiscardRelicCsReqOuterClass.java

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static final class EnableRogueTalentScRsp extends ProtoMessage<EnableRogu
private int retcode;

/**
* <code>optional .RogueTalentInfo talent_info = 1;</code>
* <code>optional .RogueTalentInfo talent_info = 6;</code>
*/
private final RogueTalentInfoOuterClass.RogueTalentInfo talentInfo = RogueTalentInfoOuterClass.RogueTalentInfo.newInstance();

Expand Down Expand Up @@ -76,15 +76,15 @@ public EnableRogueTalentScRsp setRetcode(final int value) {
}

/**
* <code>optional .RogueTalentInfo talent_info = 1;</code>
* <code>optional .RogueTalentInfo talent_info = 6;</code>
* @return whether the talentInfo field is set
*/
public boolean hasTalentInfo() {
return (bitField0_ & 0x00000002) != 0;
}

/**
* <code>optional .RogueTalentInfo talent_info = 1;</code>
* <code>optional .RogueTalentInfo talent_info = 6;</code>
* @return this
*/
public EnableRogueTalentScRsp clearTalentInfo() {
Expand All @@ -94,7 +94,7 @@ public EnableRogueTalentScRsp clearTalentInfo() {
}

/**
* <code>optional .RogueTalentInfo talent_info = 1;</code>
* <code>optional .RogueTalentInfo talent_info = 6;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
Expand All @@ -108,7 +108,7 @@ public RogueTalentInfoOuterClass.RogueTalentInfo getTalentInfo() {
}

/**
* <code>optional .RogueTalentInfo talent_info = 1;</code>
* <code>optional .RogueTalentInfo talent_info = 6;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
Expand All @@ -122,7 +122,7 @@ public RogueTalentInfoOuterClass.RogueTalentInfo getMutableTalentInfo() {
}

/**
* <code>optional .RogueTalentInfo talent_info = 1;</code>
* <code>optional .RogueTalentInfo talent_info = 6;</code>
* @param value the talentInfo to set
* @return this
*/
Expand Down Expand Up @@ -203,7 +203,7 @@ public void writeTo(final ProtoSink output) throws IOException {
output.writeUInt32NoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 10);
output.writeRawByte((byte) 50);
output.writeMessageNoTag(talentInfo);
}
}
Expand Down Expand Up @@ -232,11 +232,11 @@ public EnableRogueTalentScRsp mergeFrom(final ProtoSource input) throws IOExcept
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 10) {
if (tag != 50) {
break;
}
}
case 10: {
case 50: {
// talentInfo
input.readMessage(talentInfo);
bitField0_ |= 0x00000002;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public static final class GetRogueHandbookDataScRsp extends ProtoMessage<GetRogu
private static final long serialVersionUID = 0L;

/**
* <code>optional uint32 retcode = 3;</code>
* <code>optional uint32 retcode = 11;</code>
*/
private int retcode;

/**
* <code>optional .RogueHandbookData handbook_info = 14;</code>
* <code>optional .RogueHandbookData handbook_info = 7;</code>
*/
private final RogueHandbookDataOuterClass.RogueHandbookData handbookInfo = RogueHandbookDataOuterClass.RogueHandbookData.newInstance();

Expand All @@ -39,15 +39,15 @@ public static GetRogueHandbookDataScRsp newInstance() {
}

/**
* <code>optional uint32 retcode = 3;</code>
* <code>optional uint32 retcode = 11;</code>
* @return whether the retcode field is set
*/
public boolean hasRetcode() {
return (bitField0_ & 0x00000001) != 0;
}

/**
* <code>optional uint32 retcode = 3;</code>
* <code>optional uint32 retcode = 11;</code>
* @return this
*/
public GetRogueHandbookDataScRsp clearRetcode() {
Expand All @@ -57,15 +57,15 @@ public GetRogueHandbookDataScRsp clearRetcode() {
}

/**
* <code>optional uint32 retcode = 3;</code>
* <code>optional uint32 retcode = 11;</code>
* @return the retcode
*/
public int getRetcode() {
return retcode;
}

/**
* <code>optional uint32 retcode = 3;</code>
* <code>optional uint32 retcode = 11;</code>
* @param value the retcode to set
* @return this
*/
Expand All @@ -76,15 +76,15 @@ public GetRogueHandbookDataScRsp setRetcode(final int value) {
}

/**
* <code>optional .RogueHandbookData handbook_info = 14;</code>
* <code>optional .RogueHandbookData handbook_info = 7;</code>
* @return whether the handbookInfo field is set
*/
public boolean hasHandbookInfo() {
return (bitField0_ & 0x00000002) != 0;
}

/**
* <code>optional .RogueHandbookData handbook_info = 14;</code>
* <code>optional .RogueHandbookData handbook_info = 7;</code>
* @return this
*/
public GetRogueHandbookDataScRsp clearHandbookInfo() {
Expand All @@ -94,7 +94,7 @@ public GetRogueHandbookDataScRsp clearHandbookInfo() {
}

/**
* <code>optional .RogueHandbookData handbook_info = 14;</code>
* <code>optional .RogueHandbookData handbook_info = 7;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
Expand All @@ -108,7 +108,7 @@ public RogueHandbookDataOuterClass.RogueHandbookData getHandbookInfo() {
}

/**
* <code>optional .RogueHandbookData handbook_info = 14;</code>
* <code>optional .RogueHandbookData handbook_info = 7;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
Expand All @@ -122,7 +122,7 @@ public RogueHandbookDataOuterClass.RogueHandbookData getMutableHandbookInfo() {
}

/**
* <code>optional .RogueHandbookData handbook_info = 14;</code>
* <code>optional .RogueHandbookData handbook_info = 7;</code>
* @param value the handbookInfo to set
* @return this
*/
Expand Down Expand Up @@ -199,11 +199,11 @@ public boolean equals(Object o) {
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 24);
output.writeRawByte((byte) 88);
output.writeUInt32NoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 114);
output.writeRawByte((byte) 58);
output.writeMessageNoTag(handbookInfo);
}
}
Expand All @@ -227,16 +227,16 @@ public GetRogueHandbookDataScRsp mergeFrom(final ProtoSource input) throws IOExc
int tag = input.readTag();
while (true) {
switch (tag) {
case 24: {
case 88: {
// retcode
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 114) {
if (tag != 58) {
break;
}
}
case 114: {
case 58: {
// handbookInfo
input.readMessage(handbookInfo);
bitField0_ |= 0x00000002;
Expand Down
Loading

0 comments on commit bb28503

Please sign in to comment.