comparison GeoQuiz/Logic/GameInfoProtocol.swift @ 19:f140bb277c96

refactor code
author Dennis C. M. <dennis@denniscm.com>
date Sun, 23 Oct 2022 00:11:38 +0100
parents
children
comparison
equal deleted inserted replaced
18:d20cf93c9812 19:f140bb277c96
1 //
2 // GameInfoProtocol+Structs.swift
3 // GeoQuiz
4 //
5 // Created by Dennis Concepción Martín on 20/10/22.
6 //
7
8 import Foundation
9 import SwiftUI
10
11 @objc
12 public enum GameType: Int16, CaseIterable {
13 case guessTheFlag
14 case guessTheCapital
15 case guessTheCountry
16 case guessThePopulation
17 }
18
19 protocol GameInfo {
20 var type: GameType { get }
21 var level: String { get }
22 var name: String { get }
23 var isPremium: Bool { get }
24 var symbol: String { get }
25 var gradient: Gradient { get }
26 var numberOfQuestions: Int { get }
27 }