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

Refactor storage #76

Merged
merged 6 commits into from
Jul 26, 2024
Merged

Refactor storage #76

merged 6 commits into from
Jul 26, 2024

Conversation

gentlegiantJGC
Copy link
Member

The wrapper classes were making it difficult to use.
The NBT tags are now all classes which makes it easier to expose through pybind.
Also improved the code quite a bit.

Storing the NBT tags as native types seemed like a good idea on the C++ side but it made it difficult to integrate with Python.
The NBT tags are now their own classes so a wrapper class is not needed.
Replaced variant.index switches with variant::visit and holds_alternative.
@gentlegiantJGC gentlegiantJGC merged commit a3a75ea into 4.0 Jul 26, 2024
8 checks passed
@gentlegiantJGC gentlegiantJGC deleted the proto-class branch July 26, 2024 12:20
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.

1 participant