Cockatrice/libcockatrice_protocol/libcockatrice/protocol/pb/game_event_context.proto
Lukas Brübach 5b11af585f [Game] Single chat message when a card transforms (#4764)
Transform currently logs "X destroys Y." followed by "X creates token: Z."
because the server implements it as DestroyCard + CreateToken events.

- Add Context_TransformCard (protocol extension 1010) to the transform
  event batch and a unit test asserting the server attaches it
- Suppress the destroy/create pair and the migration un-attach lines in
  the game log, printing one "X transforms Y into Z (P/T)." message
2026-11-02 21:25:56 +01:00

17 lines
423 B
Protocol Buffer

syntax = "proto2";
message GameEventContext {
enum ContextType {
READY_START = 1000;
CONCEDE = 1001;
DECK_SELECT = 1002;
UNDO_DRAW = 1003;
MOVE_CARD = 1004;
MULLIGAN = 1005;
PING_CHANGED = 1006;
CONNECTION_STATE_CHANGED = 1007;
SET_SIDEBOARD_LOCK = 1008;
UNCONCEDE = 1009;
TRANSFORM_CARD = 1010;
}
extensions 100 to max;
}