DieSide
public struct DieSide<OutputType> : Hashable where OutputType : Hashable
extension DieSide: CustomStringConvertible where OutputType: CustomStringConvertible
extension DieSide: CustomDebugStringConvertible where OutputType: CustomDebugStringConvertible
A class that masks a side, returning a custom value in lieu of a number.
Since
0.16.0-
Create a new DieSide with the given value.
Declaration
Swift
public init(_ value: OutputType)
Parameters
value
The value that this DieSide will return when rolled.
-
The value that this DieSide will return when rolled.
Declaration
Swift
public let value: OutputType
-
Declaration
Swift
public static func == (lhs: DieSide, rhs: DieSide) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public var debugDescription: String { get }