4d225c65f2
- Barotrauma's projects are in the Barotrauma directory - All libraries are in the Libraries directory - MonoGame is now managed by NuGet, rather than referenced from the installed files (TODO: consider using PCL for easier cross-platform development?) - NuGet libraries are not included in the repo, as getting the latest versions automatically should be preferred - Removed Content/effects.mgfx as it didn't seem to be used anywhere - Removed some references to Subsurface directory - Renamed Launcher2 to Launcher
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
namespace Barotrauma.Networking
|
|
{
|
|
static class NetConfig
|
|
{
|
|
public const int DefaultPort = 14242;
|
|
|
|
//UpdateEntity networkevents aren't sent to clients if they're further than this from the entity
|
|
public const float UpdateEntityDistance = 2500.0f;
|
|
|
|
public const int MaxPlayers = 16;
|
|
|
|
public static string MasterServerUrl = GameMain.Config.MasterServerUrl;
|
|
|
|
//if a Character is further than this from the sub, the server will ignore it
|
|
//(in display units)
|
|
public const float CharacterIgnoreDistance = 20000.0f;
|
|
|
|
//how much the physics body of an item has to move until the server
|
|
//send a position update to clients (in sim units)
|
|
public const float ItemPosUpdateDistance = 2.0f;
|
|
|
|
public const float LargeCharacterUpdateInterval = 5.0f;
|
|
|
|
public const float DeleteDisconnectedTime = 10.0f;
|
|
|
|
public const float IdSendInterval = 0.2f;
|
|
public const float RerequestInterval = 0.2f;
|
|
|
|
public const int ReliableMessageBufferSize = 500;
|
|
public const int ResendAttempts = 10;
|
|
}
|
|
}
|