Pack logic cleanup
This commit is contained in:
20
SVSim.Database/Models/GameConfigRoot.cs
Normal file
20
SVSim.Database/Models/GameConfigRoot.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SVSim.Database.Models.Config;
|
||||
|
||||
namespace SVSim.Database.Models;
|
||||
|
||||
/// <summary>
|
||||
/// The root of <see cref="GameConfiguration.Config"/>, stored as a single jsonb column.
|
||||
/// Each sub-object defaults to its own initialiser, so `new GameConfigRoot()` is fully populated
|
||||
/// with the canonical SV Classic / DCGEngine defaults.
|
||||
/// </summary>
|
||||
[Owned]
|
||||
public class GameConfigRoot
|
||||
{
|
||||
public DefaultGrantsConfig DefaultGrants { get; set; } = new();
|
||||
public PlayerConfig Player { get; set; } = new();
|
||||
public DefaultLoadoutConfig DefaultLoadout { get; set; } = new();
|
||||
public ChallengeConfig Challenge { get; set; } = new();
|
||||
public RotationConfig Rotation { get; set; } = new();
|
||||
public PackRateConfig PackRates { get; set; } = new();
|
||||
}
|
||||
Reference in New Issue
Block a user