Vixen
02b45cc4
csharp
public record class MusicTransition

A route from one segment to another, and when it is allowed to be taken.

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

Remarks

Declared rather than called, so the rule is content. Gameplay sets a parameter — intensity = 0.8 — and which piece of music that means is an asset edit. The alternative is a switch statement in whichever system happened to notice the fight start, and a composer who wants a different arrangement at 0.6 has to find a programmer.

Transitions are checked in the order they are declared and the first that applies wins, so a specific one goes above a general one exactly as it would in any other rule list.

Fields and properties (6)

  • public string From

    Which segment it leads out of. Empty means any of them.

  • public string To

    Which segment it leads to.

  • public MusicQuantize Quantize

    Where it is allowed to land.

  • public string Parameter

    Which engine-wide parameter decides, or empty for one gameplay takes by name.

  • public float Minimum

    The bottom of the range it applies over.

  • public float Maximum

    The top of the range it applies over.

Used by (3)

  • MusicPlayerVixen.Audio
  • MusicPlayerTestsVixen.Audio.Tests
  • MusicTransitionAssetVixen.Audio