20 lines
427 B
C++
20 lines
427 B
C++
#pragma once
|
|
|
|
#include <sp/default/DefaultPacket.h>
|
|
#include <sp/protocol/Field.h>
|
|
#include <sp/protocol/MessageBase.h>
|
|
|
|
enum KeepAlivePacketFields {
|
|
KeepAliveId = 0,
|
|
TestAlignField = 1,
|
|
};
|
|
|
|
using KeepAliveFields = std::tuple<
|
|
std::uint64_t, //<- KeepAliveId
|
|
sp::BitField<std::uint16_t,
|
|
sp::Field<std::uint16_t, 12>, //<- m_Tower
|
|
sp::Field<std::uint8_t, 4> //<- m_Upgrade
|
|
>
|
|
>;
|
|
|
|
DeclarePacket(KeepAlive); |