Skip to content

Commit

Permalink
fix EnhanceRogueBuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiro420 committed Apr 1, 2024
1 parent 7c77a0f commit 40b2f5c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static final class EnhanceRogueBuffCsReq extends ProtoMessage<EnhanceRogu
private static final long serialVersionUID = 0L;

/**
* <code>optional uint32 buff_id = 10;</code>
* <code>optional uint32 buff_id = 11;</code>
*/
private int buffId;

Expand All @@ -34,15 +34,15 @@ public static EnhanceRogueBuffCsReq newInstance() {
}

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

/**
* <code>optional uint32 buff_id = 10;</code>
* <code>optional uint32 buff_id = 11;</code>
* @return this
*/
public EnhanceRogueBuffCsReq clearBuffId() {
Expand All @@ -52,15 +52,15 @@ public EnhanceRogueBuffCsReq clearBuffId() {
}

/**
* <code>optional uint32 buff_id = 10;</code>
* <code>optional uint32 buff_id = 11;</code>
* @return the buffId
*/
public int getBuffId() {
return buffId;
}

/**
* <code>optional uint32 buff_id = 10;</code>
* <code>optional uint32 buff_id = 11;</code>
* @param value the buffId to set
* @return this
*/
Expand Down Expand Up @@ -129,7 +129,7 @@ public boolean equals(Object o) {
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 80);
output.writeRawByte((byte) 88);
output.writeUInt32NoTag(buffId);
}
}
Expand All @@ -150,7 +150,7 @@ public EnhanceRogueBuffCsReq mergeFrom(final ProtoSource input) throws IOExcepti
int tag = input.readTag();
while (true) {
switch (tag) {
case 80: {
case 88: {
// buffId
buffId = input.readUInt32();
bitField0_ |= 0x00000001;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public static final class EnhanceRogueBuffScRsp extends ProtoMessage<EnhanceRogu
private int retcode;

/**
* <code>optional bool is_success = 12;</code>
* <code>optional bool is_success = 7;</code>
*/
private boolean isSuccess;

/**
* <code>optional .RogueBuff rogue_buff = 6;</code>
* <code>optional .RogueBuff rogue_buff = 3;</code>
*/
private final RogueBuffOuterClass.RogueBuff rogueBuff = RogueBuffOuterClass.RogueBuff.newInstance();

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

/**
* <code>optional bool is_success = 12;</code>
* <code>optional bool is_success = 7;</code>
* @return whether the isSuccess field is set
*/
public boolean hasIsSuccess() {
return (bitField0_ & 0x00000002) != 0;
}

/**
* <code>optional bool is_success = 12;</code>
* <code>optional bool is_success = 7;</code>
* @return this
*/
public EnhanceRogueBuffScRsp clearIsSuccess() {
Expand All @@ -99,15 +99,15 @@ public EnhanceRogueBuffScRsp clearIsSuccess() {
}

/**
* <code>optional bool is_success = 12;</code>
* <code>optional bool is_success = 7;</code>
* @return the isSuccess
*/
public boolean getIsSuccess() {
return isSuccess;
}

/**
* <code>optional bool is_success = 12;</code>
* <code>optional bool is_success = 7;</code>
* @param value the isSuccess to set
* @return this
*/
Expand All @@ -118,15 +118,15 @@ public EnhanceRogueBuffScRsp setIsSuccess(final boolean value) {
}

/**
* <code>optional .RogueBuff rogue_buff = 6;</code>
* <code>optional .RogueBuff rogue_buff = 3;</code>
* @return whether the rogueBuff field is set
*/
public boolean hasRogueBuff() {
return (bitField0_ & 0x00000004) != 0;
}

/**
* <code>optional .RogueBuff rogue_buff = 6;</code>
* <code>optional .RogueBuff rogue_buff = 3;</code>
* @return this
*/
public EnhanceRogueBuffScRsp clearRogueBuff() {
Expand All @@ -136,7 +136,7 @@ public EnhanceRogueBuffScRsp clearRogueBuff() {
}

/**
* <code>optional .RogueBuff rogue_buff = 6;</code>
* <code>optional .RogueBuff rogue_buff = 3;</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 @@ -150,7 +150,7 @@ public RogueBuffOuterClass.RogueBuff getRogueBuff() {
}

/**
* <code>optional .RogueBuff rogue_buff = 6;</code>
* <code>optional .RogueBuff rogue_buff = 3;</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 @@ -164,7 +164,7 @@ public RogueBuffOuterClass.RogueBuff getMutableRogueBuff() {
}

/**
* <code>optional .RogueBuff rogue_buff = 6;</code>
* <code>optional .RogueBuff rogue_buff = 3;</code>
* @param value the rogueBuff to set
* @return this
*/
Expand Down Expand Up @@ -250,11 +250,11 @@ public void writeTo(final ProtoSink output) throws IOException {
output.writeUInt32NoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 96);
output.writeRawByte((byte) 56);
output.writeBoolNoTag(isSuccess);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 50);
output.writeRawByte((byte) 26);
output.writeMessageNoTag(rogueBuff);
}
}
Expand Down Expand Up @@ -286,20 +286,20 @@ public EnhanceRogueBuffScRsp mergeFrom(final ProtoSource input) throws IOExcepti
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 96) {
if (tag != 56) {
break;
}
}
case 96: {
case 56: {
// isSuccess
isSuccess = input.readBool();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 50) {
if (tag != 26) {
break;
}
}
case 50: {
case 26: {
// rogueBuff
input.readMessage(rogueBuff);
bitField0_ |= 0x00000004;
Expand Down

0 comments on commit 40b2f5c

Please sign in to comment.