namespace RageCoop.Server
{
///
/// Settings for RageCoop Server
///
public class ServerSettings
{
///
/// Port to listen for incoming connections
///
public int Port { get; set; } = 4499;
///
/// Maximum number of players on this server
///
public int MaxPlayers { get; set; } = 32;
///
/// Maximum latency allowed for a client, a client will be kicked if it's latency it's higher than this value
///
public int MaxLatency { get; set; } = 500;
///
/// The server name to be shown on master server
///
public string Name { get; set; } = "RAGECOOP server";
///
/// The message to send when a client connected (not visible to others)
///
public string WelcomeMessage { get; set; } = "Welcome on this server :)";
// public bool HolePunch { get; set; } = true;
///
/// Whether or not to announce this server so it'll appear on server list.
///
public bool AnnounceSelf { get; set; } = false;
///
/// Master server address, mostly doesn't need to be changed.
///
public string MasterServer { get; set; } = "[AUTO]";
///
/// See .
///
public int LogLevel { get; set; }=2;
///
/// NPC data won't be sent to a player if their distance is greater than this value. -1 for unlimited.
///
public float NpcStreamingDistance { get; set; } = 500;
///
/// Player's data won't be sent to another player if their distance is greater than this value. -1 for unlimited.
///
public float PlayerStreamingDistance { get; set; } = -1;
}
}