Record of Item data in an Endless Item 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 EifRecord &other) const |
| | Compares this object with another for equality.
|
| bool | operator!= (const EifRecord &other) const |
| | Compares this object with another for inequality.
|
| virtual | ~Serializable ()=default |
|
| std::string | name {} |
| int | graphic_id {} |
| ItemType | type {} |
| ItemSubtype | subtype {} |
| ItemSpecial | special {} |
| int | hp {} |
| int | tp {} |
| int | min_damage {} |
| int | max_damage {} |
| int | accuracy {} |
| int | evade {} |
| int | armor {} |
| int | return_damage {} |
| int | str {} |
| int | intl {} |
| int | wis {} |
| int | agi {} |
| int | con {} |
| int | cha {} |
| int | light_resistance {} |
| int | dark_resistance {} |
| int | earth_resistance {} |
| int | air_resistance {} |
| int | water_resistance {} |
| int | fire_resistance {} |
| int | spec1 {} |
| | Holds one the following values, depending on item type: scroll_map, doll_graphic, exp_reward, hair_color, effect, key, alcohol_potency.
|
| int | spec2 {} |
| | Holds one the following values, depending on item type: scroll_x, gender.
|
| int | spec3 {} |
| | Holds one the following values, depending on item type: scroll_y.
|
| int | level_requirement {} |
| int | class_requirement {} |
| int | str_requirement {} |
| int | int_requirement {} |
| int | wis_requirement {} |
| int | agi_requirement {} |
| int | con_requirement {} |
| int | cha_requirement {} |
| Element | element {} |
| int | element_damage {} |
| int | weight {} |
| ItemSize | size {} |
Record of Item data in an Endless Item File.
◆ ByteSize()
| int eolib::protocol::pub::EifRecord::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::EifRecord::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::EifRecord::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::EifRecord::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::EifRecord::operator== |
( |
const EifRecord & | 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::EifRecord::operator!= |
( |
const EifRecord & | 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::EifRecord::name {} |
- Note
- Length must be 252 or less.
◆ graphic_id
| int eolib::protocol::pub::EifRecord::graphic_id {} |
◆ type
| ItemType eolib::protocol::pub::EifRecord::type {} |
◆ subtype
| ItemSubtype eolib::protocol::pub::EifRecord::subtype {} |
◆ special
| ItemSpecial eolib::protocol::pub::EifRecord::special {} |
◆ hp
| int eolib::protocol::pub::EifRecord::hp {} |
◆ tp
| int eolib::protocol::pub::EifRecord::tp {} |
◆ min_damage
| int eolib::protocol::pub::EifRecord::min_damage {} |
◆ max_damage
| int eolib::protocol::pub::EifRecord::max_damage {} |
◆ accuracy
| int eolib::protocol::pub::EifRecord::accuracy {} |
◆ evade
| int eolib::protocol::pub::EifRecord::evade {} |
◆ armor
| int eolib::protocol::pub::EifRecord::armor {} |
◆ return_damage
| int eolib::protocol::pub::EifRecord::return_damage {} |
◆ str
| int eolib::protocol::pub::EifRecord::str {} |
◆ intl
| int eolib::protocol::pub::EifRecord::intl {} |
◆ wis
| int eolib::protocol::pub::EifRecord::wis {} |
◆ agi
| int eolib::protocol::pub::EifRecord::agi {} |
◆ con
| int eolib::protocol::pub::EifRecord::con {} |
◆ cha
| int eolib::protocol::pub::EifRecord::cha {} |
◆ light_resistance
| int eolib::protocol::pub::EifRecord::light_resistance {} |
◆ dark_resistance
| int eolib::protocol::pub::EifRecord::dark_resistance {} |
◆ earth_resistance
| int eolib::protocol::pub::EifRecord::earth_resistance {} |
◆ air_resistance
| int eolib::protocol::pub::EifRecord::air_resistance {} |
◆ water_resistance
| int eolib::protocol::pub::EifRecord::water_resistance {} |
◆ fire_resistance
| int eolib::protocol::pub::EifRecord::fire_resistance {} |
◆ spec1
| int eolib::protocol::pub::EifRecord::spec1 {} |
Holds one the following values, depending on item type: scroll_map, doll_graphic, exp_reward, hair_color, effect, key, alcohol_potency.
- Note
- Value range is 0-16194276.
◆ spec2
| int eolib::protocol::pub::EifRecord::spec2 {} |
Holds one the following values, depending on item type: scroll_x, gender.
- Note
-
◆ spec3
| int eolib::protocol::pub::EifRecord::spec3 {} |
Holds one the following values, depending on item type: scroll_y.
- Note
-
◆ level_requirement
| int eolib::protocol::pub::EifRecord::level_requirement {} |
◆ class_requirement
| int eolib::protocol::pub::EifRecord::class_requirement {} |
◆ str_requirement
| int eolib::protocol::pub::EifRecord::str_requirement {} |
◆ int_requirement
| int eolib::protocol::pub::EifRecord::int_requirement {} |
◆ wis_requirement
| int eolib::protocol::pub::EifRecord::wis_requirement {} |
◆ agi_requirement
| int eolib::protocol::pub::EifRecord::agi_requirement {} |
◆ con_requirement
| int eolib::protocol::pub::EifRecord::con_requirement {} |
◆ cha_requirement
| int eolib::protocol::pub::EifRecord::cha_requirement {} |
◆ element
| Element eolib::protocol::pub::EifRecord::element {} |
◆ element_damage
| int eolib::protocol::pub::EifRecord::element_damage {} |
◆ weight
| int eolib::protocol::pub::EifRecord::weight {} |
◆ size
| ItemSize eolib::protocol::pub::EifRecord::size {} |