You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
593 B
29 lines
593 B
namespace Model.Dice.Faces
|
|
{
|
|
public abstract class Face
|
|
{
|
|
public string StringValue { get; protected set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return StringValue;
|
|
}
|
|
}
|
|
public abstract class Face<T> : Face
|
|
{
|
|
public T Value { get; protected set; }
|
|
|
|
protected Face(T value)
|
|
{
|
|
Value = value;
|
|
StringValue = value.ToString();
|
|
}
|
|
|
|
protected Face(T value, string stringValue)
|
|
{
|
|
Value = value;
|
|
StringValue = stringValue;
|
|
}
|
|
}
|
|
}
|