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

Client pub files: items (eolib::protocol::pub::Eif), NPCs (eolib::protocol::pub::Enf), spells (eolib::protocol::pub::Esf) and classes (eolib::protocol::pub::Ecf), and the records and enums they use. More...

Namespaces

namespace  server
 Server pub files: talk (eolib::protocol::pub::server::TalkFile), shops (eolib::protocol::pub::server::ShopFile), drops (eolib::protocol::pub::server::DropFile), inns (eolib::protocol::pub::server::InnFile) and skill masters (eolib::protocol::pub::server::SkillMasterFile).

Classes

class  EifRecord
 Record of Item data in an Endless Item File. More...
class  Eif
 Endless Item File. More...
class  EnfRecord
 Record of NPC data in an Endless NPC File. More...
class  Enf
 Endless NPC File. More...
class  EcfRecord
 Record of Class data in an Endless Class File. More...
class  Ecf
 Endless Class File. More...
class  EsfRecord
 Record of Skill data in an Endless Skill File. More...
class  Esf
 Endless Skill File. More...

Enumerations

enum class  Element : int {
  None = 0 , Light = 1 , Dark = 2 , Earth = 3 ,
  Wind = 4 , Water = 5 , Fire = 6
}
enum class  ItemType : int {
  General = 0 , Reserved1 = 1 , Currency = 2 , Heal = 3 ,
  Teleport = 4 , Reserved5 = 5 , ExpReward = 6 , Reserved7 = 7 ,
  Reserved8 = 8 , Key = 9 , Weapon = 10 , Shield = 11 ,
  Armor = 12 , Hat = 13 , Boots = 14 , Gloves = 15 ,
  Accessory = 16 , Belt = 17 , Necklace = 18 , Ring = 19 ,
  Armlet = 20 , Bracer = 21 , Alcohol = 22 , EffectPotion = 23 ,
  HairDye = 24 , CureCurse = 25 , Reserved26 = 26 , Reserved27 = 27 ,
  Reserved28 = 28 , Reserved29 = 29
}
enum class  ItemSubtype : int {
  None = 0 , Ranged = 1 , Arrows = 2 , Wings = 3 ,
  Reserved4 = 4
}
enum class  ItemSpecial : int {
  Normal = 0 , Rare = 1 , Legendary = 2 , Unique = 3 ,
  Lore = 4 , Cursed = 5
}
enum class  ItemSize : int {
  Size1x1 = 0 , Size1x2 = 1 , Size1x3 = 2 , Size1x4 = 3 ,
  Size2x1 = 4 , Size2x2 = 5 , Size2x3 = 6 , Size2x4 = 7
}
 Size of an item in the inventory. More...
enum class  NpcType : int {
  Friendly = 0 , Passive = 1 , Aggressive = 2 , Reserved3 = 3 ,
  Reserved4 = 4 , Reserved5 = 5 , Shop = 6 , Inn = 7 ,
  Reserved8 = 8 , Bank = 9 , Barber = 10 , Guild = 11 ,
  Priest = 12 , Lawyer = 13 , Trainer = 14 , Quest = 15
}
enum class  SkillNature : int { Spell = 0 , Skill = 1 }
enum class  SkillType : int { Heal = 0 , Attack = 1 , Bard = 2 }
enum class  SkillTargetRestrict : int { Npc = 0 , Friendly = 1 , Opponent = 2 }
enum class  SkillTargetType : int { Normal = 0 , Self = 1 , Reserved2 = 2 , Group = 3 }

Functions

std::string ToString (Element value)
 Gets the name of a Element value.
std::ostream & operator<< (std::ostream &stream, Element value)
 Writes the name of a Element value to a stream.
std::string ToString (ItemType value)
 Gets the name of a ItemType value.
std::ostream & operator<< (std::ostream &stream, ItemType value)
 Writes the name of a ItemType value to a stream.
