nexusforever/Source/NexusForever.WorldServer/WorldServerConfiguration.cs
kirmmin 52a94ea783
[RBAC/Roles] Apply Default Roles (#387)
* [RBAC/Roles] Apply Default Roles

CreateAccount method update for Role

Use "Null coalescing assignment operator"... apparently?

* Updated Role parameter for account creation command to optional.

Co-authored-by: Rawaho <rawahodev@gmail.com>
2021-12-05 20:57:35 +13:00

32 lines
1.2 KiB
C#

using System.Collections.Generic;
using NexusForever.Database.Configuration;
using NexusForever.Shared.Configuration;
namespace NexusForever.WorldServer
{
public class WorldServerConfiguration
{
public struct MapConfig
{
public string MapPath { get; set; }
public List<ushort> PrecacheBaseMaps { get; set; }
public List<ushort> PrecacheMapSpawns { get; set; }
public bool SynchronousUpdate { get; set; }
public uint? GridActionThreshold { get; set; }
public uint? GridActionMaxRetry { get; set; }
public double? GridUnloadTimer { get; set; }
public uint? MaxInstances { get; set; }
}
public NetworkConfig Network { get; set; }
public DatabaseConfig Database { get; set; }
public MapConfig Map { get; set; }
public bool UseCache { get; set; } = false;
public ushort RealmId { get; set; }
public string MessageOfTheDay { get; set; }
public uint LengthOfInGameDay { get; set; }
public bool CrossFactionChat { get; set; } = true;
public uint MaxPlayers { get; set; } = 50u;
public uint? DefaultRole { get; set; } = null;
}
}