prep for sweat and adam
This commit is contained in:
@@ -31,10 +31,18 @@ final class Match: Model, Content {
|
||||
@Field(key: "players")
|
||||
var players: String?
|
||||
|
||||
@Field(key: "sweaty")
|
||||
var sweaty: Bool?
|
||||
|
||||
@Field(key: "finalKillRuinedPlayerId")
|
||||
var finalKillRuinedPlayerId: Int?
|
||||
|
||||
@Field(key: "numberOfFinalKillsRuined")
|
||||
var numberOfFinalKillsRuined: Int?
|
||||
|
||||
init() { }
|
||||
|
||||
init(id: UUID? = nil, map:String?, win:Bool, date:Date, roundsWon:Int?, roundsLost:Int?, codGame:String?, notes:String?, players:String?) {
|
||||
init(id: UUID? = nil, map:String?, win:Bool, date:Date, roundsWon:Int?, roundsLost:Int?, codGame:String?, notes:String?, players:String?, sweaty:Bool?, finalKillRuinedPlayerId:Int?, numberOfFinalKillsRuined:Int?) {
|
||||
self.id = id
|
||||
self.map = map
|
||||
self.win = win
|
||||
@@ -44,6 +52,10 @@ final class Match: Model, Content {
|
||||
self.codGame = codGame;
|
||||
self.notes = notes;
|
||||
self.players = players
|
||||
self.sweaty = sweaty
|
||||
self.finalKillRuinedPlayerId = finalKillRuinedPlayerId
|
||||
self.numberOfFinalKillsRuined = numberOfFinalKillsRuined
|
||||
|
||||
}
|
||||
|
||||
func update( newMatch:Match) {
|
||||
@@ -60,6 +72,10 @@ final class Match: Model, Content {
|
||||
self.codGame = newMatch.codGame;
|
||||
self.notes = newMatch.notes;
|
||||
self.players = newMatch.players
|
||||
self.sweaty = newMatch.sweaty
|
||||
self.finalKillRuinedPlayerId = newMatch.finalKillRuinedPlayerId
|
||||
self.numberOfFinalKillsRuined = newMatch.numberOfFinalKillsRuined
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user