diff --git a/OpenRA.Mods.Cnc/Traits/AttackPopupTurreted.cs b/OpenRA.Mods.Cnc/Traits/AttackPopupTurreted.cs index 63e1055e9a..1feba5c954 100644 --- a/OpenRA.Mods.Cnc/Traits/AttackPopupTurreted.cs +++ b/OpenRA.Mods.Cnc/Traits/AttackPopupTurreted.cs @@ -83,7 +83,7 @@ namespace OpenRA.Mods.Cnc.Traits return true; } - public void TickIdle(Actor self) + void INotifyIdle.TickIdle(Actor self) { if (state == PopupState.Open && idleTicks++ > info.CloseDelay) { diff --git a/OpenRA.Mods.Common/Traits/Harvester.cs b/OpenRA.Mods.Common/Traits/Harvester.cs index ad5127677a..9b0b0ff9ef 100644 --- a/OpenRA.Mods.Common/Traits/Harvester.cs +++ b/OpenRA.Mods.Common/Traits/Harvester.cs @@ -105,7 +105,7 @@ namespace OpenRA.Mods.Common.Traits self.QueueActivity(new CallFunc(() => ChooseNewProc(self, null))); } - public void Created(Actor self) + void INotifyCreated.Created(Actor self) { if (Info.SearchOnCreation) self.QueueActivity(new FindResources(self)); @@ -254,7 +254,7 @@ namespace OpenRA.Mods.Common.Traits } } - public void TickIdle(Actor self) + void INotifyIdle.TickIdle(Actor self) { // Should we be intelligent while idle? if (!idleSmart) return; diff --git a/OpenRA.Mods.Common/Traits/Render/WithGateSpriteBody.cs b/OpenRA.Mods.Common/Traits/Render/WithGateSpriteBody.cs index f1b3eec503..3d38bcab91 100644 --- a/OpenRA.Mods.Common/Traits/Render/WithGateSpriteBody.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithGateSpriteBody.cs @@ -107,7 +107,7 @@ namespace OpenRA.Mods.Common.Traits.Render rb.SetDirty(); } - public void RemovedFromWorld(Actor self) + void INotifyRemovedFromWorld.RemovedFromWorld(Actor self) { UpdateNeighbours(self); } diff --git a/OpenRA.Mods.Common/Traits/Render/WithSiloAnimation.cs b/OpenRA.Mods.Common/Traits/Render/WithSiloAnimation.cs index be3b86d262..6d738f138c 100644 --- a/OpenRA.Mods.Common/Traits/Render/WithSiloAnimation.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithSiloAnimation.cs @@ -46,7 +46,7 @@ namespace OpenRA.Mods.Common.Traits.Render : 0); } - public void OnOwnerChanged(Actor self, Player oldOwner, Player newOwner) + void INotifyOwnerChanged.OnOwnerChanged(Actor self, Player oldOwner, Player newOwner) { playerResources = newOwner.PlayerActor.Trait(); diff --git a/OpenRA.Mods.Common/Traits/Render/WithWallSpriteBody.cs b/OpenRA.Mods.Common/Traits/Render/WithWallSpriteBody.cs index e58322a2b5..dbaaaf2e83 100644 --- a/OpenRA.Mods.Common/Traits/Render/WithWallSpriteBody.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithWallSpriteBody.cs @@ -106,7 +106,7 @@ namespace OpenRA.Mods.Common.Traits.Render DefaultAnimation.PlayFetchIndex(NormalizeSequence(self, Info.Sequence), () => adjacent); } - public void Tick(Actor self) + void ITick.Tick(Actor self) { if (!dirty) return;