Fix misc indentation errors.
This commit is contained in:
@@ -39,9 +39,9 @@ namespace OpenRA.Mods.Common.Graphics
|
||||
|
||||
public TextRenderable(SpriteFont font, WPos pos, int zOffset, Color color, string text)
|
||||
: this(font, pos, zOffset, color,
|
||||
ChromeMetrics.Get<Color>("TextContrastColorDark"),
|
||||
ChromeMetrics.Get<Color>("TextContrastColorLight"),
|
||||
text) { }
|
||||
ChromeMetrics.Get<Color>("TextContrastColorDark"),
|
||||
ChromeMetrics.Get<Color>("TextContrastColorLight"),
|
||||
text) { }
|
||||
|
||||
public WPos Pos { get { return pos; } }
|
||||
public PaletteReference Palette { get { return null; } }
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
}
|
||||
|
||||
[Desc("Call a function for each passenger when it enters a transport. " +
|
||||
"The callback function will be called as func(Actor transport, Actor passenger).")]
|
||||
"The callback function will be called as func(Actor transport, Actor passenger).")]
|
||||
public void OnPassengerEntered(Actor a, LuaFunction func)
|
||||
{
|
||||
GetScriptTriggers(a).RegisterCallback(Trigger.OnPassengerEntered, func, Context);
|
||||
|
||||
@@ -112,11 +112,11 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (State == CarryallState.Carrying)
|
||||
{
|
||||
if (!Carryable.IsDead)
|
||||
{
|
||||
var positionable = Carryable.Trait<IPositionable>();
|
||||
positionable.SetPosition(Carryable, self.Location);
|
||||
Carryable.Kill(e.Attacker);
|
||||
}
|
||||
{
|
||||
var positionable = Carryable.Trait<IPositionable>();
|
||||
positionable.SetPosition(Carryable, self.Location);
|
||||
Carryable.Kill(e.Attacker);
|
||||
}
|
||||
|
||||
Carryable = null;
|
||||
}
|
||||
|
||||
@@ -100,6 +100,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
rgbaRenderer.DrawLine(wr.Screen3DPosition(spawnPos), wr.Screen3DPosition(exitCellCenter), 1f, self.Owner.Color.RGB);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,15 +67,15 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
var allMatch = true;
|
||||
for (var i = 0; i < lenImpl; i++)
|
||||
{
|
||||
var implementingParam = implementingMethodParams[i];
|
||||
var interfaceParam = interfaceMethodParams[i];
|
||||
if (implementingParam.ParameterType != interfaceParam.ParameterType
|
||||
var implementingParam = implementingMethodParams[i];
|
||||
var interfaceParam = interfaceMethodParams[i];
|
||||
if (implementingParam.ParameterType != interfaceParam.ParameterType
|
||||
|| implementingParam.Name != interfaceParam.Name
|
||||
|| implementingParam.IsOut != interfaceParam.IsOut)
|
||||
{
|
||||
{
|
||||
allMatch = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Explicitly implemented methods are never public in C#.
|
||||
|
||||
Reference in New Issue
Block a user