Skip to content

Commit

Permalink
Make some types sealed
Browse files Browse the repository at this point in the history
  • Loading branch information
penev92 authored and pchote committed Oct 7, 2023
1 parent b865d0c commit dd83b31
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions OpenRA.Mods.Mobius/Traits/Palettes/ColorPickerColorShift.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace OpenRA.Mods.Mobius.Traits
{
[TraitLocation(SystemActors.World | SystemActors.EditorWorld)]
[Desc("Create a color picker palette from another palette.")]
class ColorPickerColorShiftInfo : TraitInfo
sealed class ColorPickerColorShiftInfo : TraitInfo
{
[PaletteReference]
[FieldLoader.Require]
Expand All @@ -43,7 +43,7 @@ class ColorPickerColorShiftInfo : TraitInfo
public override object Create(ActorInitializer init) { return new ColorPickerColorShift(this); }
}

class ColorPickerColorShift : ILoadsPalettes, ITickRender
sealed class ColorPickerColorShift : ILoadsPalettes, ITickRender
{
readonly ColorPickerColorShiftInfo info;
Color color;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

namespace OpenRA.Mods.Mobius.UtilityCommands
{
class RemasterCheckMissingSprites : IUtilityCommand
sealed class RemasterCheckMissingSprites : IUtilityCommand
{
string IUtilityCommand.Name => "--remaster-check-missing-sprites";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace OpenRA.Mods.Mobius.UtilityCommands
{
class DumpSequenceSheetsCommand : IUtilityCommand
sealed class DumpSequenceSheetsCommand : IUtilityCommand
{
static readonly int[] ChannelMasks = { 2, 1, 0, 3 };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace OpenRA.Mods.Mobius.UtilityCommands
{
class DumpTilesetSheetsCommand : IUtilityCommand
sealed class DumpTilesetSheetsCommand : IUtilityCommand
{
static readonly int[] ChannelMasks = { 2, 1, 0, 3 };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

namespace OpenRA.Mods.Mobius.UtilityCommands
{
class RemasterTilesetConverter : IUtilityCommand
sealed class RemasterTilesetConverter : IUtilityCommand
{
string IUtilityCommand.Name { get { return "--convert-tileset"; } }

Expand Down

0 comments on commit dd83b31

Please sign in to comment.