Add INotifyDockHost and INotifyDockClient interfaces
Rename INotifyDocking to INotifyDockHost and extract INotifyDockClient from INotifyHarvesterAction
This commit is contained in:
@@ -34,7 +34,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
public override object Create(ActorInitializer init) { return new WithDockedOverlay(init.Self, this); }
|
||||
}
|
||||
|
||||
public class WithDockedOverlay : PausableConditionalTrait<WithDockedOverlayInfo>, INotifyDocking
|
||||
public class WithDockedOverlay : PausableConditionalTrait<WithDockedOverlayInfo>, INotifyDockHost
|
||||
{
|
||||
readonly AnimationWithOffset anim;
|
||||
bool docked;
|
||||
@@ -61,7 +61,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
anim.Animation.PlayThen(Info.Sequence, PlayDockingOverlay);
|
||||
}
|
||||
|
||||
void INotifyDocking.Docked(Actor self, Actor harvester) { docked = true; PlayDockingOverlay(); }
|
||||
void INotifyDocking.Undocked(Actor self, Actor harvester) { docked = false; }
|
||||
void INotifyDockHost.Docked(Actor self, Actor client) { docked = true; PlayDockingOverlay(); }
|
||||
void INotifyDockHost.Undocked(Actor self, Actor client) { docked = false; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user