mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Lowercase method paremeters
This commit is contained in:
parent
a64782d313
commit
97683932a1
10 changed files with 12 additions and 12 deletions
|
@ -46,7 +46,7 @@ namespace PKHeX.Core
|
|||
|
||||
public override PKM Clone() => new BK4((byte[])Data.Clone());
|
||||
|
||||
public string GetString(int Offset, int Count) => StringConverter4.GetBEString4(Data, Offset, Count);
|
||||
public string GetString(int offset, int count) => StringConverter4.GetBEString4(Data, offset, count);
|
||||
private static byte[] SetString(string value, int maxLength) => StringConverter4.SetBEString4(value, maxLength);
|
||||
|
||||
// Structure
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace PKHeX.Core
|
|||
public CK3() : this(new byte[PokeCrypto.SIZE_3CSTORED]) { }
|
||||
public override PKM Clone() => new CK3((byte[])Data.Clone());
|
||||
|
||||
private string GetString(int Offset, int Count) => StringConverter3.GetBEString3(Data, Offset, Count);
|
||||
private string GetString(int offset, int count) => StringConverter3.GetBEString3(Data, offset, count);
|
||||
private static byte[] SetString(string value, int maxLength) => StringConverter3.SetBEString3(value, maxLength);
|
||||
|
||||
// Trash Bytes
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace PKHeX.Core
|
|||
|
||||
public override PKM Clone() => new PB7((byte[])Data.Clone());
|
||||
|
||||
private string GetString(int Offset, int Count) => StringConverter.GetString7b(Data, Offset, Count);
|
||||
private string GetString(int offset, int count) => StringConverter.GetString7b(Data, offset, count);
|
||||
private static byte[] SetString(string value, int maxLength) => StringConverter.SetString7b(value, maxLength);
|
||||
|
||||
// Structure
|
||||
|
|
|
@ -37,7 +37,7 @@ namespace PKHeX.Core
|
|||
return pk;
|
||||
}
|
||||
|
||||
private string GetString(int Offset, int Count) => StringConverter3.GetString3(Data, Offset, Count, Japanese);
|
||||
private string GetString(int offset, int count) => StringConverter3.GetString3(Data, offset, count, Japanese);
|
||||
private byte[] SetString(string value, int maxLength) => StringConverter3.SetString3(value, maxLength, Japanese);
|
||||
|
||||
private const string EggNameJapanese = "タマゴ";
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace PKHeX.Core
|
|||
|
||||
public override PKM Clone() => new PK4((byte[])Data.Clone());
|
||||
|
||||
private string GetString(int Offset, int Count) => StringConverter4.GetString4(Data, Offset, Count);
|
||||
private string GetString(int offset, int count) => StringConverter4.GetString4(Data, offset, count);
|
||||
private static byte[] SetString(string value, int maxLength) => StringConverter4.SetString4(value, maxLength);
|
||||
|
||||
// Structure
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace PKHeX.Core
|
|||
{
|
||||
/// <summary> Generation 5 <see cref="PKM"/> format. </summary>
|
||||
public sealed class PK5 : PKM,
|
||||
IRibbonSetEvent3, IRibbonSetEvent4, IRibbonSetUnique3, IRibbonSetUnique4, IRibbonSetCommon3, IRibbonSetCommon4,
|
||||
IRibbonSetEvent3, IRibbonSetEvent4, IRibbonSetUnique3, IRibbonSetUnique4, IRibbonSetCommon3, IRibbonSetCommon4,
|
||||
IContestStats, IContestStatsMutable, IGroundTile
|
||||
{
|
||||
private static readonly ushort[] Unused =
|
||||
|
@ -37,7 +37,7 @@ namespace PKHeX.Core
|
|||
|
||||
public override PKM Clone() => new PK5((byte[])Data.Clone());
|
||||
|
||||
private string GetString(int Offset, int Count) => StringConverter.GetString5(Data, Offset, Count);
|
||||
private string GetString(int offset, int count) => StringConverter.GetString5(Data, offset, count);
|
||||
private static byte[] SetString(string value, int maxLength) => StringConverter.SetString5(value, maxLength);
|
||||
|
||||
// Trash Bytes
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace PKHeX.Core
|
|||
|
||||
public override PKM Clone() => new PK6((byte[])Data.Clone());
|
||||
|
||||
private string GetString(int Offset, int Count) => StringConverter.GetString6(Data, Offset, Count);
|
||||
private string GetString(int offset, int count) => StringConverter.GetString6(Data, offset, count);
|
||||
private static byte[] SetString(string value, int maxLength) => StringConverter.SetString6(value, maxLength);
|
||||
|
||||
// Structure
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace PKHeX.Core
|
|||
|
||||
public override PKM Clone() => new PK7((byte[])Data.Clone());
|
||||
|
||||
private string GetString(int Offset, int Count) => StringConverter.GetString7(Data, Offset, Count);
|
||||
private string GetString(int offset, int count) => StringConverter.GetString7(Data, offset, count);
|
||||
private byte[] SetString(string value, int maxLength, bool chinese = false) => StringConverter.SetString7(value, maxLength, Language, chinese: chinese);
|
||||
|
||||
// Structure
|
||||
|
|
|
@ -59,7 +59,7 @@ namespace PKHeX.Core
|
|||
|
||||
public override PKM Clone() => new PK8((byte[])Data.Clone());
|
||||
|
||||
private string GetString(int Offset, int Count) => StringConverter.GetString7b(Data, Offset, Count);
|
||||
private string GetString(int offset, int count) => StringConverter.GetString7b(Data, offset, count);
|
||||
private static byte[] SetString(string value, int maxLength) => StringConverter.SetString7b(value, maxLength);
|
||||
|
||||
public override int SIZE_PARTY => PokeCrypto.SIZE_8PARTY;
|
||||
|
@ -69,7 +69,7 @@ namespace PKHeX.Core
|
|||
public override Span<byte> Nickname_Trash { get => Data.AsSpan(0x58, 24); set { if (value.Length == 24) value.CopyTo(Data.AsSpan(0x58)); } }
|
||||
public override Span<byte> HT_Trash { get => Data.AsSpan(0xA8, 24); set { if (value.Length == 24) value.CopyTo(Data.AsSpan(0xA8)); } }
|
||||
public override Span<byte> OT_Trash { get => Data.AsSpan(0xF8, 24); set { if (value.Length == 24) value.CopyTo(Data.AsSpan(0xF8)); } }
|
||||
|
||||
|
||||
// Maximums
|
||||
public override int MaxIV => 31;
|
||||
public override int MaxEV => 252;
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace PKHeX.Core
|
|||
public XK3() : base(PokeCrypto.SIZE_3XSTORED) { }
|
||||
public override PKM Clone() => new XK3((byte[])Data.Clone()){Purification = Purification};
|
||||
|
||||
private string GetString(int Offset, int Count) => StringConverter3.GetBEString3(Data, Offset, Count);
|
||||
private string GetString(int offset, int count) => StringConverter3.GetBEString3(Data, offset, count);
|
||||
private static byte[] SetString(string value, int maxLength) => StringConverter3.SetBEString3(value, maxLength);
|
||||
|
||||
// Trash Bytes
|
||||
|
|
Loading…
Reference in a new issue