-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Remove legacy building.Locked and building.BuildComplete from Gate. #15676
Remove legacy building.Locked and building.BuildComplete from Gate. #15676
Conversation
Re (lack of) update rules: we have a few traits left to do, with a lot of that work already sitting open in parallel PRs. Most of the rule changes also span multiple levels of inheritance, so i'm not sure we can even usefully show a list of actors to change. If we don't have any better ideas I think our best option is to make a general note about this on https://github.com/OpenRA/OpenRAModSDK/wiki/Update-notes:-release-20180923-to-next |
@@ -34,7 +34,7 @@ public class GateInfo : PausableConditionalTraitInfo, ITemporaryBlockerInfo, IBl | |||
} | |||
|
|||
public class Gate : PausableConditionalTrait<GateInfo>, ITick, ITemporaryBlocker, IBlocksProjectiles, | |||
INotifyAddedToWorld, INotifyRemovedFromWorld, INotifyBlockingMove, ISync |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a value with [Sync]
(Position), why remove ISync
? Tbh this doesn't look related so i guess this was a mistake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ConditionalTrait
already implements ISync
, so we can remove it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't notice any regressions about Gates in TS mod.
7ee2e87
to
0b41cd9
Compare
Renamed |
Another step towards eliminating these legacy code warts.