Skip to content

Instantly share code, notes, and snippets.

@eXhausted
Created September 26, 2017 10:38
Show Gist options
  • Save eXhausted/6d2457cf464ac48fe9c1410826c7a299 to your computer and use it in GitHub Desktop.
Save eXhausted/6d2457cf464ac48fe9c1410826c7a299 to your computer and use it in GitHub Desktop.
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