mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-03-02 22:59:49 +00:00
WIP
This commit is contained in:
37
dDashboardServer/handlers/DashboardPacketHandler.h
Normal file
37
dDashboardServer/handlers/DashboardPacketHandler.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#pragma once
|
||||
|
||||
#include "PacketHandler.h"
|
||||
#include "ServiceType.h"
|
||||
|
||||
namespace DashboardPacketHandler {
|
||||
// Dashboard-specific implementations of RakNet packet handlers
|
||||
|
||||
struct DashboardNewIncomingConnection : public PacketHandler::NewIncomingConnection {
|
||||
void Handle() override;
|
||||
};
|
||||
|
||||
struct DashboardDisconnectionNotification : public PacketHandler::DisconnectionNotification {
|
||||
void Handle() override;
|
||||
};
|
||||
|
||||
struct DashboardConnectionLost : public PacketHandler::ConnectionLost {
|
||||
void Handle() override;
|
||||
};
|
||||
|
||||
struct DashboardConnectedPong : public PacketHandler::ConnectedPong {
|
||||
void Handle() override;
|
||||
};
|
||||
|
||||
struct DashboardUserPacketEnum : public PacketHandler::UserPacketEnum {
|
||||
ServiceType serviceType{};
|
||||
|
||||
bool Deserialize(RakNet::BitStream& bitStream);
|
||||
void Handle() override;
|
||||
};
|
||||
|
||||
// Initialize dashboard-specific packet handlers
|
||||
void RegisterDashboardHandlers();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user