mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-14 19:18:55 -07:00
zone view works
This commit is contained in:
parent
694070724c
commit
55482246dd
5 changed files with 48 additions and 12 deletions
|
|
@ -29,6 +29,7 @@ enum ItemId {
|
|||
ItemId_Response_DeckList = ItemId_Other + 300,
|
||||
ItemId_Response_DeckDownload = ItemId_Other + 301,
|
||||
ItemId_Response_DeckUpload = ItemId_Other + 302,
|
||||
ItemId_Response_DumpZone = ItemId_Other + 303,
|
||||
ItemId_Invalid = ItemId_Other + 1000
|
||||
};
|
||||
|
||||
|
|
@ -172,6 +173,15 @@ public:
|
|||
DeckList_File *getFile() const { return static_cast<DeckList_File *>(itemMap.value("file")); }
|
||||
};
|
||||
|
||||
class Response_DumpZone : public ProtocolResponse {
|
||||
Q_OBJECT
|
||||
public:
|
||||
Response_DumpZone(int _cmdId = -1, ResponseCode _responseCode = RespOk, ServerInfo_Zone *zone = 0);
|
||||
int getItemId() const { return ItemId_Response_DumpZone; }
|
||||
static SerializableItem *newItem() { return new Response_DumpZone; }
|
||||
ServerInfo_Zone *getZone() const { return static_cast<ServerInfo_Zone *>(itemMap.value("zone")); }
|
||||
};
|
||||
|
||||
// --------------
|
||||
// --- EVENTS ---
|
||||
// --------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue