map, player, game, gamemode data now database driven

This commit is contained in:
Michael Simard
2021-10-31 00:01:27 -05:00
parent b0b0b7bc60
commit 64a66e28b8
22 changed files with 711 additions and 143 deletions

View File

@@ -0,0 +1,31 @@
//
// Configuration.swift
// App
//
// Created by Michael Simard on 10/29/21.
//
import Foundation
import Fluent
import Vapor
struct Configuration : Content {
var games:[GameConfig]
var gameModes:[GameModeConfig]
var gameModeGroups:[GameModeGroupConfig]
var players:[PlayerConfig]
var lossReasons:[LossReasonConfig]
init (games:[GameConfig], gameModes:[GameModeConfig], gameModeGroups:[GameModeGroupConfig], players:[PlayerConfig], lossReasons:[LossReasonConfig]){
self.games = games
self.gameModes = gameModes
self.gameModeGroups = gameModeGroups
self.players = players
self.lossReasons = lossReasons
}
}