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

Store all Material types in an array #407

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Conversation

patowen
Copy link
Collaborator

@patowen patowen commented Jun 23, 2024

The ability to walk through the list of available materials will likely come in handy in many situations. For me, it came up when I thought about implementing scrolling through different items in the inventory, which is why I made that change now, although I later decided to defer that feature until later.

Rather than throwing away the code I wrote, I believe it's probably best to just put it in its own PR.

Probably the most controversial decision here is calling it Material::ALL. I'm open to other suggestions.

Copy link
Owner

@Ralith Ralith left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me.

common/src/world.rs Outdated Show resolved Hide resolved
@patowen patowen enabled auto-merge (rebase) June 24, 2024 00:19
@patowen patowen merged commit 0ffd413 into Ralith:master Jun 24, 2024
4 checks passed
@patowen patowen deleted the material-array branch June 30, 2024 23:39
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