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

Suggestion: Blocks Enumeration #6

Open
Garethp opened this issue Sep 30, 2019 · 1 comment
Open

Suggestion: Blocks Enumeration #6

Garethp opened this issue Sep 30, 2019 · 1 comment

Comments

@Garethp
Copy link

Garethp commented Sep 30, 2019

Hey, I have a quick suggestion, something that I did as I'm following your series. I went ahead and created a BlockIndexes enum so that I could refer to my blocks by name rather than trying to remember what byte they were assigned to. So when adding dirt, I add (byte) BlockIndexes.Dirt. I don't know if it'll help or not, but it might be a nice addition to make the code a bit more readable

@oliviathevampire
Copy link

Do you have a repo with this?

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

No branches or pull requests

2 participants