|
eolib-cpp 0.1.0-beta.7
Core C++ library for writing Endless Online applications
|
Creates server packets from packet family and action identifiers. More...
#include <eolib/protocol/net/server/packet_factory.hpp>
Public Member Functions | |
| PacketFactory ()=delete | |
Static Public Member Functions | |
| static std::unique_ptr< Packet > | Create (PacketFamily family, PacketAction action) |
| Creates a default-initialized server packet with the specified family and action. | |
| static bool | Contains (PacketFamily family, PacketAction action) noexcept |
| Checks whether a server packet exists with the specified family and action, without creating it. | |
| static std::unique_ptr< Packet > | Deserialize (PacketFamily family, PacketAction action, data::EoReader &reader) |
| Creates a server packet with the specified family and action, and deserializes it from the reader. | |
Creates server packets from packet family and action identifiers.
|
delete |
|
static |
Creates a default-initialized server packet with the specified family and action.
| family | the packet family. |
| action | the packet action. |
|
staticnoexcept |
Checks whether a server packet exists with the specified family and action, without creating it.
| family | the packet family. |
| action | the packet action. |
|
static |
Creates a server packet with the specified family and action, and deserializes it from the reader.
| family | the packet family. |
| action | the packet action. |
| reader | the reader that the packet data will be read from. |