Vixen
dd8b0a81
csharp
public readonly record struct FactLine

One row of a derived-numbers block, as the @for keys it.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ The whole record is the key. A FactRow holds no signals, so a binding inside the loop body would have nothing to notice a changed number with — the value is the identity, and a new reading is a new key whose region is built fresh. That is the immutable-data half of the @for rule, and it is the opposite of what VXML2011 teaches a reader who has only met that warning.

⚠ And the slot is in it so that two rows reading the same label and the same value cannot collide: BuildContext.For has no answer for two equal keys in one loop.

Fields and properties (3)

  • public int Slot

    Where it is in the block.

  • public string Label

    What it is called.

  • public string Value

    And what it reads.

Methods (1)

  • public FactLine(int Slot, string Label, string Value)

    One row of a derived-numbers block, as the @for keys it.

Used by (2)

  • FactBlockVixen.Editor.Terrain
  • LayerBlockVixen.Editor.Terrain