diff options
author | Daniel <kingdread@gmx.de> | 2020-05-04 15:00:01 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2020-05-04 15:03:51 +0200 |
commit | 9537ffb07dd80c408ae475308e748ad1831d6462 (patch) | |
tree | 5658a06e4b5016de46c727b245922a27974e6cac /src/output/formats.rs | |
parent | 13e7b0142c4103ac22ceb244cda36889438fb37a (diff) | |
download | raidgrep-9537ffb07dd80c408ae475308e748ad1831d6462.tar.gz raidgrep-9537ffb07dd80c408ae475308e748ad1831d6462.tar.bz2 raidgrep-9537ffb07dd80c408ae475308e748ad1831d6462.zip |
replace Player::profession with PlayerClass enum
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.
Diffstat (limited to 'src/output/formats.rs')
0 files changed, 0 insertions, 0 deletions