Skip to content

Link inventions to technologies#694

Merged
DarkiBoi merged 1 commit intomasterfrom
inventions
Feb 7, 2026
Merged

Link inventions to technologies#694
DarkiBoi merged 1 commit intomasterfrom
inventions

Conversation

@DarkiBoi
Copy link
Contributor

@DarkiBoi DarkiBoi commented Feb 7, 2026

When parsing an inventions limit block, keys corresponding to a specific technology are now collected into a list of strings. Once parsing completes, InventionManager::generate_invention_links is called from Dataloader.cpp. This step resolves the string identifiers into actual Technology objects, and subsequently populates their new inventions attribute.

I am really not sure if this is the cleanest and most performant way to do this, so a review would be appreciated.
This is in preparation for adding inventions to the Technology Menu, where we need to be able to access a technologies inventions.

@DarkiBoi DarkiBoi requested a review from wvpm February 7, 2026 18:24
Copy link
Contributor

@wvpm wvpm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the memory stuff it looks great.
Nice job on your first PR!

@wvpm wvpm added topic:dataloader enhancement New feature or request labels Feb 7, 2026
@DarkiBoi DarkiBoi merged commit e539ed7 into master Feb 7, 2026
16 checks passed
@DarkiBoi DarkiBoi deleted the inventions branch February 7, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request topic:dataloader

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants