Added UpdateRule.

This commit is contained in:
Andre Mohren
2018-09-24 19:33:53 +00:00
committed by abcdefg30
parent a68ea0fe2d
commit f342ecf18a
4 changed files with 144 additions and 3 deletions

View File

@@ -221,10 +221,10 @@ namespace OpenRA.Mods.Common.UpdateRules
yield return manualStep;
}
public static string FormatMessageList(IEnumerable<string> messages, int indent = 0)
public static string FormatMessageList(IEnumerable<string> messages, int indent = 0, string separator = "*")
{
var prefix = string.Concat(Enumerable.Repeat(" ", indent));
return string.Join("\n", messages.Select(m => prefix + " * {0}".F(m.Replace("\n", "\n " + prefix))));
return string.Join("\n", messages.Select(m => prefix + " {0} {1}".F(separator, m.Replace("\n", "\n " + prefix))));
}
}