Use expression body syntax
This commit is contained in:
@@ -16,17 +16,12 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
public class RemovePlaceBuildingPalette : UpdateRule
|
||||
{
|
||||
public override string Name { get { return "*PlaceBuildingPreview palette overrides have been removed."; } }
|
||||
public override string Name => "*PlaceBuildingPreview palette overrides have been removed.";
|
||||
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "The palette overrides on the ActorPreviewPlaceBuildingPreview, FootprintPlaceBuildingPreview\n" +
|
||||
"SequencePlaceBuildingPreview, and D2kActorPreviewPlaceBuildingPreview traits have been removed.\n" +
|
||||
"New Alpha and LineBuildSegmentAlpha properties have been added in their place.";
|
||||
}
|
||||
}
|
||||
public override string Description =>
|
||||
"The palette overrides on the ActorPreviewPlaceBuildingPreview, FootprintPlaceBuildingPreview\n" +
|
||||
"SequencePlaceBuildingPreview, and D2kActorPreviewPlaceBuildingPreview traits have been removed.\n" +
|
||||
"New Alpha and LineBuildSegmentAlpha properties have been added in their place.";
|
||||
|
||||
readonly List<string> locations = new List<string>();
|
||||
|
||||
|
||||
@@ -15,15 +15,9 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
public class RemovePlayerHighlightPalette : UpdateRule
|
||||
{
|
||||
public override string Name { get { return "PlayerHighlightPalette trait has been removed."; } }
|
||||
public override string Name => "PlayerHighlightPalette trait has been removed.";
|
||||
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "PlayerHighlightPalette trait has been removed. Its functionality is now automatically provided by the engine.";
|
||||
}
|
||||
}
|
||||
public override string Description => "PlayerHighlightPalette trait has been removed. Its functionality is now automatically provided by the engine.";
|
||||
|
||||
public override IEnumerable<string> UpdateActorNode(ModData modData, MiniYamlNode actorNode)
|
||||
{
|
||||
|
||||
@@ -15,15 +15,9 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
public class RemoveRenderSpritesScale : UpdateRule
|
||||
{
|
||||
public override string Name { get { return "Remove RenderSprites.Scale."; } }
|
||||
public override string Name => "Remove RenderSprites.Scale.";
|
||||
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "The Scale option was removed from RenderSprites. Scale can now be defined on individual sequence definitions.";
|
||||
}
|
||||
}
|
||||
public override string Description => "The Scale option was removed from RenderSprites. Scale can now be defined on individual sequence definitions.";
|
||||
|
||||
public override IEnumerable<string> UpdateActorNode(ModData modData, MiniYamlNode actorNode)
|
||||
{
|
||||
|
||||
@@ -15,16 +15,11 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
public class RenameMPTraits : UpdateRule
|
||||
{
|
||||
public override string Name { get { return "Several traits spawning map actors and players have been renamed."; } }
|
||||
public override string Name => "Several traits spawning map actors and players have been renamed.";
|
||||
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "'SpawnMPUnits' was renamed to 'SpawnStartingUnits', 'MPStartUnits' to 'StartingUnits', 'MPStartLocations' to " +
|
||||
"'MapStartingLocations', and 'CreateMPPlayers' to 'CreateMapPlayers'.";
|
||||
}
|
||||
}
|
||||
public override string Description =>
|
||||
"'SpawnMPUnits' was renamed to 'SpawnStartingUnits', 'MPStartUnits' to 'StartingUnits', 'MPStartLocations' to " +
|
||||
"'MapStartingLocations', and 'CreateMPPlayers' to 'CreateMapPlayers'.";
|
||||
|
||||
public override IEnumerable<string> UpdateActorNode(ModData modData, MiniYamlNode actorNode)
|
||||
{
|
||||
|
||||
@@ -16,16 +16,11 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
public class ReplaceShadowPalette : UpdateRule
|
||||
{
|
||||
public override string Name { get { return "Removed ShadowPalette from WithShadow and projectiles."; } }
|
||||
public override string Name => "Removed ShadowPalette from WithShadow and projectiles.";
|
||||
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "The ShadowPalette field has been replaced by ShadowColor on projectiles.\n" +
|
||||
"The Palette field on WithShadow and ShadowPalette on WithParachute have similarly been replaced with ShadowColor.";
|
||||
}
|
||||
}
|
||||
public override string Description =>
|
||||
"The ShadowPalette field has been replaced by ShadowColor on projectiles.\n" +
|
||||
"The Palette field on WithShadow and ShadowPalette on WithParachute have similarly been replaced with ShadowColor.";
|
||||
|
||||
readonly List<string> locations = new List<string>();
|
||||
|
||||
|
||||
@@ -16,15 +16,9 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
public class ReplaceWithColoredOverlayPalette : UpdateRule
|
||||
{
|
||||
public override string Name { get { return "WithColoredOverlay Palette changed to Color."; } }
|
||||
public override string Name => "WithColoredOverlay Palette changed to Color.";
|
||||
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return "The Palette field has been removed from WithColoredOverlay. You must now specify the Color directly.";
|
||||
}
|
||||
}
|
||||
public override string Description => "The Palette field has been removed from WithColoredOverlay. You must now specify the Color directly.";
|
||||
|
||||
readonly List<string> locations = new List<string>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user