Deprecate string format shorthand.

This commit is contained in:
Matthias Mailänder
2023-05-03 20:27:36 +02:00
committed by abcdefg30
parent 1c2ce0dcc0
commit 65c0cf1065
12 changed files with 20 additions and 29 deletions

View File

@@ -96,15 +96,11 @@ namespace OpenRA.Traits
.ToArray();
if (Footprint.Length == 0)
throw new ArgumentException(("This frozen actor has no footprint.\n" +
"Actor Name: {0}\n" +
"Actor Location: {1}\n" +
"Input footprint: [{2}]\n" +
"Input footprint (after shroud.Contains): [{3}]")
.F(actor.Info.Name,
actor.Location.ToString(),
footprint.Select(p => p.ToString()).JoinWith("|"),
footprint.Select(p => shroud.Contains(p).ToString()).JoinWith("|")));
throw new ArgumentException("This frozen actor has no footprint.\n" +
$"Actor Name: {actor.Info.Name}\n" +
$"Actor Location: {actor.Location}\n" +
$"Input footprint: [{footprint.Select(p => p.ToString()).JoinWith("|")}]\n" +
$"Input footprint (after shroud.Contains): [{footprint.Select(p => shroud.Contains(p).ToString()).JoinWith("|")}]");
CenterPosition = actor.CenterPosition;