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

Refactor Robot related code #1343

Merged
merged 8 commits into from
May 8, 2023
Merged

Refactor Robot related code #1343

merged 8 commits into from
May 8, 2023

Conversation

DanRStevens
Copy link
Member

A few simple miscellaneous changes to make future cleanup a little easier.

Some pre-work for:

When bulldozing a structure, the underlying terrain will already be `TerrainType::Dozed`. Hence there is no need to special case reading this terrain type. The general case will already store the expected value.

By avoiding the special case, we can delay construction of the `Robot` until much later, where it is actually used.
It could only ever return `true`, and the result was never checked anywhere. Any errors were reported with exceptions.
It wouldn't make much sense to potentially complete processing and then call `mTaskCompleteSignal` after the `Robot` has self destructed.
@DanRStevens DanRStevens merged commit 225dd44 into main May 8, 2023
@DanRStevens DanRStevens deleted the refactorRobot branch May 8, 2023 08:23
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.

1 participant