Open
Description
It may be an unusual way of using attributes, but we plan to use them to implement message variation, for example, for NPCs speech in the game.
npc-speech-adventurous =
.1 = I hope to make my own glider someday.
.2 = I'd like to go spelunking in a cave when I'm stronger.
And we would like to choose a random message.
To do that we have multiple options.
- Collect everything into Vec, which seems like redundancy when attributes are already Vec internally.
- Expose the vector directly, which might harm incapsulation a bit
- Make .attributes() return ExactSizeIterator, so that we can get the length of it, and then using
.skip()
taking needed element.