std::string ToString (ItemSubtype value)
 Gets the name of a ItemSubtype value.
std::ostream & operator<< (std::ostream &stream, ItemSubtype value)
 Writes the name of a ItemSubtype value to a stream.
std::string ToString (ItemSpecial value)
 Gets the name of a ItemSpecial value.
std::ostream & operator<< (std::ostream &stream, ItemSpecial value)
 Writes the name of a ItemSpecial value to a stream.
std::string ToString (ItemSize value)
 Gets the name of a ItemSize value.
std::ostream & operator<< (std::ostream &stream, ItemSize value)
 Writes the name of a ItemSize value to a stream.
std::string ToString (NpcType value)
 Gets the name of a NpcType value.
std::ostream & operator<< (std::ostream &stream, NpcType value)
 Writes the name of a NpcType value to a stream.
std::string ToString (SkillNature value)
 Gets the name of a SkillNature value.
std::ostream & operator<< (std::ostream &stream, SkillNature value)
 Writes the name of a SkillNature value to a stream.
std::string ToString (SkillType value)
 Gets the name of a SkillType value.
std::ostream & operator<< (std::ostream &stream, SkillType value)
 Writes the name of a SkillType value to a stream.
std::string ToString (SkillTargetRestrict value)
 Gets the name of a SkillTargetRestrict value.
std::ostream & operator<< (std::ostream &stream, SkillTargetRestrict value)
 Writes the name of a SkillTargetRestrict value to a stream.
std::string ToString (SkillTargetType value)
 Gets the name of a SkillTargetType value.
std::ostream & operator<< (std::ostream &stream, SkillTargetType value)
 Writes the name of a SkillTargetType value to a stream.

Detailed Description

Client pub files: items (eolib::protocol::pub::Eif), NPCs (eolib::protocol::pub::Enf), spells (eolib::protocol::pub::Esf) and classes (eolib::protocol::pub::Ecf), and the records and enums they use.

Enumeration Type Documentation

◆ Element

enum class eolib::protocol::pub::Element : int
strong
Enumerator
None 
Light 
Dark 
Earth 
Wind 
Water 
Fire 

◆ ItemType

enum class eolib::protocol::pub::ItemType : int
strong
Enumerator
General 
Reserved1 

"static" in the official pub editor

Currency 
Heal 
Teleport 
Reserved5 

"transformation" in the official pub editor

ExpReward 
Reserved7 

"skill book" in the official pub editor

Reserved8 

"visual document" in the official pub editor

Key 
Weapon 
Shield 
Armor 
Hat 
Boots 
Gloves 
Accessory 
Belt 
Necklace 
Ring 
Armlet 
Bracer 
Alcohol 
EffectPotion 
HairDye 
CureCurse 
Reserved26 

"buff*" in the official pub editor

Reserved27 

"debuff*" in the official pub editor

Reserved28 

"title" in the official pub editor

Reserved29 

"hairtool" in the official pub editor

◆ ItemSubtype

enum class eolib::protocol::pub::ItemSubtype : int
strong
Enumerator
None 
Ranged 
Arrows 
Wings 
Reserved4 

"2handed" in the official pub editor

◆ ItemSpecial

enum class eolib::protocol::pub::ItemSpecial : int
strong
Enumerator
Normal 
Rare 
Legendary 
Unique 
Lore 
Cursed 

◆ ItemSize

enum class eolib::protocol::pub::ItemSize : int
strong

Size of an item in the inventory.

Enumerator
Size1x1 
Size1x2 
Size1x3 
Size1x4 
Size2x1 
Size2x2 
Size2x3 
Size2x4 

◆ NpcType

enum class eolib::protocol::pub::NpcType : int
strong
Enumerator
Friendly 
Passive 
Aggressive 
Reserved3 

"pet" in the official pub editor

Reserved4 

"npc mine" in the official pub editor

Reserved5 

"npc killer" in the official pub editor

