Page MenuHomeWildfire Games

Provide entity ID for unit in constructor
ClosedPublic

Authored by vladislavbelov on Aug 25 2023, 8:53 PM.

Details

Reviewers
phosit
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rP27818: Provides entity ID for unit in its constructor.
Summary

SetID was added in r3214, refs r7555, r9286, r10903.

Test Plan
  1. Apply the patch and compile the game
  2. Check the game works the same
  3. Check Atlas works the same

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vladislavbelov created this revision.Aug 25 2023, 8:53 PM
vladislavbelov added inline comments.
source/graphics/Unit.h
69–71 ↗(On Diff #22174)

Probably also outdated.

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/8316/display/redirect

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/7227/display/redirect

vladislavbelov requested review of this revision.Aug 25 2023, 9:24 PM
phosit accepted this revision.Aug 26 2023, 1:12 PM
phosit added a subscriber: phosit.

This is an improvement and the things in the test plan worked.
For the future: I think it's wrong that graphics/ knows something about the simulation. A hack would be to make the CUnit a template on a id-type.

This revision is now accepted and ready to land.Aug 26 2023, 1:12 PM

For the future: I think it's wrong that graphics/ knows something about the simulation.

I think it's vice versa. Because simulation is data and graphics is a representation of the data. Though simulation data for representation might be decoupled.

This revision was landed with ongoing or failed builds.Aug 28 2023, 8:02 PM
This revision was automatically updated to reflect the committed changes.
Owners added a subscriber: Restricted Owners Package.Aug 28 2023, 8:02 PM