fixed bug with recording matches on older versions, added colour scheme models

This commit is contained in:
Michael Simard
2021-10-31 11:05:15 -05:00
parent c88098e05e
commit 9374175c50
6 changed files with 93 additions and 7 deletions

View File

@@ -0,0 +1,21 @@
//
// ColorSchemeConfig.swift
// App
//
// Created by Michael Simard on 10/31/21.
//
import Foundation
import Foundation
import Fluent
import Vapor
struct ColorSchemeConfig: Content {
var gameId: Int
var tileColour: String?
var winColour: String?
var lossColour: String?
}

View File

@@ -16,7 +16,8 @@ struct GameConfig: Content {
var gameId: String
var name: String
var maps: [MapConfig]
var enabled:Bool
var enabled:Bool
var colours:ColorSchemeConfig?
}