Vixen
caa30e12
csharp
public sealed class ItemLibrary

Every item a build knows, compiled once against a catalog's tag table.

Read the guide page for this →

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 Empty

    A library with nothing in it.

  • public int Count

    How many items it holds.

  • public IEnumerable<ItemTemplate> All

    Every item, in address order.

  • public IReadOnlyList<string> Problems

    What did not resolve. Empty in a build the content pipeline accepted.

Methods (6)

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