Looks like a lot more than just netcode is getting rewritten. Removing coroutines because there are better ways of handling asynchronous tasks, removing filestream because that's to be reimplemented later
33 lines
724 B
C#
33 lines
724 B
C#
using Lidgren.Network;
|
|
using Microsoft.Xna.Framework;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Barotrauma.Networking
|
|
{
|
|
class UnauthenticatedClient
|
|
{
|
|
public NetConnection Connection;
|
|
public int Nonce;
|
|
|
|
public float AuthTimer;
|
|
|
|
public UnauthenticatedClient(NetConnection connection, int nonce)
|
|
{
|
|
Connection = connection;
|
|
Nonce = nonce;
|
|
|
|
AuthTimer = 5.0f;
|
|
}
|
|
}
|
|
|
|
partial class GameServer : NetworkMember, IPropertyObject
|
|
{
|
|
List<UnauthenticatedClient> unauthenticatedClients = new List<UnauthenticatedClient>();
|
|
|
|
}
|
|
}
|