Formatting: wrap and indent long argument lists

This commit is contained in:
Ivaylo Draganov
2020-05-15 15:49:06 +03:00
committed by abcdefg30
parent d5ff5c672b
commit 227567dfe1
8 changed files with 56 additions and 10 deletions

View File

@@ -65,7 +65,12 @@ namespace OpenRA.Mods.Common.Traits
{
if (!IsTraitDisabled)
{
yield return new EnterAlliedActorTargeter<BuildingInfo>("Enter", 5, Info.EnterCursor, Info.EnterBlockedCursor, AircraftCanEnter,
yield return new EnterAlliedActorTargeter<BuildingInfo>(
"Enter",
5,
Info.EnterCursor,
Info.EnterBlockedCursor,
AircraftCanEnter,
target => Reservable.IsAvailableFor(target, self));
yield return new AircraftMoveOrderTargeter(self, this);

View File

@@ -60,7 +60,13 @@ namespace OpenRA.Mods.Common.Traits
get
{
if (!IsTraitDisabled)
yield return new EnterAlliedActorTargeter<CargoInfo>("EnterTransport", 5, Info.EnterCursor, Info.EnterBlockedCursor, IsCorrectCargoType, CanEnter);
yield return new EnterAlliedActorTargeter<CargoInfo>(
"EnterTransport",
5,
Info.EnterCursor,
Info.EnterBlockedCursor,
IsCorrectCargoType,
CanEnter);
}
}

View File

@@ -63,7 +63,13 @@ namespace OpenRA.Mods.Common.Traits
get
{
if (!IsTraitDisabled)
yield return new EnterAlliedActorTargeter<BuildingInfo>("Repair", 5, Info.EnterCursor, Info.EnterBlockedCursor, CanRepairAt, _ => CanRepair());
yield return new EnterAlliedActorTargeter<BuildingInfo>(
"Repair",
5,
Info.EnterCursor,
Info.EnterBlockedCursor,
CanRepairAt,
_ => CanRepair());
}
}