mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-13 05:20:00 -08:00
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
17 lines
423 B
Protocol Buffer
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;
|
|
}
|