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.
Creates a score counter with a unique identifier and initial value.
init(id: ScoreCounter.ID, value: Int64 = 0)A unique identifier of the score counter.
The initial value of the score counter.