[Game] Refactor: move setCardAttrHelper to PlayerEventHandler (#6772)

This commit is contained in:
RickyRister 2026-05-09 13:10:56 -07:00 committed by GitHub
parent 48e21aad38
commit cdb171f201
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 66 additions and 88 deletions

View file

@ -9,6 +9,7 @@
#include "event_processing_options.h"
#include <QObject>
#include <libcockatrice/protocol/pb/card_attributes.pb.h>
#include <libcockatrice/protocol/pb/game_event.pb.h>
#include <libcockatrice/protocol/pb/game_event_context.pb.h>
@ -110,6 +111,13 @@ public:
private:
Player *player;
void setCardAttrHelper(const GameEventContext &context,
CardItem *card,
CardAttribute attribute,
const QString &avalue,
bool allCards,
EventProcessingOptions options);
};
#endif // COCKATRICE_PLAYER_EVENT_HANDLER_H