Skip to content

DiceRoll

namespace Griff.Scenes;
public struct DiceRoll

Dice written as text (a component’s “2d6+3”), read once when the text changes: rolled each hit with Rand, or the plain number when it’s empty (or doesn’t read as dice).

public string? Text { get; set; }
public float Roll(float otherwise)

A roll of the dice, or otherwise when there are none.