Fix CA1822
This commit is contained in:
committed by
Pavel Penev
parent
e4cac1fffc
commit
277699cbd5
@@ -17,7 +17,7 @@ namespace OpenRA.Mods.Cnc.AudioLoaders
|
||||
{
|
||||
public class AudLoader : ISoundLoader
|
||||
{
|
||||
bool IsAud(Stream s)
|
||||
static bool IsAud(Stream s)
|
||||
{
|
||||
var start = s.Position;
|
||||
s.Position += 11;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
return MoveStep(MovementSpeed, facing);
|
||||
}
|
||||
|
||||
WVec MoveStep(int speed, WAngle facing)
|
||||
static WVec MoveStep(int speed, WAngle facing)
|
||||
{
|
||||
var dir = new WVec(0, -1024, 0).Rotate(WRot.FromYaw(facing));
|
||||
return speed * dir / 1024;
|
||||
|
||||
@@ -252,7 +252,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
|
||||
Console.WriteLine();
|
||||
}
|
||||
|
||||
void ConvertStartLengthFacings(string input)
|
||||
static void ConvertStartLengthFacings(string input)
|
||||
{
|
||||
var splitting = input.Split(',');
|
||||
if (splitting.Length >= 3)
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
|
||||
ShowMainMenu(world);
|
||||
}
|
||||
|
||||
void ShowMainMenu(World world)
|
||||
static void ShowMainMenu(World world)
|
||||
{
|
||||
promptAccepted = true;
|
||||
Ui.ResetAll();
|
||||
|
||||
Reference in New Issue
Block a user