mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
genericize the proto
This commit is contained in:
parent
b4da05e75f
commit
f4a9748a6d
7 changed files with 39 additions and 20 deletions
|
|
@ -36,10 +36,10 @@
|
|||
#include <libcockatrice/protocol/pb/event_create_counter.pb.h>
|
||||
#include <libcockatrice/protocol/pb/event_del_counter.pb.h>
|
||||
#include <libcockatrice/protocol/pb/event_draw_cards.pb.h>
|
||||
#include <libcockatrice/protocol/pb/event_game_log_notice.pb.h>
|
||||
#include <libcockatrice/protocol/pb/event_player_properties_changed.pb.h>
|
||||
#include <libcockatrice/protocol/pb/event_set_counter.pb.h>
|
||||
#include <libcockatrice/protocol/pb/event_shuffle.pb.h>
|
||||
#include <libcockatrice/protocol/pb/event_undo_draw_failed.pb.h>
|
||||
#include <libcockatrice/protocol/pb/response.pb.h>
|
||||
#include <libcockatrice/protocol/pb/response_deck_download.pb.h>
|
||||
#include <libcockatrice/protocol/pb/response_dump_zone.pb.h>
|
||||
|
|
@ -410,7 +410,8 @@ Server_Player::cmdUndoDraw(const Command_UndoDraw & /*cmd*/, ResponseContainer &
|
|||
}
|
||||
|
||||
if (lastDrawList.isEmpty()) {
|
||||
Event_UndoDrawFailed event;
|
||||
Event_GameLogNotice event;
|
||||
event.set_notice_type(Event_GameLogNotice::UNDO_DRAW_FAILED);
|
||||
ges.enqueueGameEvent(event, playerId);
|
||||
return Response::RespContextError;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue