aboutsummaryrefslogtreecommitdiff
path: root/src/playerclass.rs
AgeCommit message (Collapse)Author
2020-05-12use Display implementations from evtclibDaniel
2020-05-04add -class player filterDaniel
2020-05-04replace Player::profession with PlayerClass enumDaniel
Away with stringly typed stuff, we now have a proper way to save the profession of a player without relying on a string. Theoretically, that is better for memory consumption, as we now save only the identifier and use fmt::Display and static strings, but that was not the main reason for this change. The main reason is that now we can programatically work with the profession and elite spec, so that we can (for example) implement a filter to filter players based on their class. The word "class" has been chosen because it is a common synonym for the profession/elite, and because this is neither a profession nor the elite - it's a combination of both.