roundNumber is amibguous #226
-
Thanks for this awesome library, and all your great work on it. I hope I can contribute to it in the future.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Maybe a better idea would be to store m_totalRoundsPlayed on round_start, and then I’m loathe to add event handlers and state though as everyone who uses the library is paying the cost for a feature that they may not use. |
Beta Was this translation helpful? Give feedback.
-
Yeah, maybe it's better to just document it somewhere or include it in an example? I'm happy to provide one. I've worked with some other parsers that do try store state themselves and include their own events, and have enjoyed and learnt a lot from how this parser does it. |
Beta Was this translation helpful? Give feedback.
Maybe a better idea would be to store m_totalRoundsPlayed on round_start, and then
roundNumber
would return that stored number +1? Seems a bit more accurate.I’m loathe to add event handlers and state though as everyone who uses the library is paying the cost for a feature that they may not use.