eolib-cpp 0.1.0-beta.7
Core C++ library for writing Endless Online applications
Loading...
Searching...
No Matches
eolib::protocol::pub::EsfRecord Class Referencefinal

Record of Skill data in an Endless Skill File. More...

#include <eolib/protocol/pub/structs.hpp>

Inherits eolib::protocol::Serializable.

Public Member Functions

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.
Public Member Functions inherited from eolib::protocol::Serializable
virtual ~Serializable ()=default

Public Attributes

std::string name {}
std::string chant {}
int icon_id {}
int graphic_id {}
int tp_cost {}
int sp_cost {}
int cast_time {}
SkillNature nature {}
SkillType type {}
Element element {}
int element_power {}
SkillTargetRestrict target_restrict {}
SkillTargetType target_type {}
int target_time {}
 Reserved for (de)buff duration.
int max_skill_level {}
int min_damage {}
int max_damage {}
int accuracy {}
int evade {}
int armor {}
int return_damage {}
int hp_heal {}
int tp_heal {}
int sp_heal {}
int str {}
int intl {}
int wis {}
int agi {}
int con {}
int cha {}

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

Detailed Description

Record of Skill data in an Endless Skill File.

Member Function Documentation

◆ 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
writerthe writer that the data will be written to.
Exceptions
SerializationErrorif the object's data is invalid for serialization.

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
readerthe 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
otherthe 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
otherthe object to compare with.
Returns
true if any field differs, otherwise false.

Member Data Documentation

◆ 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 {}
Note
  • Value range is 0-64008.

◆ graphic_id

int eolib::protocol::pub::EsfRecord::graphic_id {}
Note
  • Value range is 0-64008.

◆ tp_cost

int eolib::protocol::pub::EsfRecord::tp_cost {}
Note
  • Value range is 0-64008.

◆ sp_cost

int eolib::protocol::pub::EsfRecord::sp_cost {}
Note
  • Value range is 0-64008.

◆ cast_time

int eolib::protocol::pub::EsfRecord::cast_time {}
Note
  • Value range is 0-252.

◆ nature

SkillNature eolib::protocol::pub::EsfRecord::nature {}

◆ type

SkillType eolib::protocol::pub::EsfRecord::type {}

◆ element

Element eolib::protocol::pub::EsfRecord::element {}

◆ element_power

int eolib::protocol::pub::EsfRecord::element_power {}
Note
  • Value range is 0-64008.

◆ target_restrict

SkillTargetRestrict eolib::protocol::pub::EsfRecord::target_restrict {}

◆ target_type

SkillTargetType eolib::protocol::pub::EsfRecord::target_type {}

◆ target_time

int eolib::protocol::pub::EsfRecord::target_time {}

Reserved for (de)buff duration.

Note
  • Value range is 0-252.

◆ max_skill_level

int eolib::protocol::pub::EsfRecord::max_skill_level {}
Note
  • Value range is 0-64008.

◆ min_damage

int eolib::protocol::pub::EsfRecord::min_damage {}
Note
  • Value range is 0-64008.

◆ max_damage

int eolib::protocol::pub::EsfRecord::max_damage {}
Note
  • Value range is 0-64008.

◆ accuracy

int eolib::protocol::pub::EsfRecord::accuracy {}
Note
  • Value range is 0-64008.

◆ evade

int eolib::protocol::pub::EsfRecord::evade {}
Note
  • Value range is 0-64008.

◆ armor

int eolib::protocol::pub::EsfRecord::armor {}
Note
  • Value range is 0-64008.

◆ return_damage

int eolib::protocol::pub::EsfRecord::return_damage {}
Note
  • Value range is 0-252.

◆ hp_heal

int eolib::protocol::pub::EsfRecord::hp_heal {}
Note
  • Value range is 0-64008.

◆ tp_heal

int eolib::protocol::pub::EsfRecord::tp_heal {}
Note
  • Value range is 0-64008.

◆ sp_heal

int eolib::protocol::pub::EsfRecord::sp_heal {}
Note
  • Value range is 0-252.

◆ str

int eolib::protocol::pub::EsfRecord::str {}
Note
  • Value range is 0-64008.

◆ intl

int eolib::protocol::pub::EsfRecord::intl {}
Note
  • Value range is 0-64008.

◆ wis

int eolib::protocol::pub::EsfRecord::wis {}
Note
  • Value range is 0-64008.

◆ agi

int eolib::protocol::pub::EsfRecord::agi {}
Note
  • Value range is 0-64008.

◆ con

int eolib::protocol::pub::EsfRecord::con {}
Note
  • Value range is 0-64008.

◆ cha

int eolib::protocol::pub::EsfRecord::cha {}
Note
  • Value range is 0-64008.