mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
Bumps the schema to v41: master is already at v40, so the deck-sync migration is servatrice_0040_to_0041.sql.
20 lines
869 B
Protocol Buffer
20 lines
869 B
Protocol Buffer
syntax = "proto2";
|
|
import "session_commands.proto";
|
|
|
|
message Command_DeckUpload {
|
|
extend SessionCommand {
|
|
optional Command_DeckUpload ext = 1013;
|
|
}
|
|
optional string path = 1; // to upload a new deck
|
|
optional uint32 deck_id = 2; // to replace an existing deck
|
|
optional string deck_list = 3;
|
|
optional bool is_public = 4; // mark the deck public on upload (publish)
|
|
// The server derives the banner card and tags from deck_list, so clients only
|
|
// need to send the color identity, which cannot be computed server-side.
|
|
reserved 5, 6, 8;
|
|
reserved "banner_card_name", "banner_card_provider", "tags";
|
|
optional string color_identity = 7;
|
|
// Stable per-deck identity for two-way collection sync. Sent on first
|
|
// synced upload, echoed back in ServerInfo_DeckStorage_File afterwards.
|
|
optional string guid = 9;
|
|
}
|