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

FunctionContext.ValueType Property

From DiceRoller Documentation

Gets or sets the type of value this function returns.

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

Syntax

public ResultType ValueType { get; set; }

Property Value

Type: Dice.ResultType

The type of value this function returns.

Remarks

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