Vixen
c7401864
csharp
public readonly record struct LootOutlineRow

One row of a loot tree, flattened for a list a tree view draws.

Read the guide page for this →

Fields and properties (8)

  • public int Depth

    How deep it sits. Zero is the table the outline was taken of.

  • public DefId Table

    Which table it belongs to.

  • public int Row

    Which row of that table, or −1 for the table's own header.

  • public string Label

    What to write on it.

  • public float Share

    Its share of its table's weighted pick, from zero to one — or zero for a header and for an independent row, whose Chance is the number that matters.

  • public float Chance

    Its own chance, for an independent row, or zero.

  • public bool Conditional

    Whether conditions decide if it is in the table at all.

  • public bool IsTable

    Whether it rolls a nested table rather than dropping an item.

Methods (1)

  • public LootOutlineRow(int Depth, DefId Table, int Row, string Label, float Share, float Chance, bool Conditional, bool IsTable)

    One row of a loot tree, flattened for a list a tree view draws.

Used by (2)

  • LootOutlineVixen.Editor.Gameplay.Loot
  • LootOutlineTestsVixen.Editor.Gameplay.Loot.Tests