Skip to main content

Module engine

Module engine 

Source
Expand description

Roll execution, roll analysis, and tray operations. Stateful dice engine.

DiceEngine combines dice definitions and trays, then exposes the core operations used by user interfaces: dice CRUD, tray CRUD, random rolls, and deterministic roll analysis.

Structsยง

DiceEngine
In-memory dice and tray engine.
DieRoll
Result of rolling one die.
PointRange
Inclusive integer point range.
RollAnalysis
Deterministic analysis for a roll expression.
RollBatchResult
Result of rolling multiple dice.
SlotResult
Snapshot result for one tray slot.
TrayResult
Snapshot result for a tray.