Skip to content

DiceAttribute

namespace Griff.Scenes;
public sealed class DiceAttribute : FieldEditorAttribute

Marks a string property as dice, as tabletop games write them (“2d6+3”, “d20”, “1d8+1d6-1” or a plain number; see Dice): the Inspector builds them from how many dice, how many sides and what’s added, and says the lowest, highest and average roll.

public override string Describe()
public override string? Problem(Component component, object? value)