Skip to content

Commit

Permalink
More types in protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaudic committed Feb 9, 2019
1 parent bc0f201 commit a2bb625
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/protocol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,32 @@ const Uint8 STATUS_PONG = 9;
const Uint8 LOGIN_MSG = 10; //! Server login
const Uint8 LOGOUT_REPLY = 254;
const Uint8 LOGOUT_MSG = 255;
const Uint8 PWD_MSG = 11; //! Password change
const Uint8 CREATE_MSG = 12; //! Account creation
const Uint8 PWD_MSG = 20; //! Password change
const Uint8 CREATE_MSG = 21; //! Account creation

const Uint8 ENTER_ROOM_MSG = 49; //! Try to join an existing room
const Uint8 CREATE_ROOM_MSG = 50; //! New room
const Uint8 EXIT_ROOM_MSG = 51; //! User-triggered exit
const Uint8 UPDATE_ROOM_MSG = 52;
const Uint8 PLAYER_ROOM_MSG = 58; //! New player arriving, team changes
const Uint8 ADMIN_ROOM_MSG = 59;
const Uint8 ITEMS_ROOM_MSG = 60; //! Request item list
const Uint8 ITEMS_ROOM_MSG = 60; //! Request item list / warn of changes from admin

const Uint8 SELL_ITEM_MSG = 80; //! Sell an existing item from inventory
const Uint8 BUY_ITEM_MSG = 81; //! Add a new item to my inventory

const Uint8 SERVER_INFO = 200; //! Basic server info
const Uint8 ROOM0_INFO = 210; //! Basic room info in channel: number, title, type, map used, status
const Uint8 ROOM5_INFO = 215; //! Full room info: size, settings...
const Uint8 USER0_INFO = 220; //! Name, guild, level; location for buddies
const Uint8 USER0_INFO = 220; //! Name, guild, level
const Uint8 FRIEND_INFO = 221; //! Location for buddies
const Uint8 USER5_INFO = 225; //! Full statistics
const Uint8 ITEM0_INFO = 230; //! The 4 or 5 items worn while playing
const Uint8 ITEM5_INFO = 235; //! Full list of items used while in the "avatar shop"
const Uint8 MOBILE_INFO = 240; //! Choice of mobile(s) for the battle

const Uint8 FRIEND_ADD = 90;
const Uint8 FRIEND_DEL = 91;
const Uint8 KICK_MSG = 95; //! Exclude a user from a room
const Uint8 MUTE_MSG = 99; //! Silence a user
const Uint8 CHAT_MSG = 100; //! Chat message (add the message type to this value to get the final packet type)
Expand Down

0 comments on commit a2bb625

Please sign in to comment.