|
eolib-cpp 0.1.0-beta.7
Core C++ library for writing Endless Online applications
|
A class for generating packet sequences. More...
#include <eolib/packet/packet_sequencer.hpp>
Public Member Functions | |
| PacketSequencer (const SequenceStart &start) noexcept | |
| Creates a sequencer with the specified sequence start. | |
| int | NextSequence () noexcept |
| Returns the next sequence value, updating the sequence counter in the process. | |
| void | SetSequenceStart (const SequenceStart &start) noexcept |
| Sets the sequence start, also known as the "starting counter ID". | |
| PacketSequencer | WithSequenceStart (const SequenceStart &start) const noexcept |
| Creates a new sequencer with the specified sequence start, preserving this sequencer's counter. | |
A class for generating packet sequences.
|
explicitnoexcept |
Creates a sequencer with the specified sequence start.
| start | the sequence start. |
|
noexcept |
Returns the next sequence value, updating the sequence counter in the process.
This is not a pure function; it should only be called once per packet.
|
noexcept |
Sets the sequence start, also known as the "starting counter ID".
The sequence counter is preserved.
| start | the new sequence start. |
|
noexcept |
Creates a new sequencer with the specified sequence start, preserving this sequencer's counter.
| start | the sequence start for the new sequencer. |