-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfiguration.cs
More file actions
21 lines (19 loc) · 824 Bytes
/
Copy pathConfiguration.cs
File metadata and controls
21 lines (19 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System.ComponentModel.DataAnnotations;
using System.Net;
using System.Text.Json.Serialization;
using BattleBitAPI.Common;
namespace BattleBitApi;
public class Configuration
{
internal class ServerConfiguration
{
[JsonIgnore] public IPAddress? IPAddress { get; set; }
[Required] public string IP { get; set; } = "0.0.0.0";
[Required] public int Port { get; set; } = 30001;
[Required] public LogLevel LogLevel { get; set; } = LogLevel.Players | LogLevel.GameServers | LogLevel.GameServerErrors | LogLevel.Sockets;
[Required] public string ChatCommandPrefix { get; set; } = "!";
public string Password { get; set; } = "";
public List<string> MapRotation { get; set; } = new();
public List<string> GamemodeRotation { get; set; } = new();
}
}