map, player, game, gamemode data now database driven
This commit is contained in:
31
Sources/App/Content/Config/Configuration.swift
Normal file
31
Sources/App/Content/Config/Configuration.swift
Normal 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
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user