namespace RageCoop.Server
{
///
/// Settings for RageCoop Server
///
public class Settings
{
///
/// 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 website address to be shown on master server
///
public string Website { get; set; } = "https://ragecoop.online/";
///
/// The description to be shown on master server
///
public string Description { get; set; } = "RAGECOOP server";
///
/// The game mode to be shown on master server
///
public string GameMode { get; set; } = "FreeRoam";
///
/// The language to be shown on master server
///
public string Language { get; set; } = "English";
///
/// The message to send when a client connected (not visible to others)
///
public string WelcomeMessage { get; set; } = "Welcome on this server :)";
///
/// 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; } = "https://masterserver.ragecoop.online/";
///
/// See .
///
public int LogLevel { get; set; } = 0;
///
/// 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;
///
/// If enabled, all clients will have same weather and time as host
///
public bool WeatherTimeSync { get; set; } = true;
///
/// List of all allowed username characters
///
public string AllowedUsernameChars { get; set; } = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-_";
///
/// Whether to use direct connection between players to send entity information, needs to be enabled if on WAN for this feature to function properly.
///
public bool UseP2P { get; set; } = false;
///
/// Whether to enable zerotier VLAN functionality, allowing you to host a server behind NAT firewall, no port forward required.
///
public bool UseZeroTier { get; set; } = false;
///
/// Use in-game voice chat to communicate with other players
///
public bool UseVoice { get; set; } = false;
///
/// The zerotier network id to join, default value is zerotier's public Earth network.
///
public string ZeroTierNetworkID = "8056c2e21c000001";
}
}