Vixen
dd8b0a81
csharp
public static class BlockoutStrings

Every word the blockout toolset shows, declared once.

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

Remarks

One family for sixty-nine commands that three local helpers declared between them. BlockoutMode.Register's Make, Verb and Declare each took a label and built new StringId("editor.command." + id, label) out of it, so the census saw three constructions and the tree had sixty-nine undeclared words — which is the shape a helper hides best.

⚠ The labels are here rather than at the registration, and the ordering is the registration's. A key the family does not carry throws while the mode registers, which is deterministic and is what BlockoutModeTests exercises on every run.

Two of the three groups are computed: one command per ShapeKind in BlockoutMode.Kinds and one per BlockoutElement, both built from the same lists the registration walks — so a shape added to Kinds gets a declared label rather than an undeclared one.

Fields and properties (2)

  • public static StringFamily Commands

    Every command the mode registers, by its command id.

  • public static IReadOnlyList<StringId> All

    What a translator's template for this toolset holds.

Used by (2)

  • BlockoutModeVixen.Editor.Blockout
  • BlockoutModuleVixen.Editor.Blockout