mirror of
https://github.com/NexusForever/NexusForever
synced 2026-08-14 00:26:05 -04:00
* [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>
32 lines
1.2 KiB
C#
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;
|
|
}
|
|
}
|