Skip to content
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

Merged
merged 2 commits into from
Nov 14, 2023
Merged

Migrate item data to txtdata/ #6802

merged 2 commits into from
Nov 14, 2023

Conversation

glebm
Copy link
Collaborator

@glebm glebm commented Nov 11, 2023

Also simplifies txtdata parsing with a helper class (RecordReader).

@glebm glebm enabled auto-merge (rebase) November 11, 2023 14:19
@glebm glebm force-pushed the itemdat branch 2 times, most recently from 48be235 to b2b3127 Compare November 12, 2023 08:29
@glebm glebm changed the title Migrate AllItemsList to itemdat.tsv Migrate item data to (unique_)itemdat.tsv Nov 12, 2023
@glebm glebm force-pushed the itemdat branch 2 times, most recently from ca63879 to 9583c92 Compare November 12, 2023 09:15
@glebm glebm changed the title Migrate item data to (unique_)itemdat.tsv Migrate item data to txtdata/ Nov 12, 2023
@glebm glebm force-pushed the itemdat branch 2 times, most recently from d7f19c7 to bafac8e Compare November 12, 2023 12:34

tl::expected<item_misc_id, std::string> ParseItemMiscId(std::string_view value)
{
if (value == "NONE") return IMISC_NONE;
Copy link
Member

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.

Copy link
Collaborator Author

@glebm glebm Nov 13, 2023

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.

@glebm glebm merged commit cfdade5 into diasurgical:master Nov 14, 2023
19 checks passed
@glebm glebm deleted the itemdat branch November 14, 2023 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants