mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
foo
This commit is contained in:
parent
1c2aa15b22
commit
6923c98dc2
12 changed files with 107 additions and 45 deletions
|
|
@ -32,8 +32,8 @@ public:
|
|||
ProtocolItem(const QString &_itemName);
|
||||
static void initializeHash();
|
||||
static ProtocolItem *getNewItem(const QString &name);
|
||||
virtual bool read(QXmlStreamReader &xml);
|
||||
virtual void write(QXmlStreamWriter &xml);
|
||||
virtual bool read(QXmlStreamReader *xml);
|
||||
virtual void write(QXmlStreamWriter *xml);
|
||||
};
|
||||
|
||||
class Command : public ProtocolItem {
|
||||
|
|
@ -101,6 +101,14 @@ public:
|
|||
static ProtocolItem *newItem() { return new ProtocolResponse; }
|
||||
};
|
||||
|
||||
class GenericEvent : public ProtocolItem {
|
||||
Q_OBJECT
|
||||
protected:
|
||||
QString getItemType() const { return "generic_event"; }
|
||||
public:
|
||||
GenericEvent(const QString &_eventName);
|
||||
};
|
||||
|
||||
class GameEvent : public ProtocolItem {
|
||||
Q_OBJECT
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue