PKHeX/PKHeX.Core/Util
Kurt fa9a809751
Encapsulate item pouch arrays/etc for finer control (#3860)
* Extract/encapsulate inventory legal arrays to interface+class

Hiding them behind methods allows these to be left as ReadOnlySpan<ushort> and thus never allocate on the heap.
Also refactors out some logic for checking if an item is legal.

End result feels more maintainable and is less bloaty (no more passing in a nullable func)

Batch editing
* Add HasType filter

```
=HasType=11
.HeldItem=Meadow Plate
```

slaps a meadow plate on any pkm with grass type
Use `=PersonalType1=11` for only primary grass types; only-secondary-type grass will not match it.
2023-04-16 12:58:07 -07:00
..
Localization Regenerate localizations, remove System.String 2022-11-24 20:06:46 -08:00
ArrayUtil.cs Encapsulate item pouch arrays/etc for finer control (#3860) 2023-04-16 12:58:07 -07:00
BinaryCodedDecimal.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
ComboItemUtil.cs Minor clean 2023-04-13 00:05:10 -07:00
DateUtil.cs Update from .NET Framework 4.6 to .NET 7 (#3729) 2023-01-21 20:02:33 -08:00
FileUtil.cs Update from .NET Framework 4.6 to .NET 7 (#3729) 2023-01-21 20:02:33 -08:00
FlagUtil.cs Update from .NET Framework 4.6 to .NET 7 (#3729) 2023-01-21 20:02:33 -08:00
MessageStrings.cs Gen 5 enhancements. (#3756) 2023-02-03 12:44:21 -08:00
NetUtil.cs Update from .NET Framework 4.6 to .NET 7 (#3729) 2023-01-21 20:02:33 -08:00
PathUtil.cs Minor tweaks 2023-03-28 11:29:29 -07:00
RandUtil.cs Less allocation, minor tweaks 2023-03-27 00:11:42 -07:00
ReflectUtil.cs Show affixedribbon next to markings 2023-04-01 16:52:12 -07:00
ResourceUtil.cs Update from .NET Framework 4.6 to .NET 7 (#3729) 2023-01-21 20:02:33 -08:00
StringUtil.cs Less allocation, minor tweaks 2023-03-27 00:11:42 -07:00
UpdateUtil.cs Minor tweaks 2023-03-28 11:29:29 -07:00
Util.cs Update from .NET Framework 4.6 to .NET 7 (#3729) 2023-01-21 20:02:33 -08:00
ValueTypeTypeConverter.cs Update from .NET Framework 4.6 to .NET 7 (#3729) 2023-01-21 20:02:33 -08:00