Skip to content

Commit

Permalink
Update to support game version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Melledy committed Mar 27, 2024
1 parent 2b5180a commit 48d8985
Show file tree
Hide file tree
Showing 385 changed files with 22,968 additions and 24,622 deletions.
4 changes: 2 additions & 2 deletions 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.0.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.1.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 - Grasscutter" src="https://img.shields.io/discord/1163718404067303444?label=Discord&logo=discord&style=for-the-badge"></a></div>
Expand All @@ -19,7 +19,7 @@
- Friend system (Assists are not working yet)
- Forgotten hall
- Pure Fiction
- ~~Simulated universe (Runs can be finished, but many features are missing)~~
- Simulated universe (Runs can be finished, but many features are missing)

# Running the server and client

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 entity_id = 3;</code>
* <code>optional uint32 entity_id = 4;</code>
*/
private int entityId;

/**
* <code>optional uint32 world_level = 5;</code>
* <code>optional uint32 world_level = 15;</code>
*/
private int worldLevel;

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

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

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

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

/**
* <code>optional uint32 entity_id = 3;</code>
* <code>optional uint32 entity_id = 4;</code>
* @param value the entityId to set
* @return this
*/
Expand All @@ -76,15 +76,15 @@ public ActivateFarmElementCsReq setEntityId(final int value) {
}

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

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

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

/**
* <code>optional uint32 world_level = 5;</code>
* <code>optional uint32 world_level = 15;</code>
* @param value the worldLevel 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) 24);
output.writeRawByte((byte) 32);
output.writeUInt32NoTag(entityId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 40);
output.writeRawByte((byte) 120);
output.writeUInt32NoTag(worldLevel);
}
}
Expand All @@ -205,16 +205,16 @@ public ActivateFarmElementCsReq mergeFrom(final ProtoSource input) throws IOExce
int tag = input.readTag();
while (true) {
switch (tag) {
case 24: {
case 32: {
// entityId
entityId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 40) {
if (tag != 120) {
break;
}
}
case 40: {
case 120: {
// worldLevel
worldLevel = input.readUInt32();
bitField0_ |= 0x00000002;
Expand Down
Loading

0 comments on commit 48d8985

Please sign in to comment.