public sealed class ItemLibraryEvery item a build knows, compiled once against a catalog's tag table.
Remarks
The item half of what a DefinitionCatalog holds, resolved: names to tags, stat names to AttributeIds, affix pool addresses to the affixes in them. Built once at load and shared, because a bank window resolving an address per row is a string lookup per row per frame.
⚠ An address that names nothing is a warning rather than a failure. An item whose rarity or affix pool was not built is an item that still exists in ten thousand banks, and a realm that refuses to start over it helps nobody at three in the morning. What it gets instead is no rarity and no affixes, and a line in Problems that the content build fails on.
Fields and properties (4)
public static ItemLibrary EmptyA library with nothing in it.
public int CountHow many items it holds.
public IEnumerable<ItemTemplate> AllEvery item, in address order.
public IReadOnlyList<string> ProblemsWhat did not resolve. Empty in a build the content pipeline accepted.
Methods (6)
public static ItemLibrary Compile(DefinitionCatalog catalog)Compiles every item, affix and rarity in a catalog.
public ItemTemplate? Find(DefId id)Finds an item.
public ItemTemplate Get(DefId id)Finds an item, and refuses to carry on without it.
public ItemTemplate? Find(string address)Finds an item by the address it was authored at.
public AffixTemplate? FindAffix(DefId id)Finds an affix.
public ItemRarityTemplate? FindRarity(DefId id)Finds a rarity.
Used by (23)
- ContentTestsMmo.Content.Tests
- CoverageTestsMmo.Content.Tests
- MmoLibrariesMmo.Shared
- ReferenceTestsMmo.Content.Tests
- ContentVixen.Editor.Gameplay.Loot.Tests
- LootOutlineVixen.Editor.Gameplay.Loot
- LootSimulatorVixen.Editor.Gameplay.Loot
- AtomicityTestsVixen.Gameplay.Inventory.Tests
- BindingTestsVixen.Gameplay.Inventory.Tests
- ConservationOracleTestsVixen.Gameplay.Inventory.Tests
- ContainerSetVixen.Gameplay.Inventory
- ContainerTransactionTestsVixen.Gameplay.Inventory.Tests
- ContentVixen.Gameplay.Items.Tests
- ContentVixen.Gameplay.Loot.Tests
- ContentVixen.Gameplay.Inventory.Tests
- ItemAffixTestsVixen.Gameplay.Items.Tests
- ItemInstanceTestsVixen.Gameplay.Items.Tests
- ItemLibraryTestsVixen.Gameplay.Items.Tests
- ItemStatsVixen.Gameplay.Items
- ItemStatsTestsVixen.Gameplay.Items.Tests
- LootLibraryTestsVixen.Gameplay.Loot.Tests
- LootResultVixen.Gameplay.Loot
- LootRollTestsVixen.Gameplay.Loot.Tests