Change networked packets
This commit is contained in:
1 parent
258b019f1a
commit
ac08c7d184
1 file changed
+6
-8
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using Mistox.Attributes;
|
using Mistox.Attributes;
|
||||||
@@ -30,20 +31,17 @@ namespace Mistox.ResevedPackets {
|
|||||||
public byte[] InnerPayload { get; set; }
|
public byte[] InnerPayload { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Not implemented
|
public class UserTableObject {
|
||||||
// Packet sent to all clients when a users TCP stream connects to the server
|
|
||||||
[mPacket]
|
|
||||||
public class UserConnectedPacket {
|
|
||||||
public string UserName { get; set; }
|
public string UserName { get; set; }
|
||||||
public IPAddress ClientIPAddress { get; set; }
|
public IPAddress IpAddress { get; set; }
|
||||||
|
public Vector3 Position { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Not implemented
|
// Not implemented
|
||||||
// Packet sent to all clients when a global position update occurrs
|
// Packet sent to all clients when a global position update occurrs
|
||||||
[mPacket]
|
[mPacket]
|
||||||
public class UserPositionUpdatePacket {
|
public class HeartbeatPacket {
|
||||||
public string UserName { get; set; }
|
public List<UserTableObject> ServerList { get; set; }
|
||||||
public Vector3 Position { get; set; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Not implimented
|
// Not implimented
|
||||||
|
|||||||
Reference in new issue
Block a user