< Dice‎ | MacroContext
Revision as of 18:32, 27 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|MacroContext.ValueType Property}} Gets or sets the type of value this macro returns. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public ResultType ValueType { g...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MacroContext.ValueType Property

From DiceRoller Documentation

Gets or sets the type of value this macro returns.

  • Namespace: Dice
  • Assembly: DiceRoller (in DiceRoller.dll)

Syntax

public ResultType ValueType { get; set; }

Property Value

Type: Dice.ResultType

The type of value this macro returns.

Remarks

This field is initialized to ResultType.Total. The callback should change this if the macro needs to sometimes return number of successes.