Skip to content

Commit

Permalink
Update to support game version 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Melledy committed Sep 11, 2024
1 parent 8263beb commit 16714d1
Show file tree
Hide file tree
Showing 486 changed files with 27,685 additions and 24,990 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![LunarCore](https://socialify.git.ci/Melledy/LunarCore/image?description=1&descriptionEditable=A%20game%20server%20reimplementation%20for%20version%202.4.0%20of%20a%20certain%20turn-based%20anime%20game%20for%20educational%20purposes.%20&font=Inter&forks=1&issues=1&language=1&name=1&owner=1&pulls=1&stargazers=1&theme=Light)
![LunarCore](https://socialify.git.ci/Melledy/LunarCore/image?description=1&descriptionEditable=A%20game%20server%20reimplementation%20for%20version%202.5.0%20of%20a%20certain%20turn-based%20anime%20game%20for%20educational%20purposes.%20&font=Inter&forks=1&issues=1&language=1&name=1&owner=1&pulls=1&stargazers=1&theme=Light)
<div align="center"><img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/Melledy/LunarCore?logo=java&style=for-the-badge"> <img alt="GitHub" src="https://img.shields.io/github/license/Melledy/LunarCore?style=for-the-badge"> <img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/Melledy/LunarCore?style=for-the-badge"> <img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/Melledy/LunarCore/build.yml?branch=development&logo=github&style=for-the-badge"></div>

<div align="center"><a href="https://discord.gg/cfPKJ6N5hw"><img alt="Discord - LunarCore" src="https://img.shields.io/discord/1163718404067303444?label=Discord&logo=discord&style=for-the-badge"></a></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public static final class ActivateFarmElementCsReq extends ProtoMessage<Activate
private static final long serialVersionUID = 0L;

/**
* <code>optional uint32 world_level = 13;</code>
* <code>optional uint32 world_level = 9;</code>
*/
private int worldLevel;

/**
* <code>optional uint32 entity_id = 15;</code>
* <code>optional uint32 entity_id = 13;</code>
*/
private int entityId;

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

/**
* <code>optional uint32 world_level = 13;</code>
* <code>optional uint32 world_level = 9;</code>
* @return whether the worldLevel field is set
*/
public boolean hasWorldLevel() {
return (bitField0_ & 0x00000001) != 0;
}

/**
* <code>optional uint32 world_level = 13;</code>
* <code>optional uint32 world_level = 9;</code>
* @return this
*/
public ActivateFarmElementCsReq clearWorldLevel() {
Expand All @@ -57,15 +57,15 @@ public ActivateFarmElementCsReq clearWorldLevel() {
}

/**
* <code>optional uint32 world_level = 13;</code>
* <code>optional uint32 world_level = 9;</code>
* @return the worldLevel
*/
public int getWorldLevel() {
return worldLevel;
}

/**
* <code>optional uint32 world_level = 13;</code>
* <code>optional uint32 world_level = 9;</code>
* @param value the worldLevel to set
* @return this
*/
Expand All @@ -76,15 +76,15 @@ public ActivateFarmElementCsReq setWorldLevel(final int value) {
}

/**
* <code>optional uint32 entity_id = 15;</code>
* <code>optional uint32 entity_id = 13;</code>
* @return whether the entityId field is set
*/
public boolean hasEntityId() {
return (bitField0_ & 0x00000002) != 0;
}

/**
* <code>optional uint32 entity_id = 15;</code>
* <code>optional uint32 entity_id = 13;</code>
* @return this
*/
public ActivateFarmElementCsReq clearEntityId() {
Expand All @@ -94,15 +94,15 @@ public ActivateFarmElementCsReq clearEntityId() {
}

/**
* <code>optional uint32 entity_id = 15;</code>
* <code>optional uint32 entity_id = 13;</code>
* @return the entityId
*/
public int getEntityId() {
return entityId;
}

/**
* <code>optional uint32 entity_id = 15;</code>
* <code>optional uint32 entity_id = 13;</code>
* @param value the entityId to set
* @return this
*/
Expand Down Expand Up @@ -177,11 +177,11 @@ public boolean equals(Object o) {
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 104);
output.writeRawByte((byte) 72);
output.writeUInt32NoTag(worldLevel);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 120);
output.writeRawByte((byte) 104);
output.writeUInt32NoTag(entityId);
}
}
Expand All @@ -205,16 +205,16 @@ public ActivateFarmElementCsReq mergeFrom(final ProtoSource input) throws IOExce
int tag = input.readTag();
while (true) {
switch (tag) {
case 104: {
case 72: {
// worldLevel
worldLevel = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 120) {
if (tag != 104) {
break;
}
}
case 120: {
case 104: {
// entityId
entityId = input.readUInt32();
bitField0_ |= 0x00000002;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static final class ActivateFarmElementScRsp extends ProtoMessage<Activate
private static final long serialVersionUID = 0L;

/**
* <code>optional uint32 entity_id = 7;</code>
* <code>optional uint32 entity_id = 2;</code>
*/
private int entityId;

Expand All @@ -29,7 +29,7 @@ public static final class ActivateFarmElementScRsp extends ProtoMessage<Activate
private int worldLevel;

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

Expand All @@ -44,15 +44,15 @@ public static ActivateFarmElementScRsp newInstance() {
}

/**
* <code>optional uint32 entity_id = 7;</code>
* <code>optional uint32 entity_id = 2;</code>
* @return whether the entityId field is set
*/
public boolean hasEntityId() {
return (bitField0_ & 0x00000001) != 0;
}

/**
* <code>optional uint32 entity_id = 7;</code>
* <code>optional uint32 entity_id = 2;</code>
* @return this
*/
public ActivateFarmElementScRsp clearEntityId() {
Expand All @@ -62,15 +62,15 @@ public ActivateFarmElementScRsp clearEntityId() {
}

/**
* <code>optional uint32 entity_id = 7;</code>
* <code>optional uint32 entity_id = 2;</code>
* @return the entityId
*/
public int getEntityId() {
return entityId;
}

/**
* <code>optional uint32 entity_id = 7;</code>
* <code>optional uint32 entity_id = 2;</code>
* @param value the entityId to set
* @return this
*/
Expand Down Expand Up @@ -118,15 +118,15 @@ public ActivateFarmElementScRsp setWorldLevel(final int value) {
}

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

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

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

/**
* <code>optional uint32 retcode = 12;</code>
* <code>optional uint32 retcode = 11;</code>
* @param value the retcode to set
* @return this
*/
Expand Down Expand Up @@ -225,15 +225,15 @@ public boolean equals(Object o) {
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 56);
output.writeRawByte((byte) 16);
output.writeUInt32NoTag(entityId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 64);
output.writeUInt32NoTag(worldLevel);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 96);
output.writeRawByte((byte) 88);
output.writeUInt32NoTag(retcode);
}
}
Expand All @@ -260,7 +260,7 @@ public ActivateFarmElementScRsp mergeFrom(final ProtoSource input) throws IOExce
int tag = input.readTag();
while (true) {
switch (tag) {
case 56: {
case 16: {
// entityId
entityId = input.readUInt32();
bitField0_ |= 0x00000001;
Expand All @@ -274,11 +274,11 @@ public ActivateFarmElementScRsp mergeFrom(final ProtoSource input) throws IOExce
worldLevel = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 96) {
if (tag != 88) {
break;
}
}
case 96: {
case 88: {
// retcode
retcode = input.readUInt32();
bitField0_ |= 0x00000004;
Expand Down
Loading

0 comments on commit 16714d1

Please sign in to comment.