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

Add support for parent field in block/item/entity json definitions #299

Merged
merged 3 commits into from
Aug 22, 2024

Conversation

REDxEYE
Copy link
Contributor

@REDxEYE REDxEYE commented Aug 20, 2024

ItemDef/EntityDef/Block: Add method cloneTo to definition to other definition
ContentBuilder: Add method get to get definition or nullptr
ContentLoader: Add functionality to clone from definition specified in parent field in json

…definition

ContentBuilder: Add method `get` to get definition or nullptr
ContentLoader: Add functionality to clone from definition specified in `parent` field in json
@REDxEYE
Copy link
Contributor Author

REDxEYE commented Aug 20, 2024

This does not handle load order to ensure that parent definition exist. It need to be implemented

@REDxEYE REDxEYE marked this pull request as draft August 20, 2024 19:01
@REDxEYE REDxEYE marked this pull request as ready for review August 21, 2024 16:28
@REDxEYE
Copy link
Contributor Author

REDxEYE commented Aug 21, 2024

Proper dependency resolution is implemented for blocks/items/entities.

@MihailRis MihailRis merged commit 5500fe3 into MihailRis:main Aug 22, 2024
4 checks passed
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