Attach position to remote host
This commit is contained in:
1 parent
ac08c7d184
commit
909718d8d5
1 file changed
+4
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user