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

Packets sent by the client, and the structs and enums they use. More...

Classes

class  AccountAgreeClientPacket
 Change password. More...
class  AccountCreateClientPacket
 Confirm creating an account. More...
class  AccountRequestClientPacket
 Request creating an account. More...
class  AdminInteractReportClientPacket
 Report character. More...
class  AdminInteractTellClientPacket
 Talk to admin. More...
class  AttackUseClientPacket
 Attacking. More...
class  BankAddClientPacket
 Depositing gold. More...
class  BankOpenClientPacket
 Talked to a banker NPC. More...
class  BankTakeClientPacket
 Withdrawing gold. More...
class  BarberBuyClientPacket
 Purchasing a hair-style. More...
class  BarberOpenClientPacket
 Talking to a barber NPC. More...
class  BoardCreateClientPacket
 Posting a new message to a town board. More...
class  BoardOpenClientPacket
 Opening a town board. More...
class  BoardRemoveClientPacket
 Removing a post from a town board. More...
class  BoardTakeClientPacket
 Reading a post on a town board. More...
class  BookRequestClientPacket
 Request for a player's book. More...
class  ByteCoords
 Map coordinates with raw 1-byte values. More...
class  ChairRequestClientPacket
 Sitting on a chair. More...
class  CharacterCreateClientPacket
 Confirm creating a character. More...
class  CharacterRemoveClientPacket
 Confirm deleting character from an account. More...
class  CharacterRequestClientPacket
 Request to create a character. More...
class  CharacterTakeClientPacket
 Request to delete a character from an account. More...
class  ChestAddClientPacket
 Placing an item in to a chest. More...
class  ChestOpenClientPacket
 Opening a chest. More...
class  ChestTakeClientPacket
 Taking an item from a chest. More...
class  CitizenAcceptClientPacket
 Confirm sleeping at an inn. More...
class  CitizenOpenClientPacket
 Talking to a citizenship NPC. More...
class  CitizenRemoveClientPacket
 Giving up citizenship of a town. More...
class  CitizenReplyClientPacket
 Subscribing to a town. More...
class  CitizenRequestClientPacket
 Request sleeping at an inn. More...
class  ConnectionAcceptClientPacket
 Confirm initialization data. More...
class  ConnectionPingClientPacket
 Ping reply. More...
class  DoorOpenClientPacket
 Opening a door. More...
class  EmoteReportClientPacket
 Doing an emote. More...
class  FacePlayerClientPacket
 Facing a direction. More...
class  GlobalCloseClientPacket
 Closed global tab. More...
class  GlobalOpenClientPacket
 Opened global tab. More...
class  GlobalPlayerClientPacket
 Disable whispers. More...
class  GlobalRemoveClientPacket
 Enable whispers. More...
class  GuildAcceptClientPacket
 Accept pending guild creation invite. More...
class  GuildAgreeClientPacket
 Update the guild description or rank list. More...
class  GuildBuyClientPacket
 Deposit gold in to the guild bank. More...
class  GuildCreateClientPacket
 Final confirm creating a guild. More...
class  GuildJunkClientPacket
 Disband guild. More...
class  GuildKickClientPacket
 Kick member from guild. More...
class  GuildOpenClientPacket
 Talking to a guild master NPC. More...
class  GuildPlayerClientPacket
 Request to join a guild. More...
class  GuildRankClientPacket
 Update a member's rank. More...
class  GuildRemoveClientPacket
 Leave guild. More...
class  GuildReportClientPacket
 Requested general information of a guild. More...
class  GuildRequestClientPacket
 Requested to create a guild. More...
class  GuildTakeClientPacket
 Request guild description, rank list, or bank balance. More...
class  GuildTellClientPacket
 Requested member list of a guild. More...
class  GuildUseClientPacket
 Accepted a join request. More...
class  InitInitClientPacket
 Connection initialization request. This packet is unencrypted. More...
class  ItemDropClientPacket
 Dropping items on the ground. More...
class  ItemGetClientPacket
 Taking items from the ground. More...
class  ItemJunkClientPacket
 Junking items. More...
