From 909718d8d5d9deae559d84b48df1cf04b084bd97 Mon Sep 17 00:00:00 2001 From: "derek.holloway" Date: Wed, 5 Aug 2026 14:20:24 -0700 Subject: [PATCH] Attach position to remote host --- MistoxServer/Client/UDPClient.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;