Use expression body syntax
This commit is contained in:
@@ -22,7 +22,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
|
||||
{
|
||||
class ConvertPngToShpCommand : IUtilityCommand
|
||||
{
|
||||
string IUtilityCommand.Name { get { return "--shp"; } }
|
||||
string IUtilityCommand.Name => "--shp";
|
||||
|
||||
bool IUtilityCommand.ValidateArguments(string[] args)
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
|
||||
public ImportRedAlertLegacyMapCommand()
|
||||
: base(128) { }
|
||||
|
||||
string IUtilityCommand.Name { get { return "--import-ra-map"; } }
|
||||
string IUtilityCommand.Name => "--import-ra-map";
|
||||
bool IUtilityCommand.ValidateArguments(string[] args) { return ValidateArguments(args); }
|
||||
|
||||
[Desc("FILENAME", "Convert a legacy Red Alert INI/MPR map to the OpenRA format.")]
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
|
||||
{
|
||||
class ImportTSMapCommand : IUtilityCommand
|
||||
{
|
||||
string IUtilityCommand.Name { get { return "--import-ts-map"; } }
|
||||
string IUtilityCommand.Name => "--import-ts-map";
|
||||
bool IUtilityCommand.ValidateArguments(string[] args) { return args.Length >= 2; }
|
||||
|
||||
static readonly Dictionary<byte, string> OverlayToActor = new Dictionary<byte, string>()
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
|
||||
public ImportTiberianDawnLegacyMapCommand()
|
||||
: base(64) { }
|
||||
|
||||
string IUtilityCommand.Name { get { return "--import-td-map"; } }
|
||||
string IUtilityCommand.Name => "--import-td-map";
|
||||
bool IUtilityCommand.ValidateArguments(string[] args) { return ValidateArguments(args); }
|
||||
|
||||
[Desc("FILENAME", "Convert a legacy Tiberian Dawn INI/MPR map to the OpenRA format.")]
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
|
||||
return args.Length >= 3;
|
||||
}
|
||||
|
||||
string IUtilityCommand.Name { get { return "--rules-import"; } }
|
||||
string IUtilityCommand.Name => "--rules-import";
|
||||
|
||||
IniFile rulesIni;
|
||||
IniFile artIni;
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
|
||||
return args.Length >= 2;
|
||||
}
|
||||
|
||||
string IUtilityCommand.Name { get { return "--sequence-import"; } }
|
||||
string IUtilityCommand.Name => "--sequence-import";
|
||||
|
||||
IniFile file;
|
||||
MapGrid grid;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
|
||||
{
|
||||
class ImportLegacyTilesetCommand : IUtilityCommand
|
||||
{
|
||||
string IUtilityCommand.Name { get { return "--tileset-import"; } }
|
||||
string IUtilityCommand.Name => "--tileset-import";
|
||||
|
||||
bool IUtilityCommand.ValidateArguments(string[] args)
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
|
||||
{
|
||||
class ListMixContents : IUtilityCommand
|
||||
{
|
||||
string IUtilityCommand.Name { get { return "--list-mix"; } }
|
||||
string IUtilityCommand.Name => "--list-mix";
|
||||
|
||||
bool IUtilityCommand.ValidateArguments(string[] args)
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
|
||||
{
|
||||
class RemapShpCommand : IUtilityCommand
|
||||
{
|
||||
string IUtilityCommand.Name { get { return "--remap"; } }
|
||||
string IUtilityCommand.Name => "--remap";
|
||||
|
||||
bool IUtilityCommand.ValidateArguments(string[] args)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user