Use expression body syntax
This commit is contained in:
@@ -16,15 +16,9 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
public class AddResourceRenderer : UpdateRule
|
||||
{
|
||||
public override string Name
|
||||
{
|
||||
get { return "Add ResourceRenderer trait"; }
|
||||
}
|
||||
public override string Name => "Add ResourceRenderer trait";
|
||||
|
||||
public override string Description
|
||||
{
|
||||
get { return "The rendering parts of ResourceLayer have been moved to a new trait"; }
|
||||
}
|
||||
public override string Description => "The rendering parts of ResourceLayer have been moved to a new trait";
|
||||
|
||||
readonly List<string> locations = new List<string>();
|
||||
|
||||
|
||||
@@ -17,15 +17,9 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
public class CreateScreenShakeWarhead : UpdateRule
|
||||
{
|
||||
public override string Name { get { return "Create ScreenShakeWarhead to replace hardcoded shaking."; } }
|
||||
public override string Name => "Create ScreenShakeWarhead to replace hardcoded shaking.";
|
||||
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "The traits MadTank and NukePower (via the NukeLaunch projectile that it uses) no longer have built-in screen shaking.";
|
||||
}
|
||||
}
|
||||
public override string Description => "The traits MadTank and NukePower (via the NukeLaunch projectile that it uses) no longer have built-in screen shaking.";
|
||||
|
||||
readonly List<Tuple<string, string, string>> weaponsToUpdate = new List<Tuple<string, string, string>>();
|
||||
|
||||
|
||||
@@ -18,16 +18,11 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
public class ReformatChromeProvider : UpdateRule
|
||||
{
|
||||
public override string Name { get { return "Reformat UI image definitions."; } }
|
||||
public override string Name => "Reformat UI image definitions.";
|
||||
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "The format of the chrome.yaml file defining image regions for the UI has\n" +
|
||||
"changed to support additional metadata fields. ";
|
||||
}
|
||||
}
|
||||
public override string Description =>
|
||||
"The format of the chrome.yaml file defining image regions for the UI has\n" +
|
||||
"changed to support additional metadata fields. ";
|
||||
|
||||
readonly List<string> overrideLocations = new List<string>();
|
||||
readonly List<string> panelLocations = new List<string>();
|
||||
|
||||
@@ -17,14 +17,9 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
public class RemoveAirdropActorTypeDefault : UpdateRule
|
||||
{
|
||||
public override string Name { get { return "Removed internal default of ProductionAirdrop.ActorType"; } }
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "Removed internal default of 'c17' from ProductionAirdrop.ActorType.";
|
||||
}
|
||||
}
|
||||
public override string Name => "Removed internal default of ProductionAirdrop.ActorType";
|
||||
|
||||
public override string Description => "Removed internal default of 'c17' from ProductionAirdrop.ActorType.";
|
||||
|
||||
readonly List<Tuple<string, string>> missingActorTypes = new List<Tuple<string, string>>();
|
||||
|
||||
|
||||
@@ -17,14 +17,9 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
public class RemoveInitialFacingHardcoding : UpdateRule
|
||||
{
|
||||
public override string Name { get { return "Removed InitialFacing hardcoding for non-VTOLs"; } }
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "Removed hardcoding of InitialFacing to 192 for aircraft with VTOL: false.";
|
||||
}
|
||||
}
|
||||
public override string Name => "Removed InitialFacing hardcoding for non-VTOLs";
|
||||
|
||||
public override string Description => "Removed hardcoding of InitialFacing to 192 for aircraft with VTOL: false.";
|
||||
|
||||
readonly List<Tuple<string, string>> nonVTOLs = new List<Tuple<string, string>>();
|
||||
|
||||
|
||||
@@ -16,16 +16,12 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
public class RemoveWithPermanentInjury : UpdateRule
|
||||
{
|
||||
public override string Name { get { return "WithPermanentInjury trait has been removed."; } }
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "The WithPermanentInjury trait has been removed, and should be replaced by\n" +
|
||||
"TakeCover with negative ProneTime value + GrantConditionOnDamageState/-Health.\n" +
|
||||
"Affected actors are listed so that these traits can be defined.";
|
||||
}
|
||||
}
|
||||
public override string Name => "WithPermanentInjury trait has been removed.";
|
||||
|
||||
public override string Description =>
|
||||
"The WithPermanentInjury trait has been removed, and should be replaced by\n" +
|
||||
"TakeCover with negative ProneTime value + GrantConditionOnDamageState/-Health.\n" +
|
||||
"Affected actors are listed so that these traits can be defined.";
|
||||
|
||||
readonly List<string> locations = new List<string>();
|
||||
|
||||
|
||||
@@ -15,16 +15,11 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
public class RemoveYesNo : UpdateRule
|
||||
{
|
||||
public override string Name { get { return "Remove 'yes' and 'no' in favor of 'true' and 'false'."; } }
|
||||
public override string Name => "Remove 'yes' and 'no' in favor of 'true' and 'false'.";
|
||||
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "'Yes' and 'no' are no longer valid values for booleans. " +
|
||||
"Use 'true' and 'false' instead.";
|
||||
}
|
||||
}
|
||||
public override string Description =>
|
||||
"'Yes' and 'no' are no longer valid values for booleans. " +
|
||||
"Use 'true' and 'false' instead.";
|
||||
|
||||
public override IEnumerable<string> UpdateActorNode(ModData modData, MiniYamlNode actorNode)
|
||||
{
|
||||
|
||||
@@ -15,14 +15,9 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
class RenameProneTime : UpdateRule
|
||||
{
|
||||
public override string Name { get { return "Renamed ProneTime to Duration"; } }
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "Renamed TakeCover property ProneTime to Duration.";
|
||||
}
|
||||
}
|
||||
public override string Name => "Renamed ProneTime to Duration";
|
||||
|
||||
public override string Description => "Renamed TakeCover property ProneTime to Duration.";
|
||||
|
||||
public override IEnumerable<string> UpdateActorNode(ModData modData, MiniYamlNode actorNode)
|
||||
{
|
||||
|
||||
@@ -15,14 +15,9 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
class RenameRallyPointPath : UpdateRule
|
||||
{
|
||||
public override string Name { get { return "Renamed RallyPoint Offset to Path"; } }
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "The RallyPoint Offset property has been renamed to Path and now accepts multiple (or no) values.";
|
||||
}
|
||||
}
|
||||
public override string Name => "Renamed RallyPoint Offset to Path";
|
||||
|
||||
public override string Description => "The RallyPoint Offset property has been renamed to Path and now accepts multiple (or no) values.";
|
||||
|
||||
public override IEnumerable<string> UpdateActorNode(ModData modData, MiniYamlNode actorNode)
|
||||
{
|
||||
|
||||
@@ -16,14 +16,9 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
public class RenameSpins : UpdateRule
|
||||
{
|
||||
public override string Name { get { return "FallsToEarth.Spins has been refactored to MaximumSpinSpeed."; } }
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "The FallsToEarth.Spins property has been refactored to MaximumSpinSpeed.";
|
||||
}
|
||||
}
|
||||
public override string Name => "FallsToEarth.Spins has been refactored to MaximumSpinSpeed.";
|
||||
|
||||
public override string Description => "The FallsToEarth.Spins property has been refactored to MaximumSpinSpeed.";
|
||||
|
||||
readonly List<string> locations = new List<string>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user