this post was submitted on 17 Nov 2024
24 points (100.0% liked)
Factorio
1031 readers
96 users here now
A Lemmy community for the game Factorio made by Wube Software.
Rules
- Be a good person
- Content must relate to Factorio
- Adhere to Lemmy's Code of Conduct
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I feel like it's more analogous to enum pattern. Your belt is just a array, and your items are enums that may be part of that enum
So to go back to gleba, nutrient belts are just
Vec<Result<Nutriment, Spoilage>>