Set all the required information on server when auth.

This commit is contained in:
derek.holloway committed 2026-08-04 08:26:27 -07:00
1 parent d446464f2a
commit 007f87f986
5 files changed
+27 -15

No files matched your search

+4 -1
View File
@@ -4,13 +4,14 @@ using Mistox.Attributes;
namespace Mistox.ResevedPackets {
// Packet sent to clients when they are in range telling them to connect together
[mPacket]
public class UserConnectedPacket {
public string UserName { get; set; }
public IPAddress ClientIPAddress { get; set; }
public int ClientPort { get; set; }
}
// Packet send to server for Auth and responded to the client with Auth Success
[mPacket]
public class UserAuthPacket {
// Sent to the server
@@ -21,6 +22,7 @@ namespace Mistox.ResevedPackets {
public int AuthSuccessful { get; set; } = 0; // 0 is standard, -1 is auth failure, 1 is auth success
}
// Generic networked object packet
[mPacket]
public class EntityPacket {
@@ -32,6 +34,7 @@ namespace Mistox.ResevedPackets {
public byte[] InnerPayload { get; set; }
}
// Packet sent to all clients when a users TCP stream disconnects from the server
[mPacket]
public class UserDisconnectedPacket {
public string UserName { get; set; }