Fix CA1822

This commit is contained in:
RoosterDragon
2023-03-12 16:24:19 +00:00
committed by Pavel Penev
parent e4cac1fffc
commit 277699cbd5
77 changed files with 109 additions and 105 deletions

View File

@@ -89,7 +89,7 @@ namespace OpenRA.Mods.Cnc.SpriteLoaders
}
}
bool IsShpD2(Stream s)
static bool IsShpD2(Stream s)
{
var start = s.Position;
@@ -127,7 +127,7 @@ namespace OpenRA.Mods.Cnc.SpriteLoaders
return b == 5 || b <= 3;
}
ShpD2Frame[] ParseFrames(Stream s)
static ShpD2Frame[] ParseFrames(Stream s)
{
var start = s.Position;

View File

@@ -51,7 +51,7 @@ namespace OpenRA.Mods.Cnc.SpriteLoaders
static readonly Regex FilenameRegex = new(@"^(?<prefix>.+?[\-_])(?<frame>\d{4})\.tga$");
static readonly Regex MetaRegex = new(@"^\{""size"":\[(?<width>\d+),(?<height>\d+)\],""crop"":\[(?<left>\d+),(?<top>\d+),(?<right>\d+),(?<bottom>\d+)\]\}$");
int ParseGroup(Match match, string group)
static int ParseGroup(Match match, string group)
{
return int.Parse(match.Groups[group].Value);
}

View File

@@ -39,7 +39,7 @@ namespace OpenRA.Mods.Cnc.SpriteLoaders
}
}
bool IsTmpRA(Stream s)
static bool IsTmpRA(Stream s)
{
var start = s.Position;
@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Cnc.SpriteLoaders
return a == 0 && b == 0x2c73;
}
TmpRAFrame[] ParseFrames(Stream s)
static TmpRAFrame[] ParseFrames(Stream s)
{
var start = s.Position;
var width = s.ReadUInt16();

View File

@@ -39,7 +39,7 @@ namespace OpenRA.Mods.Cnc.SpriteLoaders
}
}
bool IsTmpTD(Stream s)
static bool IsTmpTD(Stream s)
{
var start = s.Position;
@@ -51,7 +51,7 @@ namespace OpenRA.Mods.Cnc.SpriteLoaders
return a == 0 && b == 0x0D1AFFFF;
}
TmpTDFrame[] ParseFrames(Stream s)
static TmpTDFrame[] ParseFrames(Stream s)
{
var start = s.Position;
var width = s.ReadUInt16();

View File

@@ -127,7 +127,7 @@ namespace OpenRA.Mods.Cnc.SpriteLoaders
}
}
bool IsTmpTS(Stream s)
static bool IsTmpTS(Stream s)
{
var start = s.Position;
s.Position += 8;
@@ -152,7 +152,7 @@ namespace OpenRA.Mods.Cnc.SpriteLoaders
return test == sx * sy / 2 + 52;
}
ISpriteFrame[] ParseFrames(Stream s)
static ISpriteFrame[] ParseFrames(Stream s)
{
var start = s.Position;
var templateWidth = s.ReadUInt32();