diff --git a/MistoxServer/Client/UDPClient.cs b/MistoxServer/Client/UDPClient.cs index add5ff9..58b217d 100644 --- a/MistoxServer/Client/UDPClient.cs +++ b/MistoxServer/Client/UDPClient.cs @@ -1,5 +1,6 @@ using System; using System.Net; +using System.Numerics; using System.Threading; using System.Threading.Tasks; @@ -7,9 +8,10 @@ namespace Mistox.Client { public class mUDPClient : IDisposable { public string UserName { get; set; } = ""; // The remote players UserName - public bool Alive { get; set; } = true; // Is the connection alive - public IPEndPoint _remoteHost { get; set; } // The remote IP Address + public bool WithinRange { get; set; } = true; // Is the user close enough? + public Vector3 Position { get; set; } // The remote location of the player + private IPEndPoint _remoteHost { get; set; } // The remote IP Address private readonly SemaphoreSlim _sendLock = new SemaphoreSlim(1, 1); private readonly MistoxClient _parent;