Minor clean

This commit is contained in:
Kurt
2022-10-01 17:46:11 -07:00
parent 2578ba073c
commit 33a2ab24f1
106 changed files with 268 additions and 313 deletions

View File

@@ -33,17 +33,14 @@ public override byte[] Write()
return ms.ToArray();
}
private static EvolutionMethod ReadEvolution(ReadOnlySpan<byte> entry)
private static EvolutionMethod ReadEvolution(ReadOnlySpan<byte> entry) => new()
{
return new()
{
Method = (EvolutionType)ReadUInt16LittleEndian(entry[0..]),
Argument = ReadUInt16LittleEndian(entry[2..]),
Species = ReadUInt16LittleEndian(entry[4..]),
Form = entry[6],
Level = entry[7]
};
}
Method = (EvolutionType)ReadUInt16LittleEndian(entry),
Argument = ReadUInt16LittleEndian(entry[2..]),
Species = ReadUInt16LittleEndian(entry[4..]),
Form = entry[6],
Level = entry[7],
};
public static IReadOnlyList<EvolutionMethod[]> GetArray(BinLinkerAccessor data)
{