VOGameDifficulty
@interface VOGameDifficulty : NSObject
VOGameDifficulty represents a difficulty a specific VOGameData is to be played at.
-
A display name for the
VOGameDifficulty.Declaration
Objective-C
@property (readonly, strong, nonatomic) NSString *name;Swift
var name: String! { get } -
Enum value representing the difficulty level.
Declaration
Objective-C
@property (readonly, nonatomic) VOGameDifficultyLevel difficultyLevel;Swift
var difficultyLevel: VOGameDifficultyLevel { get } -
The minimum score required to win for this
VOGameDifficulty.Declaration
Objective-C
@property (readonly, nonatomic) NSInteger minimumScore;Swift
var minimumScore: Int { get } -
Default initializer for
VOGameDifficulty. Converts an NSDictionary representation to aVOGameDifficulty.Declaration
Objective-C
+ (VOGameDifficulty *)gameDifficultyFromDictionary:(NSDictionary *)dictionary;Swift
/*not inherited*/ init!(from dictionary: [AnyHashable : Any]!)Parameters
dictionary- The dictionary representation of
VOGameDifficulty.Return Value
Instance of
VOGameDifficulty. -
Converts a
VOGameDifficultyLevelto a string version.Declaration
Objective-C
+ (NSString *)stringFromDifficultyLevel:(VOGameDifficultyLevel)difficulty;Swift
class func string(from difficulty: VOGameDifficultyLevel) -> String!Parameters
difficulty- The enum
VOGameDifficultyLevel.Return Value
string version of
VOGameDifficultyLevel. -
Converts a string to enum
VOGameDifficultyLevel.Declaration
Objective-C
+ (VOGameDifficultyLevel)difficultyLevelFromString:(NSString *)difficulty;Swift
class func difficultyLevel(from difficulty: String!) -> VOGameDifficultyLevelParameters
difficulty- String value of
VOGameDifficultyLevel.Return Value
VOGameDifficultyLevelrepresenting the string value. -
Converts a
VOGameDifficultyto an NSDictionary that can be used for caching or sending to the server.Declaration
Objective-C
- (NSDictionary *)dictionaryRepresentation;Swift
func dictionaryRepresentation() -> [AnyHashable : Any]!Return Value
dictionary - Dictionary form of a
VOGameDifficulty.
View on GitHub
VOGameDifficulty Class Reference