view GeoQuiz/Logic/GameInfoProtocol.swift @ 21:b145c408f791

refactor code
author Dennis C. M. <dennis@denniscm.com>
date Tue, 25 Oct 2022 15:30:01 +0200
parents f140bb277c96
children
line wrap: on
line source

//
//  GameInfoProtocol+Structs.swift
//  GeoQuiz
//
//  Created by Dennis Concepción Martín on 20/10/22.
//

import Foundation
import SwiftUI

@objc
public enum GameType: Int16, CaseIterable {
    case guessTheFlag
    case guessTheCapital
    case guessTheCountry
    case guessThePopulation
}

protocol GameInfo {
    var type: GameType { get }
    var level: String { get }
    var name: String { get }
    var isPremium: Bool { get }
    var symbol: String { get }
    var gradient: Gradient { get }
    var numberOfQuestions: Int { get }
}