Record of Skill data in an Endless Skill File.
More...
#include <eolib/protocol/pub/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 EsfRecord &other) const |
| | Compares this object with another for equality.
|
| bool | operator!= (const EsfRecord &other) const |
| | Compares this object with another for inequality.
|
| virtual | ~Serializable ()=default |
Record of Skill data in an Endless Skill File.
◆ ByteSize()
| int eolib::protocol::pub::EsfRecord::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::pub::EsfRecord::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::pub::EsfRecord::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::pub::EsfRecord::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::pub::EsfRecord::operator== |
( |
const EsfRecord & | 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::pub::EsfRecord::operator!= |
( |
const EsfRecord & | 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::pub::EsfRecord::name {} |
- Note
- Length must be 252 or less.
◆ chant
| std::string eolib::protocol::pub::EsfRecord::chant {} |
- Note
- Length must be 252 or less.
◆ icon_id
| int eolib::protocol::pub::EsfRecord::icon_id {} |
◆ graphic_id
| int eolib::protocol::pub::EsfRecord::graphic_id {} |
◆ tp_cost
| int eolib::protocol::pub::EsfRecord::tp_cost {} |
◆ sp_cost
| int eolib::protocol::pub::EsfRecord::sp_cost {} |
◆ cast_time
| int eolib::protocol::pub::EsfRecord::cast_time {} |
◆ nature
◆ type
| SkillType eolib::protocol::pub::EsfRecord::type {} |
◆ element
| Element eolib::protocol::pub::EsfRecord::element {} |
◆ element_power
| int eolib::protocol::pub::EsfRecord::element_power {} |
◆ target_restrict
◆ target_type
◆ target_time
| int eolib::protocol::pub::EsfRecord::target_time {} |
Reserved for (de)buff duration.
- Note
-
◆ max_skill_level
| int eolib::protocol::pub::EsfRecord::max_skill_level {} |
◆ min_damage
| int eolib::protocol::pub::EsfRecord::min_damage {} |
◆ max_damage
| int eolib::protocol::pub::EsfRecord::max_damage {} |
◆ accuracy
| int eolib::protocol::pub::EsfRecord::accuracy {} |
◆ evade
| int eolib::protocol::pub::EsfRecord::evade {} |
◆ armor
| int eolib::protocol::pub::EsfRecord::armor {} |
◆ return_damage
| int eolib::protocol::pub::EsfRecord::return_damage {} |
◆ hp_heal
| int eolib::protocol::pub::EsfRecord::hp_heal {} |
◆ tp_heal
| int eolib::protocol::pub::EsfRecord::tp_heal {} |
◆ sp_heal
| int eolib::protocol::pub::EsfRecord::sp_heal {} |
◆ str
| int eolib::protocol::pub::EsfRecord::str {} |
◆ intl
| int eolib::protocol::pub::EsfRecord::intl {} |
◆ wis
| int eolib::protocol::pub::EsfRecord::wis {} |
◆ agi
| int eolib::protocol::pub::EsfRecord::agi {} |
◆ con
| int eolib::protocol::pub::EsfRecord::con {} |
◆ cha
| int eolib::protocol::pub::EsfRecord::cha {} |