Skip to content

@dice-roller/rpg-dice-roller / dice / ResolvedDie

Interface: ResolvedDie ​

Defined in: src/dice/types.ts:89

A die with every value resolved to a plain number, and a roll() that always exists.

Extends ​

Properties ​

average ​

readonly average: number

Defined in: src/dice/types.ts:84

Inherited from ​

DieSnapshot.average


faceCount ​

readonly faceCount: number

Defined in: src/dice/types.ts:85

Inherited from ​

DieSnapshot.faceCount


max ​

readonly max: number

Defined in: src/dice/types.ts:83

Inherited from ​

DieSnapshot.max


min ​

readonly min: number

Defined in: src/dice/types.ts:82

Inherited from ​

DieSnapshot.min


notation ​

readonly notation: string

Defined in: src/dice/types.ts:81

Inherited from ​

DieSnapshot.notation


source ​

readonly source: DieLike

Defined in: src/dice/types.ts:92

The die that was resolved.

Methods ​

roll() ​

roll(generator): number

Defined in: src/dice/types.ts:90

Parameters ​

generator ​

NumberGenerator

Returns ​

number

MIT Licensed · Credits