Shop 
Inn 
Reserved8 

"locker" in the official pub editor

Bank 
Barber 
Guild 
Priest 
Lawyer 
Trainer 
Quest 

◆ SkillNature

enum class eolib::protocol::pub::SkillNature : int
strong
Enumerator
Spell 
Skill 

◆ SkillType

enum class eolib::protocol::pub::SkillType : int
strong
Enumerator
Heal 
Attack 
Bard 

◆ SkillTargetRestrict

Enumerator
Npc 
Friendly 
Opponent 

◆ SkillTargetType

enum class eolib::protocol::pub::SkillTargetType : int
strong
Enumerator
Normal 
Self 
Reserved2 
Group 

Function Documentation

◆ ToString() [1/10]

std::string eolib::protocol::pub::ToString ( Element value)

Gets the name of a Element value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [1/10]

std::ostream & eolib::protocol::pub::operator<< ( std::ostream & stream,
Element value )

Writes the name of a Element value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(Element)

◆ ToString() [2/10]

std::string eolib::protocol::pub::ToString ( ItemType value)

Gets the name of a ItemType value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [2/10]

std::ostream & eolib::protocol::pub::operator<< ( std::ostream & stream,
ItemType value )

Writes the name of a ItemType value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(ItemType)

◆ ToString() [3/10]

std::string eolib::protocol::pub::ToString ( ItemSubtype value)

Gets the name of a ItemSubtype value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [3/10]

std::ostream & eolib::protocol::pub::operator<< ( std::ostream & stream,
ItemSubtype value )

Writes the name of a ItemSubtype value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(ItemSubtype)

◆ ToString() [4/10]

std::string eolib::protocol::pub::ToString ( ItemSpecial value)

Gets the name of a ItemSpecial value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [4/10]

std::ostream & eolib::protocol::pub::operator<< ( std::ostream & stream,
ItemSpecial value )

Writes the name of a ItemSpecial value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(ItemSpecial)

◆ ToString() [5/10]

std::string eolib::protocol::pub::ToString ( ItemSize value)

Gets the name of a ItemSize value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [5/10]

std::ostream & eolib::protocol::pub::operator<< ( std::ostream & stream,
ItemSize value )

Writes the name of a ItemSize value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(ItemSize)

◆ ToString() [6/10]

std::string eolib::protocol::pub::ToString ( NpcType value)

Gets the name of a NpcType value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [6/10]

std::ostream & eolib::protocol::pub::operator<< ( std::ostream & stream,
NpcType value )

Writes the name of a NpcType value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(NpcType)

◆ ToString() [7/10]

std::string eolib::protocol::pub::ToString ( SkillNature value)

Gets the name of a SkillNature value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [7/10]

std::ostream & eolib::protocol::pub::operator<< ( std::ostream & stream,
SkillNature value )

Writes the name of a SkillNature value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(SkillNature)

◆ ToString() [8/10]

std::string eolib::protocol::pub::ToString ( SkillType value)

Gets the name of a SkillType value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [8/10]

std::ostream & eolib::protocol::pub::operator<< ( std::ostream & stream,
SkillType value )

Writes the name of a SkillType value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(SkillType)

◆ ToString() [9/10]

std::string eolib::protocol::pub::ToString ( SkillTargetRestrict value)

Gets the name of a SkillTargetRestrict value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [9/10]

std::ostream & eolib::protocol::pub::operator<< ( std::ostream & stream,
SkillTargetRestrict value )

Writes the name of a SkillTargetRestrict value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(SkillTargetRestrict)

◆ ToString() [10/10]

std::string eolib::protocol::pub::ToString ( SkillTargetType value)

Gets the name of a SkillTargetType value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [10/10]

std::ostream & eolib::protocol::pub::operator<< ( std::ostream & stream,
SkillTargetType value )

Writes the name of a SkillTargetType value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(SkillTargetType)