Vixen
c7401864
csharp
public readonly record struct Unlock

One thing somebody has, and where it came from.

Read the guide page for this →

Remarks

⚠ An order rather than a timestamp. Nothing in this library has a clock, for the same reason nothing in Vixen.Gameplay.Housing does — a collection is a durable row that spends almost all of its life hibernating. A caller that wants dates stamps them on the way into its own store; a counter is what makes "in the order I got them" replay identically.

Fields and properties (4)

  • public DefId Collectible

    What.

  • public UnlockSource Source

    How.

  • public DefId From

    What exactly — the boss, the quest, the achievement. None for nothing in particular.

  • public int Order

    The nth thing they unlocked.

Methods (1)

  • public Unlock(DefId Collectible, UnlockSource Source, DefId From, int Order)

    One thing somebody has, and where it came from.

Used by (2)

  • CollectionRecordVixen.Gameplay.Collections
  • CollectionTestsVixen.Gameplay.Collections.Tests