PKHeX/PKHeX.Core/Saves/Substructures/Inventory
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
..
Item Encapsulate item pouch arrays/etc for finer control (#3860) 2023-04-16 12:58:07 -07:00
Pouch Encapsulate item pouch arrays/etc for finer control (#3860) 2023-04-16 12:58:07 -07:00
IItemFavorite.cs Move some files around 2022-03-15 19:23:03 -07:00
IItemFreeSpace.cs Move some files around 2022-03-15 19:23:03 -07:00
IItemFreeSpaceIndex.cs Move some files around 2022-03-15 19:23:03 -07:00
IItemNewFlag.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
InventoryType.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
MyItem.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00