mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-03-01 06:09:49 +00:00
38 lines
893 B
C++
38 lines
893 B
C++
#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();
|
|
}
|
|
|
|
|
|
|