SerenityJS
    Preparing search index...

    Hierarchy

    • DataType
      • Attribute
    Index

    Constructors

    • Creates a new instance of Attribute.

      Parameters

      • min: number

        The minimum value of the attribute.

      • max: number

        The maximum value of the attribute.

      • current: number

        The current value of the attribute.

      • defaultMin: number

        The default maximum value of the attribute.

      • defaultMax: number

        The default minimum value of the attribute.

      • default_: number
      • name: AttributeName

        The name of the attribute.

      • modifiers: AttributeModifier[]

        The modifiers of the attribute.

      Returns Attribute

    Properties

    current: number

    The current value of the attribute.

    default: number

    The default value of the attribute.

    defaultMax: number

    The default maximum value of the attribute.

    defaultMin: number

    The default minimum value of the attribute.

    max: number

    The maximum value of the attribute

    min: number

    The minimum value of the attribute.

    modifiers: AttributeModifier[]

    The modifiers of the attribute.

    The name of the attribute.

    Methods

    • Creates a new instance of Attribute.

      Parameters

      • name: AttributeName

        The name of the attribute.

      • minimumValue: number

        The minimum value of the attribute.

      • maximumValue: number

        The maximum value of the attribute.

      • Optionalcurrent: number

        The current value of the attribute.

      • OptionaldefaultValue: number

        The default value of the attribute.

      Returns Attribute

      A new instance of Attribute.