Remove obsolete ITooltip.Stance.
This commit is contained in:
@@ -83,7 +83,6 @@ namespace OpenRA.Traits
|
|||||||
{
|
{
|
||||||
string Name();
|
string Name();
|
||||||
Player Owner();
|
Player Owner();
|
||||||
Stance Stance();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface IDisable { bool Disabled { get; } }
|
public interface IDisable { bool Disabled { get; } }
|
||||||
|
|||||||
@@ -51,17 +51,6 @@ namespace OpenRA.Mods.RA
|
|||||||
return self.Owner;
|
return self.Owner;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Stance Stance()
|
|
||||||
{
|
|
||||||
if (spy.Disguised)
|
|
||||||
{
|
|
||||||
if (self.Owner == self.World.LocalPlayer)
|
|
||||||
return self.World.LocalPlayer.Stances[self.Owner];
|
|
||||||
return self.World.LocalPlayer.Stances[spy.disguisedAsPlayer];
|
|
||||||
}
|
|
||||||
return self.World.LocalPlayer.Stances[self.Owner];
|
|
||||||
}
|
|
||||||
|
|
||||||
public SpyToolTip( Actor self, TooltipInfo info )
|
public SpyToolTip( Actor self, TooltipInfo info )
|
||||||
{
|
{
|
||||||
this.self = self;
|
this.self = self;
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ namespace OpenRA.Mods.RA
|
|||||||
|
|
||||||
public string Name() { return Info.Name; }
|
public string Name() { return Info.Name; }
|
||||||
public Player Owner() { return self.Owner; }
|
public Player Owner() { return self.Owner; }
|
||||||
public Stance Stance() { return self.World.LocalPlayer.Stances[self.Owner]; }
|
|
||||||
|
|
||||||
public Tooltip(Actor self, TooltipInfo info)
|
public Tooltip(Actor self, TooltipInfo info)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user