Vixen
02b45cc4
csharp
public readonly record struct Facet

One descriptive fact about a move: gait=walk, condition=injured.

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

Remarks

A pair rather than a bare tag, because almost every fact has an axis and a value, and a flat tag set forces the axis into the spelling — gait_walk, gait_run — where nothing can ask "what gait is this?" without string surgery. The pair makes that a lookup.

Fields and properties (3)

  • public Symbol Key

    What is being said about it.

  • public Symbol Value

    What is said.

  • public ulong Packed

    The two halves in one number, ordered key-major.

Methods (8)

  • public Facet(Symbol Key, Symbol Value)

    One descriptive fact about a move: gait=walk, condition=injured.

  • public static Facet Of(string key, string value)

    Interns both halves.

  • public int CompareTo(Facet other)

    Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

  • public override string ToString()

    Returns the fully qualified type name of this instance.

  • public static bool operator <(Facet left, Facet right)

    Orders two facets.

  • public static bool operator <=(Facet left, Facet right)
  • public static bool operator >(Facet left, Facet right)
  • public static bool operator >=(Facet left, Facet right)

Used by (23)

  • MoveSelectionBenchmarksVixen.Benchmarks.Animation
  • AnimationParametersVixen.Animation
  • AuthoringTestsVixen.Animation.Tests
  • FacetRecordVixen.Animation
  • FacetSetVixen.Animation
  • MoveCandidateVixen.Animation
  • MoveExplanationVixen.Animation
  • MoveExplanationsVixen.Animation
  • MoveRoleVixen.Animation
  • MoveSetVixen.Animation
  • MoveSetTestsVixen.Animation.Tests
  • ProxyShapeSetVixen.Animation
  • ProxyShapeTestsVixen.Animation.Tests
  • ProxyShapesVixen.Animation
  • ShapeTagsVixen.Animation
  • ShapeVocabularyVixen.Animation
  • SurfaceCoordinateVixen.Animation
  • TableTestSelectorVixen.Animation.Tests
  • TagTermVixen.Animation
  • WeightedFacetVixen.Animation
  • MoveQueryTextVixen.Editor.AssetEditors
  • MoveSetImporterTestsVixen.Editor.Assets.Tests
  • MoveSetTestsVixen.Editor.AssetEditors.Tests