Created
September 26, 2017 10:38
-
-
Save eXhausted/6d2457cf464ac48fe9c1410826c7a299 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public typealias TimeInterval = Double | |
struct Level: Codable { | |
let index: Int | |
let teamID: String | |
let teamName: String | |
let playerID: String | |
let playerName: String | |
let date: Date | |
var bouns: TimeInterval | |
var timeOnLevel: TimeInterval | |
var timeOnLevelWithBonus: TimeInterval | |
} | |
struct Team: Codable { | |
let name: String | |
var inputs: [Level] | |
var bonusTime: TimeInterval | |
} | |
struct GameStatJSON: Codable { | |
let start: Date | |
let teams: [Team] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment