Class Die
Represents a single Die with a given number of sides.
Inheritance
System.Object
Die
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: osrlib.Dice
Assembly: osrlib.Core.dll
Syntax
public class Die
Constructors
| Improve this Doc View SourceDie(DieType)
Creates a new instance of a Die.
Declaration
public Die(DieType type)
Parameters
Type | Name | Description |
---|---|---|
DieType | type | The number of sides for the Die. This value must be greater than or equal to 2. |
Properties
| Improve this Doc View SourceSides
Gets the number of sides of the Die.
Declaration
public int Sides { get; }
Property Value
Type | Description |
---|---|
System.Int32 |