A sequence start sent in the AccountReplyServerPacket, used by the official EO server.
More...
#include <eolib/packet/sequence_start.hpp>
Inherits eolib::packet::SequenceStart.
|
| int | Value () const noexcept override |
| | Gets the sequence start value.
|
| virtual | ~SequenceStart ()=default |
|
| static AccountReplySequenceStart | FromValue (int value) noexcept |
| | Creates an instance with the specified value.
|
| template<typename Urbg> |
| static AccountReplySequenceStart | Generate (Urbg &rng) |
| | Generates an instance with a random value in the range [0, MaxValue).
|
| static AccountReplySequenceStart | Generate () |
| | Generates an instance with a random value in the range [0, MaxValue), using a thread-local random engine.
|
|
| static constexpr int | MaxValue = 240 |
| | The exclusive upper bound of generated values.
|
A sequence start sent in the AccountReplyServerPacket, used by the official EO server.
◆ FromValue()
| AccountReplySequenceStart eolib::packet::AccountReplySequenceStart::FromValue |
( |
int | value | ) |
|
|
staticnoexcept |
Creates an instance with the specified value.
- Parameters
-
| value | the sequence start value. |
- Returns
- the sequence start.
◆ Generate() [1/2]
template<typename Urbg>
| AccountReplySequenceStart eolib::packet::AccountReplySequenceStart::Generate |
( |
Urbg & | rng | ) |
|
|
inlinestatic |
Generates an instance with a random value in the range [0, MaxValue).
- Parameters
-
| rng | the uniform random bit generator to use, e.g. std::mt19937. |
- Returns
- the generated instance.
◆ Generate() [2/2]
| AccountReplySequenceStart eolib::packet::AccountReplySequenceStart::Generate |
( |
| ) |
|
|
static |
Generates an instance with a random value in the range [0, MaxValue), using a thread-local random engine.
- Returns
- the generated instance.
◆ Value()
| int eolib::packet::AccountReplySequenceStart::Value |
( |
| ) |
const |
|
overridevirtualnoexcept |
◆ MaxValue
| int eolib::packet::AccountReplySequenceStart::MaxValue = 240 |
|
staticconstexpr |
The exclusive upper bound of generated values.