2020-01-23 21:03:54 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace Model
|
|
|
|
|
{
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class Server
|
|
|
|
|
{
|
|
|
|
|
public DateTime SpawnedAtUtc { get; set; } = DateTime.UtcNow;
|
2020-01-25 16:59:28 +01:00
|
|
|
|
public DateTime LastHeartBeatUtc { get; set; }
|
2020-01-23 21:03:54 +01:00
|
|
|
|
public int ProcessId { get; set; }
|
|
|
|
|
public int Port { get; set; }
|
|
|
|
|
public bool IsStarted { get; set; }
|
|
|
|
|
public bool IsPrivate { get; set; }
|
|
|
|
|
public int CurrentPlayers { get; set; }
|
|
|
|
|
public int MaximumPlayers { get; set; }
|
|
|
|
|
public string GameType { get; set; }
|
2020-01-27 13:23:00 +01:00
|
|
|
|
public Mod Mod { get; set; }
|
2020-01-23 21:03:54 +01:00
|
|
|
|
public IList<Player> Players { get; set; } = new List<Player>();
|
|
|
|
|
}
|
|
|
|
|
}
|