mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 00:54:53 -07:00
some cleanups and fixes
This commit is contained in:
parent
6ba2e98315
commit
564ae4db84
27 changed files with 371 additions and 206 deletions
|
|
@ -124,6 +124,14 @@ public:
|
|||
const QList<ServerInfo_Arrow *> &getArrowList() const { return arrowList; }
|
||||
};
|
||||
|
||||
class ServerInfo_PlayerPing : public SerializableItem_Map {
|
||||
public:
|
||||
ServerInfo_PlayerPing(int _playerId = -1, int _pingTime = -1);
|
||||
static SerializableItem *newItem() { return new ServerInfo_PlayerPing; }
|
||||
int getPlayerId() const { return static_cast<SerializableItem_Int *>(itemMap.value("player_id"))->getData(); }
|
||||
int getPingTime() const { return static_cast<SerializableItem_Int *>(itemMap.value("ping_time"))->getData(); }
|
||||
};
|
||||
|
||||
class DeckList_TreeItem : public SerializableItem_Map {
|
||||
public:
|
||||
DeckList_TreeItem(const QString &_itemType, const QString &_name, int _id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue