/// <summary>
 /// Initializes a new instance of the <see cref="RollInstruction"/> struct.
 /// </summary>
 /// <param name="instruction">Instruction.</param>
 public RollInstruction(RollNotation instruction)
 {
     this.Instruction = instruction;
     this.Total       = 0;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RollInstruction"/> struct.
 /// </summary>
 /// <param name="total">Total.</param>
 public RollInstruction(int total)
 {
     this.Instruction = RollNotation.Value;
     this.Total       = total;
 }
Exemple #3
0
        /// <summary>
        /// Gets priority of roll notation enum.
        /// </summary>
        /// <param name="value">Roll notation enum.</param>
        /// <returns>Priority.</returns>
        public static ushort GetPriority(this RollNotation value)
        {
            RollNotationValue rnv = (uint)value;

            return(rnv.Priority);
        }