mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
game events
This commit is contained in:
parent
bd2855cb95
commit
1d6923f2a2
11 changed files with 64 additions and 762 deletions
|
|
@ -99,4 +99,17 @@ public:
|
|||
static ProtocolItem *newItem() { return new ProtocolResponse; }
|
||||
};
|
||||
|
||||
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);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue