Contents

init(id:value:)

Creates a score counter with a unique identifier and initial value.

Declaration

init(id: ScoreCounter.ID, value: Int64 = 0)

Parameters

  • id:

    A unique identifier of the score counter.

  • value:

    The initial value of the score counter.