class  ItemUseClientPacket
 Using an item. More...
class  JukeboxMsgClientPacket
 Requesting a song on a jukebox. More...
class  JukeboxOpenClientPacket
 Opening the jukebox listing. More...
class  JukeboxUseClientPacket
 Playing a note with the bard skill. More...
class  LockerAddClientPacket
 Adding an item to a bank locker. More...
class  LockerBuyClientPacket
 Buying a locker space upgrade from a banker NPC. More...
class  LockerOpenClientPacket
 Opening a bank locker. More...
class  LockerTakeClientPacket
 Taking an item from a bank locker. More...
class  LoginRequestClientPacket
 Login request. More...
class  MarriageOpenClientPacket
 Talking to a law NPC. More...
class  MarriageRequestClientPacket
 Requesting marriage approval. More...
class  MessagePingClientPacket
 #ping command request More...
class  NpcRangeRequestClientPacket
 Requesting info about nearby NPCs. More...
class  PacketFactory
 Creates client packets from packet family and action identifiers. More...
class  PaperdollAddClientPacket
 Equipping an item. More...
class  PaperdollRemoveClientPacket
 Unequipping an item. More...
class  PaperdollRequestClientPacket
 Request for a player's paperdoll. More...
class  PartyAcceptClientPacket
 Accept party invite / join request. More...
class  PartyRemoveClientPacket
 Remove player from a party. More...
class  PartyRequestClientPacket
 Send party invite / join request. More...
class  PartyTakeClientPacket
 Request updated party info. More...
class  PlayerRangeRequestClientPacket
 Requesting info about nearby players. More...
class  PlayersAcceptClientPacket
 #find command request More...
class  PlayersListClientPacket
 Requesting a list of online friends. More...
class  PlayersRequestClientPacket
 Requesting a list of online players. More...
class  PriestAcceptClientPacket
 Accepting a marriage request. More...
class  PriestOpenClientPacket
 Talking to a priest NPC. More...
class  PriestRequestClientPacket
 Requesting marriage at a priest. More...
class  PriestUseClientPacket
 Saying "I do" at a wedding. More...
class  QuestAcceptClientPacket
 Response to a quest NPC dialog. More...
class  QuestListClientPacket
 Quest history / progress request. More...
class  QuestUseClientPacket
 Talking to a quest NPC. More...
class  RangeRequestClientPacket
 Requesting info about nearby players and NPCs. More...
class  RefreshRequestClientPacket
 Requesting new info about nearby objects. More...
class  ShopBuyClientPacket
 Purchasing an item from a shop. More...
class  ShopCreateClientPacket
 Crafting an item from a shop. More...
class  ShopOpenClientPacket
 Talking to a shop NPC. More...
class  ShopSellClientPacket
 Selling an item to a shop. More...
class  SitRequestClientPacket
 Sit/stand request. More...
class  SpellRequestClientPacket
 Begin spell chanting. More...
class  SpellTargetGroupClientPacket
 Group spell cast. More...
class  SpellTargetOtherClientPacket
 Targeted spell cast. More...
class  SpellTargetSelfClientPacket
 Self-targeted spell cast. More...
class  SpellUseClientPacket
 Raise arm to cast a spell (vestigial). More...
class  StatSkillAddClientPacket
 Spending a stat point on a stat or skill. More...
class  StatSkillJunkClientPacket
 Resetting stats at a skill master. More...
class  StatSkillOpenClientPacket
 Talking to a skill master NPC. More...
class  StatSkillRemoveClientPacket
 Forgetting a skill at a skill master NPC. More...
class  StatSkillTakeClientPacket
 Learning a skill from a skill master NPC. More...
class  TalkAdminClientPacket
 Admin chat message. More...
class  TalkAnnounceClientPacket
 Admin announcement. More...
class  TalkMsgClientPacket
 Global chat message. More...
class  TalkOpenClientPacket
 Party chat message. More...
class  TalkPlayerClientPacket
 Public chat message - alias of TALK_REPORT (vestigial). More...
class  TalkReportClientPacket
 Public chat message. More...
