mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-13 01:24:46 -07:00
initial commit for chat channels
This commit is contained in:
parent
0d84de2384
commit
947cd1736c
23 changed files with 408 additions and 66 deletions
|
|
@ -55,11 +55,15 @@ private:
|
|||
QList<QVariant::Type> paramTypes;
|
||||
CommandHandler handler;
|
||||
};
|
||||
static const int numberCommands = 27;
|
||||
static const int numberCommands = 31;
|
||||
static const CommandProperties commandList[numberCommands];
|
||||
|
||||
ReturnMessage::ReturnCode cmdPing(const QList<QVariant> ¶ms);
|
||||
ReturnMessage::ReturnCode cmdLogin(const QList<QVariant> ¶ms);
|
||||
ReturnMessage::ReturnCode cmdChatListChannels(const QList<QVariant> ¶ms);
|
||||
ReturnMessage::ReturnCode cmdChatJoinChannel(const QList<QVariant> ¶ms);
|
||||
ReturnMessage::ReturnCode cmdChatLeaveChannel(const QList<QVariant> ¶ms);
|
||||
ReturnMessage::ReturnCode cmdChatSay(const QList<QVariant> ¶ms);
|
||||
ReturnMessage::ReturnCode cmdListGames(const QList<QVariant> ¶ms);
|
||||
ReturnMessage::ReturnCode cmdCreateGame(const QList<QVariant> ¶ms);
|
||||
ReturnMessage::ReturnCode cmdJoinGame(const QList<QVariant> ¶ms);
|
||||
|
|
@ -88,6 +92,7 @@ private:
|
|||
|
||||
Server *server;
|
||||
ServerGame *game;
|
||||
QList<ChatChannel *> chatChannels;
|
||||
QList<QString> DeckList;
|
||||
QList<QString> SideboardList;
|
||||
QList<PlayerZone *> zones;
|
||||
|
|
@ -105,6 +110,7 @@ private:
|
|||
ReturnMessage *remsg;
|
||||
AuthenticationResult authState;
|
||||
bool acceptsGameListChanges;
|
||||
bool acceptsChatChannelListChanges;
|
||||
public:
|
||||
ServerSocket(Server *_server, QObject *parent = 0);
|
||||
~ServerSocket();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue