Information about a nearby character. The official client skips these if they're under 42 bytes in length.
More...
#include <eolib/protocol/net/server/structs.hpp>
Inherits eolib::protocol::Serializable.
|
| 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 CharacterMapInfo &other) const |
| | Compares this object with another for equality.
|
| bool | operator!= (const CharacterMapInfo &other) const |
| | Compares this object with another for inequality.
|
| virtual | ~Serializable ()=default |
Information about a nearby character. The official client skips these if they're under 42 bytes in length.
◆ ByteSize()
| int eolib::protocol::net::server::CharacterMapInfo::ByteSize |
( |
| ) |
const |
|
overridevirtualnoexcept |
Gets the size of the data that this object was deserialized from.
- Returns
- the deserialized size in bytes, or 0 for an object that was not deserialized.
Implements eolib::protocol::Serializable.
◆ Serialize()
| void eolib::protocol::net::server::CharacterMapInfo::Serialize |
( |
data::EoWriter & | writer | ) |
const |
|
overridevirtual |
Serializes this object to the provided writer.
- Parameters
-
| writer | the writer that the data will be written to. |
- Exceptions
-
Implements eolib::protocol::Serializable.
◆ Deserialize()
| void eolib::protocol::net::server::CharacterMapInfo::Deserialize |
( |
data::EoReader & | reader | ) |
|
|
overridevirtual |
Deserializes this object from the provided reader, replacing its current data.
- Parameters
-
| reader | the reader that the data will be read from. |
Implements eolib::protocol::Serializable.
◆ ToString()
| std::string eolib::protocol::net::server::CharacterMapInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Gets a human-readable representation of this object, for debugging purposes.
- Returns
- the object's fields and values, as a string.
Implements eolib::protocol::Serializable.
◆ operator==()
| bool eolib::protocol::net::server::CharacterMapInfo::operator== |
( |
const CharacterMapInfo & | other | ) |
const |
Compares this object with another for equality.
The deserialized byte size is not compared.
- Parameters
-
| other | the object to compare with. |
- Returns
- true if all fields are equal, otherwise false.
◆ operator!=()
| bool eolib::protocol::net::server::CharacterMapInfo::operator!= |
( |
const CharacterMapInfo & | other | ) |
const |
Compares this object with another for inequality.
The deserialized byte size is not compared.
- Parameters
-
| other | the object to compare with. |
- Returns
- true if any field differs, otherwise false.
◆ name
| std::string eolib::protocol::net::server::CharacterMapInfo::name {} |
◆ player_id
| int eolib::protocol::net::server::CharacterMapInfo::player_id {} |
◆ map_id
| int eolib::protocol::net::server::CharacterMapInfo::map_id {} |
◆ coords
| BigCoords eolib::protocol::net::server::CharacterMapInfo::coords {} |
◆ direction
◆ class_id
| int eolib::protocol::net::server::CharacterMapInfo::class_id {} |
◆ guild_tag
| std::string eolib::protocol::net::server::CharacterMapInfo::guild_tag {} |
◆ level
| int eolib::protocol::net::server::CharacterMapInfo::level {} |
◆ gender
◆ hair_style
| int eolib::protocol::net::server::CharacterMapInfo::hair_style {} |
◆ hair_color
| int eolib::protocol::net::server::CharacterMapInfo::hair_color {} |
◆ skin
| int eolib::protocol::net::server::CharacterMapInfo::skin {} |
◆ max_hp
| int eolib::protocol::net::server::CharacterMapInfo::max_hp {} |
◆ hp
| int eolib::protocol::net::server::CharacterMapInfo::hp {} |
◆ max_tp
| int eolib::protocol::net::server::CharacterMapInfo::max_tp {} |
◆ tp
| int eolib::protocol::net::server::CharacterMapInfo::tp {} |
◆ equipment
◆ sit_state
| SitState eolib::protocol::net::server::CharacterMapInfo::sit_state {} |
◆ invisible
| bool eolib::protocol::net::server::CharacterMapInfo::invisible {} |
◆ warp_effect
| std::optional<WarpEffect> eolib::protocol::net::server::CharacterMapInfo::warp_effect {} |