|
eolib-cpp 0.1.0-beta.7
Core C++ library for writing Endless Online applications
|
Reply to using an item. More...
#include <eolib/protocol/net/server/packets.hpp>
Inherits eolib::protocol::net::Packet.
Classes | |
| class | ItemTypeDataHeal |
| Data associated with item_type value Heal. More... | |
| class | ItemTypeDataHairDye |
| Data associated with item_type value HairDye. More... | |
| class | ItemTypeDataEffectPotion |
| Data associated with item_type value EffectPotion. More... | |
| class | ItemTypeDataCureCurse |
| Data associated with item_type value CureCurse. More... | |
| class | ItemTypeDataExpReward |
| Data associated with item_type value ExpReward. More... | |
Public Types | |
| using | ItemTypeData = std::variant<std::monostate, ItemTypeDataHeal, ItemTypeDataHairDye, ItemTypeDataEffectPotion, ItemTypeDataCureCurse, ItemTypeDataExpReward> |
| Data associated with different values of the item_type field. | |
Public Member Functions | |
| const ItemTypeDataHeal * | AsHeal () const noexcept |
| Gets the data associated with item_type value Heal. | |
| ItemTypeDataHeal * | AsHeal () noexcept |
| Gets the data associated with item_type value Heal. | |
| const ItemTypeDataHairDye * | AsHairDye () const noexcept |
| Gets the data associated with item_type value HairDye. | |
| ItemTypeDataHairDye * | AsHairDye () noexcept |
| Gets the data associated with item_type value HairDye. | |
| const ItemTypeDataEffectPotion * | AsEffectPotion () const noexcept |
| Gets the data associated with item_type value EffectPotion. | |
| ItemTypeDataEffectPotion * | AsEffectPotion () noexcept |
| Gets the data associated with item_type value EffectPotion. | |
| const ItemTypeDataCureCurse * | AsCureCurse () const noexcept |
| Gets the data associated with item_type value CureCurse. | |
| ItemTypeDataCureCurse * | AsCureCurse () noexcept |
| Gets the data associated with item_type value CureCurse. | |
| const ItemTypeDataExpReward * | AsExpReward () const noexcept |
| Gets the data associated with item_type value ExpReward. | |
| ItemTypeDataExpReward * | AsExpReward () noexcept |
| Gets the data associated with item_type value ExpReward. | |
| 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 ItemReplyServerPacket &other) const |
| Compares this object with another for equality. | |
| bool | operator!= (const ItemReplyServerPacket &other) const |
| Compares this object with another for inequality. | |
| Public Member Functions inherited from eolib::protocol::Serializable | |
| virtual | ~Serializable ()=default |
Public Attributes | |
| pub::ItemType | item_type {} |
| net::Item | used_item {} |
| net::Weight | weight {} |
| ItemTypeData | item_type_data {} |
| Data associated with the item_type field. | |
Static Public Attributes | |
| static constexpr PacketFamily | FAMILY = PacketFamily::Item |
| 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 |
Reply to using an item.
| using eolib::protocol::net::server::ItemReplyServerPacket::ItemTypeData = std::variant<std::monostate, ItemTypeDataHeal, ItemTypeDataHairDye, ItemTypeDataEffectPotion, ItemTypeDataCureCurse, ItemTypeDataExpReward> |
Data associated with different values of the item_type field.
|
inlinenoexcept |
Gets the data associated with item_type value Heal.
|
inlinenoexcept |
Gets the data associated with item_type value Heal.
|
inlinenoexcept |
Gets the data associated with item_type value HairDye.
|
inlinenoexcept |
Gets the data associated with item_type value HairDye.
|
inlinenoexcept |
Gets the data associated with item_type value EffectPotion.
|
inlinenoexcept |
Gets the data associated with item_type value EffectPotion.
|
inlinenoexcept |
Gets the data associated with item_type value CureCurse.
|
inlinenoexcept |
Gets the data associated with item_type value CureCurse.
|
inlinenoexcept |
Gets the data associated with item_type value ExpReward.
|
inlinenoexcept |
Gets the data associated with item_type value ExpReward.
|
static |
Creates a new ItemReplyServerPacket with item_type set to General.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Reserved1.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Currency.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Heal.
| data | the data associated with item_type Heal. |
|
static |
Creates a new ItemReplyServerPacket with item_type set to Teleport.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Reserved5.
|
static |
Creates a new ItemReplyServerPacket with item_type set to ExpReward.
| data | the data associated with item_type ExpReward. |
|
static |
Creates a new ItemReplyServerPacket with item_type set to Reserved7.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Reserved8.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Key.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Weapon.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Shield.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Armor.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Hat.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Boots.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Gloves.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Accessory.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Belt.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Necklace.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Ring.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Armlet.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Bracer.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Alcohol.
|
static |
Creates a new ItemReplyServerPacket with item_type set to EffectPotion.
| data | the data associated with item_type EffectPotion. |
|
static |
Creates a new ItemReplyServerPacket with item_type set to HairDye.
| data | the data associated with item_type HairDye. |
|
static |
Creates a new ItemReplyServerPacket with item_type set to CureCurse.
| data | the data associated with item_type CureCurse. |
|
static |
Creates a new ItemReplyServerPacket with item_type set to Reserved26.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Reserved27.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Reserved28.
|
static |
Creates a new ItemReplyServerPacket with item_type set to Reserved29.
|
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::ItemReplyServerPacket::operator== | ( | const ItemReplyServerPacket & | 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::ItemReplyServerPacket::operator!= | ( | const ItemReplyServerPacket & | 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.
| pub::ItemType eolib::protocol::net::server::ItemReplyServerPacket::item_type {} |
| net::Item eolib::protocol::net::server::ItemReplyServerPacket::used_item {} |
| net::Weight eolib::protocol::net::server::ItemReplyServerPacket::weight {} |
| ItemTypeData eolib::protocol::net::server::ItemReplyServerPacket::item_type_data {} |
Data associated with the item_type field.