Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace IStatChangeInfo<T>

Type parameters

  • T

Index

Properties

Functions

Properties

Optional important

important: undefined | false | true

Whether this change is "important" (for example, used when actions affect stats)

Optional reason

Uses StatChangeReason.Normal when not provided

Functions

get

  • Creates a stat change info object

    Type parameters

    • T

    Parameters

    • important: boolean

      Marked as "important" if true

    Returns IStatChangeInfo<T>

  • Creates a stat change info object

    Type parameters

    • T

    Parameters

    • reasonOrInfo: StatChangeReason | IStatChangeInfo

      A StatChangeReason, or an already created IStatChangeInfo object.

    • Optional important: undefined | false | true

      Whether this change should be marked as important

    Returns IStatChangeInfo<T>

Generated using TypeDoc