Cockatrice 2026-01-14-Development-2.11.0-beta.46
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
card_ref.h
Go to the documentation of this file.
1#ifndef CARD_REF_H
2#define CARD_REF_H
3
4#include <QString>
5
13struct CardRef
14{
15 QString name;
16 QString providerId = QString();
17
18 bool operator==(const CardRef &other) const
19 {
20 return name == other.name && providerId == other.providerId;
21 }
22
23 bool isEmpty() const
24 {
25 return name.isEmpty() && providerId.isEmpty();
26 }
27};
28
29#endif // CARD_REF_H
Definition card_ref.h:14
QString providerId
Definition card_ref.h:16
bool operator==(const CardRef &other) const
Definition card_ref.h:18
QString name
Definition card_ref.h:15
bool isEmpty() const
Definition card_ref.h:23