18 lines
472 B
C++
18 lines
472 B
C++
#pragma once
|
|
|
|
enum PacketId {
|
|
KeepAlive = 0,
|
|
Disconnect,
|
|
UpgradeTower,
|
|
};
|
|
|
|
#include <examples/DisconnectPacket.h>
|
|
#include <examples/KeepAlivePacket.h>
|
|
#include <examples/UpgradeTowerPacket.h>
|
|
|
|
// they must be in the same order as in the enum !
|
|
using AllPackets = std::tuple<KeepAlivePacket, DisconnectPacket, UpgradeTowerPacket>;
|
|
|
|
#include <sp/default/DefaultPacketDispatcher.h>
|
|
#include <sp/default/DefaultPacketFactory.h>
|
|
#include <sp/default/DefaultPacketHandler.h> |