mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-22 23:26:14 -08:00
client/server version bump; eventConnectionStateChanged
This commit is contained in:
@@ -389,6 +389,14 @@ public:
|
||||
static SerializableItem *newItem() { return new Command_RevealCards; }
|
||||
int getItemId() const { return ItemId_Command_RevealCards; }
|
||||
};
|
||||
class Event_ConnectionStateChanged : public GameEvent {
|
||||
Q_OBJECT
|
||||
public:
|
||||
Event_ConnectionStateChanged(int _playerId = -1, bool _connected = false);
|
||||
bool getConnected() const { return static_cast<SerializableItem_Bool *>(itemMap.value("connected"))->getData(); };
|
||||
static SerializableItem *newItem() { return new Event_ConnectionStateChanged; }
|
||||
int getItemId() const { return ItemId_Event_ConnectionStateChanged; }
|
||||
};
|
||||
class Event_Say : public GameEvent {
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user