Skip to content

Implemented GetUnitFactoryBuilding() method#2995

Open
PexoDev wants to merge 1 commit into
beyond-all-reason:masterfrom
PexoDev:feature/issue-2892-GetUnitFactoryBuilding
Open

Implemented GetUnitFactoryBuilding() method#2995
PexoDev wants to merge 1 commit into
beyond-all-reason:masterfrom
PexoDev:feature/issue-2892-GetUnitFactoryBuilding

Conversation

@PexoDev
Copy link
Copy Markdown

@PexoDev PexoDev commented May 31, 2026

As per #2892 - added a new method to fetch factory's ID of given unit being build.

As discussed in the issue's thread - this covers factories exclusively and doesn't account for mobile builders.

Comment thread rts/Lua/LuaSyncedRead.cpp
Copy link
Copy Markdown
Collaborator

@sprunk sprunk left a comment

Choose a reason for hiding this comment

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

Looks technically correct but polling all units to check if they're the factory is going to be relatively expensive. Would be ideal if buildees had a pointer to the fac.

Comment thread rts/Lua/LuaSyncedRead.cpp
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