Skip to content

fix: Save minerals/geysers in Expansions - #65

Closed
webbrain-one wants to merge 1 commit into
alkurbatov:masterfrom
webbrain-one:webbrain/issue-56
Closed

fix: Save minerals/geysers in Expansions#65
webbrain-one wants to merge 1 commit into
alkurbatov:masterfrom
webbrain-one:webbrain/issue-56

Conversation

@webbrain-one

Copy link
Copy Markdown

Closes #56

Cache mineral patches and geysers in the Expansion class to
avoid redundant GetUnits() calls and simplify income estimation.

Fixes alkurbatov#56
Comment thread src/objects/Expansion.h
#include <sc2api/sc2_unit.h>
#include <vector>

struct Expansion {

@alkurbatov alkurbatov Aug 7, 2026

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Well, it doesn't fix anything because Expansion is defined in

explicit Expansion(const sc2::Point3D& town_hall_location_);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

And of course this data should be filled somehow.

@alkurbatov alkurbatov closed this Aug 17, 2026
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.

Save minerals/geysers in Expansions

2 participants