class  TalkRequestClientPacket
 Guild chat message. More...
class  TalkTellClientPacket
 Private chat message. More...
class  TalkUseClientPacket
 Public chat message - alias of TALK_REPORT (vestigial). More...
class  TradeAcceptClientPacket
 Accepting a trade request. More...
class  TradeAddClientPacket
 Add an item to the trade screen. More...
class  TradeAgreeClientPacket
 Mark trade as agreed. More...
class  TradeCloseClientPacket
 Cancel the trade. More...
class  TradeRemoveClientPacket
 Remove an item from the trade screen. More...
class  TradeRequestClientPacket
 Requesting a trade with another player. More...
class  WalkAction
 Common data between walk packets. More...
class  WalkAdminClientPacket
 Walking with #nowall. More...
class  WalkPlayerClientPacket
 Walking. More...
class  WalkSpecClientPacket
 Walking through a player. More...
class  WarpAcceptClientPacket
 Accept a warp request from the server. More...
class  WarpTakeClientPacket
 Request to download a copy of the map. More...
class  WelcomeAgreeClientPacket
 Requesting a file. More...
class  WelcomeMsgClientPacket
 Entering game. More...
class  WelcomeRequestClientPacket
 Selected a character. More...

Enumerations

enum class  SitAction : int { Sit = 1 , Stand = 2 }
 Whether the player wants to sit or stand. More...
enum class  GuildInfoType : int { Description = 1 , Ranks = 2 , Bank = 3 }
 The type of guild info being interacted with. More...
enum class  TrainType : int { Stat = 1 , Skill = 2 }
 Whether the player is spending a stat point or a skill point. More...
enum class  DialogReply : int { Ok = 1 , Link = 2 }
 Whether the player has clicked the OK button or a link in a quest dialog. More...
enum class  FileType : int {
  Emf = 1 , Eif = 2 , Enf = 3 , Esf = 4 ,
  Ecf = 5
}
 Data file type. More...
enum class  StatId : int {
  Str = 1 , Int = 2 , Wis = 3 , Agi = 4 ,
  Con = 5 , Cha = 6
}
 Base character stat. More...
enum class  SpellTargetType : int { Player = 1 , Npc = 2 }
 Target type of a spell cast. More...
enum class  MarriageRequestType : int { MarriageApproval = 1 , Divorce = 2 }
 Request type sent with MARRIAGE_REQUEST packet. More...

Functions

std::string ToString (SitAction value)
 Gets the name of a SitAction value.
std::ostream & operator<< (std::ostream &stream, SitAction value)
 Writes the name of a SitAction value to a stream.
std::string ToString (GuildInfoType value)
 Gets the name of a GuildInfoType value.
std::ostream & operator<< (std::ostream &stream, GuildInfoType value)
 Writes the name of a GuildInfoType value to a stream.
std::string ToString (TrainType value)
 Gets the name of a TrainType value.
std::ostream & operator<< (std::ostream &stream, TrainType value)
 Writes the name of a TrainType value to a stream.
std::string ToString (DialogReply value)
 Gets the name of a DialogReply value.
std::ostream & operator<< (std::ostream &stream, DialogReply value)
 Writes the name of a DialogReply value to a stream.
std::string ToString (FileType value)
 Gets the name of a FileType value.
std::ostream & operator<< (std::ostream &stream, FileType value)
 Writes the name of a FileType value to a stream.
std::string ToString (StatId value)
 Gets the name of a StatId value.
std::ostream & operator<< (std::ostream &stream, StatId value)
 Writes the name of a StatId value to a stream.
std::string ToString (SpellTargetType value)
 Gets the name of a SpellTargetType value.
std::ostream & operator<< (std::ostream &stream, SpellTargetType value)
 Writes the name of a SpellTargetType value to a stream.
std::string ToString (MarriageRequestType value)
 Gets the name of a MarriageRequestType value.
std::ostream & operator<< (std::ostream &stream, MarriageRequestType value)
 Writes the name of a MarriageRequestType value to a stream.

Detailed Description

Packets sent by the client, and the structs and enums they use.

