Dedicated server actually works to some extent

Clients can connect and use chat, the sub list isn't synced properly and there's no way to start a game yet
This commit is contained in:
juanjp600
2017-06-19 15:12:19 -03:00
parent 16bc68d768
commit fbe7dfc6fb
10 changed files with 84 additions and 12 deletions
@@ -119,7 +119,17 @@ namespace Barotrauma.Networking
config.EnableMessageType(NetIncomingMessageType.ConnectionApproval);
log = new ServerLog(name);
InitProjSpecific();
entityEventManager = new ServerEntityEventManager(this);
whitelist = new WhiteList();
banList = new BanList();
LoadSettings();
LoadClientPermissions();
CoroutineManager.StartCoroutine(StartServer(isPublic));
}
@@ -341,7 +351,7 @@ namespace Barotrauma.Networking
#endif
if (!started) return;
base.Update(deltaTime);
foreach (UnauthenticatedClient unauthClient in unauthenticatedClients)
@@ -80,6 +80,10 @@ namespace Barotrauma.Networking
{
//string logLine = "[" + DateTime.Now.ToLongTimeString() + "] " + line;
#if SERVER
DebugConsole.NewMessage(line, Color.White); //TODO: REMOVE
#endif
var newText = new LogMessage(line, messageType);
lines.Enqueue(newText);