Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datapack parsing #455

Merged
merged 8 commits into from
Sep 11, 2021
Merged

Datapack parsing #455

merged 8 commits into from
Sep 11, 2021

Conversation

koskja
Copy link
Contributor

@koskja koskja commented Aug 24, 2021

Datapack parsing

Status

  • Ready
  • Development
  • Hold

Description

The game needs to parse registries for most of its logic to function. This pull request attempts to do that.

Related issues

#429

Checklist

  • Ran cargo fmt, cargo clippy --all-targets, cargo build --release and cargo test and fixed any generated errors!
  • Removed unnecessary commented out code
  • Used specific traces (if you trace actions please specify the cause i.e. the player)

Note: if you locally don't get any errors, but GitHub Actions fails (especially at clippy) you might want to check your rust toolchain version. You can then feel free to fix these warnings/errors in your PR.

Added a generator for vanilla tags;
Implemented parsing of tag files.
Introduced helper types for serialization;
Implmented the recipe registry that discards "special" recipes.
@koskja koskja marked this pull request as ready for review August 27, 2021 16:12
@koskja
Copy link
Contributor Author

koskja commented Aug 27, 2021

Considering the significance of these changes, I would like @caelunshun to review them.

@Defman
Copy link
Member

Defman commented Aug 27, 2021

In my opinion prefer into namespace.

@koskja
Copy link
Contributor Author

koskja commented Aug 28, 2021

The functions now take T: Into<NamespacedId> + Clone. @caelunshun

Copy link
Member

@Defman Defman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, the location of the generator.py is a bit odd and should be moved into the same directory with all other generators?

@@ -0,0 +1,42 @@
from os import listdir
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be moved into the generator directory.

@koskja
Copy link
Contributor Author

koskja commented Sep 6, 2021

Moved the tags generator. I believe the recipe implementation can be finished together with crafting.

@Defman Defman merged commit 7e46ec7 into feather-rs:main Sep 11, 2021
Tracreed added a commit to Tracreed/feather that referenced this pull request Sep 24, 2021
@Tracreed Tracreed mentioned this pull request Sep 24, 2021
6 tasks
Defman pushed a commit that referenced this pull request Sep 24, 2021
* Revert "Datapack parsing (#455)"

This reverts commit 7e46ec7.

* removed unused variable.
Defman pushed a commit that referenced this pull request Sep 25, 2021
* Fix client not sending updates about removed items.

* Removes option from Server. And removed unit tests

* Revert "Datapack parsing (#455)"

This reverts commit 7e46ec7.

* removed unused variable.
koskja added a commit to koskja/feather that referenced this pull request Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants