The serializable shape of a SimpleRoll.

interface Data {
    __kind?: string;
    dieFaces: number;
    modifier: number;
    numDice: number;
    rolls: number[];
}

Hierarchy (View Summary)

Properties

__kind?: string

Discriminator kind, written on serialization (SohlEntity.toJSON) and read back on revival. Optional as constructor input — it is derived from the concrete class, not supplied by callers.

dieFaces: number

Faces per die (the M in NdM+K).

modifier: number

Flat modifier (the K in NdM+K).

numDice: number

Number of dice (the N in NdM+K).

rolls: number[]

Individual die results, if already rolled.