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

Create Block, BlockCategory enums. Create block state struct. #106

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

kralverde
Copy link
Contributor

This PR implements enums for Block and BlockCategories via macro which will be necessary for terrain gen. Additionally adds a BlockState struct to include these enums.

@kralverde kralverde marked this pull request as ready for review September 28, 2024 19:02
@Snowiiii
Copy link
Owner

There where discussions in the Discord about an Large Blocks Enum, Like @lukas0008 once did. The Problem was compile time. I generally would really like a big enum with all blocks the game has, This would be also a more error safe approche

@kralverde
Copy link
Contributor Author

kralverde commented Sep 29, 2024

I think the issue was creating an enum for every single possible state. This just has blocks and categories. Try it out, I don't think compile time is that bad.

@Snowiiii
Copy link
Owner

Snowiiii commented Oct 1, 2024

Is this ready for merge ?

@kralverde
Copy link
Contributor Author

Unless anyone finds issue with it it's ready

@Snowiiii Snowiiii merged commit 1726c06 into Snowiiii:master Oct 2, 2024
5 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