-
Notifications
You must be signed in to change notification settings - Fork 810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate item data to txtdata/ #6802
Conversation
48be235
to
b2b3127
Compare
AllItemsList
to itemdat.tsv
(unique_)itemdat.tsv
ca63879
to
9583c92
Compare
(unique_)itemdat.tsv
d7f19c7
to
bafac8e
Compare
|
||
tl::expected<item_misc_id, std::string> ParseItemMiscId(std::string_view value) | ||
{ | ||
if (value == "NONE") return IMISC_NONE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only comment is that I think it would be good if we changed these to follow CamelCase like the enum classes, even if we haven't done so internally yet. That way it's more consistent and hopefully also stable.
But I think this might also have been the case for some of the other files so I don't think that has to be a blocker for this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I agree. I think renaming things is a separate thing from extracting things to data files though. Here I've simply removed a prefix, which is an automatic edit. It is easier to review renames separately.
Not planning to do the renaming myself anytime so feel free to take this up.
Also simplifies txtdata parsing with a helper class (
RecordReader
).