Vixen
c7401864
csharp
public record class ContainerPolicy

What a container will and will not take, and what it does to what it takes.

Read the guide page for this →

Remarks

Doc 28 § Inventory's claim, as data. Bags, equipment slots, bank tabs, guild bank tabs, mail attachments, trade windows, vendor buyback and loot windows are one container type with different policies — so there is one set of stacking rules, one set of capacity rules and one place a duplication bug could be.

Fields and properties (6)

  • public static ContainerPolicy Default

    Takes anything, stacks, keeps bound items, binds nothing, writable.

  • public GameplayTagQuery Accepts

    What may go in, as a tag query over the item's own tags.

  • public bool AllowsStacking

    Whether two compatible instances merge into one slot.

  • public bool AllowsBound

    Whether an already-bound item may be put in.

  • public ItemBinding BindsOn

    Which binding trigger arriving here fires.

  • public bool IsReadOnly

    Whether nothing may change. A vendor's stock list, a loot window after it is taken.

Used by (4)

  • ContainerVixen.Gameplay.Inventory
  • ContainerSetVixen.Gameplay.Inventory
  • ContainerTransactionTestsVixen.Gameplay.Inventory.Tests
  • ContentVixen.Gameplay.Inventory.Tests