mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 17:14:52 -07:00
chat event
This commit is contained in:
parent
e1fc3ddb88
commit
d329376e93
7 changed files with 94 additions and 73 deletions
|
|
@ -103,13 +103,23 @@ class GameEvent : public ProtocolItem {
|
|||
Q_OBJECT
|
||||
private:
|
||||
int gameId;
|
||||
bool isPublic;
|
||||
int playerId;
|
||||
protected:
|
||||
QString getItemType() const { return "game_event"; }
|
||||
void extractParameters();
|
||||
public:
|
||||
GameEvent(const QString &_eventName, int _gameId, bool _isPublic, int _playerId);
|
||||
GameEvent(const QString &_eventName, int _gameId, int _playerId);
|
||||
};
|
||||
|
||||
class ChatEvent : public ProtocolItem {
|
||||
Q_OBJECT
|
||||
private:
|
||||
QString channel;
|
||||
protected:
|
||||
QString getItemType() const { return "chat_event"; }
|
||||
void extractParameters();
|
||||
public:
|
||||
ChatEvent(const QString &_eventName, const QString &_channel);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue