Vixen
caa30e12
csharp
public readonly record struct Requirement

One requirement with its names resolved: the form both ends evaluate.

Read the guide page for this →

Remarks

The same struct on the client and on the realm, and that is the whole point of the type. Doc 28 § Requirements: evaluated on the client for the UI and on the realm for the truth, out of one assembly, which is what makes a greyed-out button and a rejected request agree. Two implementations of "can I do this" is how a player learns to spam a button that says no.

Fields and properties (6)

  • public RequirementKind Kind

    What it asks about.

  • public AttributeId Subject

    Which value, for Value.

  • public GameplayTagRange Range

    Which tag prefix, for the tag kinds.

  • public RequirementComparison Comparison

    How the number compares.

  • public float Value

    What it compares against.

  • public const float Tolerance

    How close two floats have to be to count as equal.

Methods (3)

Used by (3)

  • CollectionLibraryVixen.Gameplay.Collections
  • RequirementSetVixen.Gameplay
  • RequirementTestsVixen.Gameplay.Tests