|
eolib-cpp 0.1.0-beta.7
Core C++ library for writing Endless Online applications
|
Generic guild reply messages. More...
#include <eolib/protocol/net/server/packets.hpp>
Inherits eolib::protocol::net::Packet.
Classes | |
| class | ReplyCodeDataCreateAdd |
| Data associated with reply_code value CreateAdd. More... | |
| class | ReplyCodeDataCreateAddConfirm |
| Data associated with reply_code value CreateAddConfirm. More... | |
| class | ReplyCodeDataJoinRequest |
| Data associated with reply_code value JoinRequest. More... | |
Public Types | |
| using | ReplyCodeData = std::variant<std::monostate, ReplyCodeDataCreateAdd, ReplyCodeDataCreateAddConfirm, ReplyCodeDataJoinRequest> |
| Data associated with different values of the reply_code field. | |
Public Member Functions | |
| const ReplyCodeDataCreateAdd * | AsCreateAdd () const noexcept |
| Gets the data associated with reply_code value CreateAdd. | |
| ReplyCodeDataCreateAdd * | AsCreateAdd () noexcept |
| Gets the data associated with reply_code value CreateAdd. | |
| const ReplyCodeDataCreateAddConfirm * | AsCreateAddConfirm () const noexcept |
| Gets the data associated with reply_code value CreateAddConfirm. | |
| ReplyCodeDataCreateAddConfirm * | AsCreateAddConfirm () noexcept |
| Gets the data associated with reply_code value CreateAddConfirm. | |
| const ReplyCodeDataJoinRequest * | AsJoinRequest () const noexcept |
| Gets the data associated with reply_code value JoinRequest. | |
| ReplyCodeDataJoinRequest * | AsJoinRequest () noexcept |
| Gets the data associated with reply_code value JoinRequest. | |
| PacketFamily | Family () const noexcept override |
| Gets the packet family associated with this packet. | |
| PacketAction | Action () const noexcept override |
| Gets the packet action associated with this packet. | |
| int | ByteSize () const noexcept override |
| Gets the size of the data that this object was deserialized from. | |
| void | Serialize (data::EoWriter &writer) const override |
| Serializes this object to the provided writer. | |
| void | Deserialize (data::EoReader &reader) override |
| Deserializes this object from the provided reader, replacing its current data. | |
| std::string | ToString () const override |
| Gets a human-readable representation of this object, for debugging purposes. | |
| bool | operator== (const GuildReplyServerPacket &other) const |
| Compares this object with another for equality. | |
| bool | operator!= (const GuildReplyServerPacket &other) const |
| Compares this object with another for inequality. | |
| Public Member Functions inherited from eolib::protocol::Serializable | |
| virtual | ~Serializable ()=default |
Public Attributes | |
| GuildReply | reply_code {} |
| ReplyCodeData | reply_code_data {} |
| Data associated with the reply_code field. | |
Static Public Attributes | |
| static constexpr PacketFamily | FAMILY = PacketFamily::Guild |
| The packet family associated with this packet. | |
| static constexpr PacketAction | ACTION = PacketAction::Reply |
| The packet action associated with this packet. | |
Additional Inherited Members | |
| Protected Member Functions inherited from eolib::protocol::Serializable | |
| Serializable ()=default | |
| Serializable (const Serializable &)=default | |
| Serializable (Serializable &&)=default | |
| Serializable & | operator= (const Serializable &)=default |
| Serializable & | operator= (Serializable &&)=default |
Generic guild reply messages.
| using eolib::protocol::net::server::GuildReplyServerPacket::ReplyCodeData = std::variant<std::monostate, ReplyCodeDataCreateAdd, ReplyCodeDataCreateAddConfirm, ReplyCodeDataJoinRequest> |
Data associated with different values of the reply_code field.
|
inlinenoexcept |
Gets the data associated with reply_code value CreateAdd.
|
inlinenoexcept |
Gets the data associated with reply_code value CreateAdd.
|
inlinenoexcept |
Gets the data associated with reply_code value CreateAddConfirm.
|
inlinenoexcept |
Gets the data associated with reply_code value CreateAddConfirm.
|
inlinenoexcept |
Gets the data associated with reply_code value JoinRequest.
|
inlinenoexcept |
Gets the data associated with reply_code value JoinRequest.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to Busy.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to NotApproved.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to AlreadyMember.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to NoCandidates.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to Exists.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to CreateBegin.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to CreateAddConfirm.
| data | the data associated with reply_code CreateAddConfirm. |
|
static |
Creates a new GuildReplyServerPacket with reply_code set to CreateAdd.
| data | the data associated with reply_code CreateAdd. |
|
static |
Creates a new GuildReplyServerPacket with reply_code set to RecruiterOffline.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to RecruiterNotHere.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to RecruiterWrongGuild.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to NotRecruiter.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to JoinRequest.
| data | the data associated with reply_code JoinRequest. |
|
static |
Creates a new GuildReplyServerPacket with reply_code set to NotPresent.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to AccountLow.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to Accepted.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to NotFound.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to Updated.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to RanksUpdated.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to RemoveLeader.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to RemoveNotMember.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to Removed.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to RankingLeader.
|
static |
Creates a new GuildReplyServerPacket with reply_code set to RankingNotMember.
|
inlineoverridevirtualnoexcept |
Gets the packet family associated with this packet.
Implements eolib::protocol::net::Packet.
|
inlineoverridevirtualnoexcept |
Gets the packet action associated with this packet.
Implements eolib::protocol::net::Packet.
|
overridevirtualnoexcept |
Gets the size of the data that this object was deserialized from.
Implements eolib::protocol::Serializable.
|
overridevirtual |
Serializes this object to the provided writer.
| writer | the writer that the data will be written to. |
| SerializationError | if the object's data is invalid for serialization. |
Implements eolib::protocol::Serializable.
|
overridevirtual |
Deserializes this object from the provided reader, replacing its current data.
| reader | the reader that the data will be read from. |
Implements eolib::protocol::Serializable.
|
overridevirtual |
Gets a human-readable representation of this object, for debugging purposes.
Implements eolib::protocol::Serializable.
| bool eolib::protocol::net::server::GuildReplyServerPacket::operator== | ( | const GuildReplyServerPacket & | other | ) | const |
Compares this object with another for equality.
The deserialized byte size is not compared.
| other | the object to compare with. |
| bool eolib::protocol::net::server::GuildReplyServerPacket::operator!= | ( | const GuildReplyServerPacket & | other | ) | const |
Compares this object with another for inequality.
The deserialized byte size is not compared.
| other | the object to compare with. |
|
staticconstexpr |
The packet family associated with this packet.
|
staticconstexpr |
The packet action associated with this packet.
| GuildReply eolib::protocol::net::server::GuildReplyServerPacket::reply_code {} |
| ReplyCodeData eolib::protocol::net::server::GuildReplyServerPacket::reply_code_data {} |
Data associated with the reply_code field.