Each packet is named <Family><Action>ClientPacket. A game server reads them with eolib::protocol::net::client::PacketFactory, which creates the packet for a family and action.

Enumeration Type Documentation

◆ SitAction

enum class eolib::protocol::net::client::SitAction : int
strong

Whether the player wants to sit or stand.

Enumerator
Sit 
Stand 

◆ GuildInfoType

The type of guild info being interacted with.

Enumerator
Description 
Ranks 
Bank 

◆ TrainType

enum class eolib::protocol::net::client::TrainType : int
strong

Whether the player is spending a stat point or a skill point.

Enumerator
Stat 
Skill 

◆ DialogReply

Whether the player has clicked the OK button or a link in a quest dialog.

Enumerator
Ok 
Link 

◆ FileType

enum class eolib::protocol::net::client::FileType : int
strong

Data file type.

Enumerator
Emf 
Eif 
Enf 
Esf 
Ecf 

◆ StatId

enum class eolib::protocol::net::client::StatId : int
strong

Base character stat.

Enumerator
Str 
Int 
Wis 
Agi 
Con 
Cha 

◆ SpellTargetType

Target type of a spell cast.

Enumerator
Player 
Npc 

◆ MarriageRequestType

Request type sent with MARRIAGE_REQUEST packet.

Enumerator
MarriageApproval 
Divorce 

Function Documentation

◆ ToString() [1/8]

std::string eolib::protocol::net::client::ToString ( SitAction value)

Gets the name of a SitAction value.

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

◆ operator<<() [1/8]

std::ostream & eolib::protocol::net::client::operator<< ( std::ostream & stream,
SitAction value )

Writes the name of a SitAction value to a stream.

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

◆ ToString() [2/8]

std::string eolib::protocol::net::client::ToString ( GuildInfoType value)

Gets the name of a GuildInfoType value.

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

◆ operator<<() [2/8]

std::ostream & eolib::protocol::net::client::operator<< ( std::ostream & stream,
GuildInfoType value )

Writes the name of a GuildInfoType value to a stream.

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

◆ ToString() [3/8]

std::string eolib::protocol::net::client::ToString ( TrainType value)

Gets the name of a TrainType value.

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

◆ operator<<() [3/8]

std::ostream & eolib::protocol::net::client::operator<< ( std::ostream & stream,
TrainType value )

Writes the name of a TrainType value to a stream.

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

◆ ToString() [4/8]

std::string eolib::protocol::net::client::ToString ( DialogReply value)

Gets the name of a DialogReply value.

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

◆ operator<<() [4/8]

std::ostream & eolib::protocol::net::client::operator<< ( std::ostream & stream,
DialogReply value )

Writes the name of a DialogReply value to a stream.

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

◆ ToString() [5/8]

std::string eolib::protocol::net::client::ToString ( FileType value)

Gets the name of a FileType value.

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

◆ operator<<() [5/8]

std::ostream & eolib::protocol::net::client::operator<< ( std::ostream & stream,
FileType value )

Writes the name of a FileType value to a stream.

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

◆ ToString() [6/8]

std::string eolib::protocol::net::client::ToString ( StatId value)

Gets the name of a StatId value.

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

◆ operator<<() [6/8]

std::ostream & eolib::protocol::net::client::operator<< ( std::ostream & stream,
StatId value )

Writes the name of a StatId value to a stream.

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

◆ ToString() [7/8]

std::string eolib::protocol::net::client::ToString ( SpellTargetType value)

Gets the name of a SpellTargetType value.

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

◆ operator<<() [7/8]

std::ostream & eolib::protocol::net::client::operator<< ( std::ostream & stream,
SpellTargetType value )

Writes the name of a SpellTargetType value to a stream.

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

◆ ToString() [8/8]

std::string eolib::protocol::net::client::ToString ( MarriageRequestType value)

Gets the name of a MarriageRequestType value.

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

◆ operator<<() [8/8]

std::ostream & eolib::protocol::net::client::operator<< ( std::ostream & stream,
MarriageRequestType value )

Writes the name of a MarriageRequestType value to a stream.

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