Add INotifyDockHost and INotifyDockClient interfaces
Rename INotifyDocking to INotifyDockHost and extract INotifyDockClient from INotifyHarvesterAction
This commit is contained in:
@@ -92,7 +92,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
}
|
||||
|
||||
public class Cloak : PausableConditionalTrait<CloakInfo>, IRenderModifier, INotifyDamage, INotifyUnload, INotifyDemolition, INotifyInfiltration,
|
||||
INotifyAttack, ITick, IVisibilityModifier, IRadarColorModifier, INotifyCreated, INotifyHarvesterAction, INotifyBeingResupplied
|
||||
INotifyAttack, ITick, IVisibilityModifier, IRadarColorModifier, INotifyCreated, INotifyDockClient, INotifyBeingResupplied
|
||||
{
|
||||
[Sync]
|
||||
int remainingTime;
|
||||
@@ -270,15 +270,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
return color;
|
||||
}
|
||||
|
||||
void INotifyHarvesterAction.MovingToResources(Actor self, CPos targetCell) { }
|
||||
|
||||
void INotifyHarvesterAction.MovingToRefinery(Actor self, Actor refineryActor) { }
|
||||
|
||||
void INotifyHarvesterAction.MovementCancelled(Actor self) { }
|
||||
|
||||
void INotifyHarvesterAction.Harvested(Actor self, string resourceType) { }
|
||||
|
||||
void INotifyHarvesterAction.Docked()
|
||||
void INotifyDockClient.Docked(Actor self, Actor host)
|
||||
{
|
||||
if (Info.UncloakOn.HasFlag(UncloakType.Dock))
|
||||
{
|
||||
@@ -287,7 +279,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
}
|
||||
}
|
||||
|
||||
void INotifyHarvesterAction.Undocked()
|
||||
void INotifyDockClient.Undocked(Actor self, Actor host)
|
||||
{
|
||||
isDocking = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user