mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-27 13:14:13 -08:00
* add new fields to proto * update token dlg * send facedown in command * update server to get it to work * disable certain edits when face down * update client event processing * log face-down token creation * Don't support colors on face-down tokens The other client doesn't know about the color, so it causes a desync * Update wording Co-authored-by: Basile Clement <Elarnon@users.noreply.github.com> * Allow annotations on face-down tokens --------- Co-authored-by: Basile Clement <Elarnon@users.noreply.github.com>
32 lines
881 B
Protocol Buffer
32 lines
881 B
Protocol Buffer
syntax = "proto2";
|
|
import "game_commands.proto";
|
|
|
|
message Command_CreateToken {
|
|
enum TargetMode {
|
|
// Attach the target to the token
|
|
ATTACH_TO = 0;
|
|
// Transform the target into the token
|
|
TRANSFORM_INTO = 1;
|
|
}
|
|
|
|
extend GameCommand {
|
|
optional Command_CreateToken ext = 1010;
|
|
}
|
|
optional string zone = 1;
|
|
optional string card_name = 2;
|
|
optional string color = 3;
|
|
optional string pt = 4;
|
|
optional string annotation = 5;
|
|
optional bool destroy_on_zone_change = 6;
|
|
optional sint32 x = 7;
|
|
optional sint32 y = 8;
|
|
optional string target_zone = 9;
|
|
optional sint32 target_card_id = 10 [default = -1];
|
|
|
|
// What to do with the target card. Ignored if there is no target card.
|
|
optional TargetMode target_mode = 11;
|
|
|
|
optional string card_provider_id = 12;
|
|
optional bool face_down = 13;
|
|
}
|