mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-08 19:55:16 -05:00
Some checks failed
Build Desktop / Configure (push) Has been cancelled
Build Docker Image / amd64 & arm64 (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Debian, DEB, 13) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Debian, DEB, skip, 11) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Debian, DEB, skip, 12) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Fedora, RPM, 42) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Fedora, RPM, skip, 41) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Ubuntu, DEB, 24.04) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Ubuntu, DEB, skip, 22.04) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (yes, Arch, skip) (push) Has been cancelled
Build Desktop / macOS ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (1, macos-13, Intel, 13, Release, 14.3.1) (push) Has been cancelled
Build Desktop / macOS ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (1, macos-14, Apple, 14, Release, 15.4) (push) Has been cancelled
Build Desktop / macOS ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (1, macos-15, Apple, 15, Release, 16.2) (push) Has been cancelled
Build Desktop / macOS ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (macos-15, Apple, 15, Debug, 16.2) (push) Has been cancelled
Build Desktop / Windows ${{matrix.target}} (msvc2019_64, 5.15.*, 7) (push) Has been cancelled
Build Desktop / Windows ${{matrix.target}} (msvc2019_64, qtimageformats qtmultimedia qtwebsockets, 6.6.*, 10) (push) Has been cancelled
* sort cmake * copy over comments * clean up comments
54 lines
1.6 KiB
Protocol Buffer
54 lines
1.6 KiB
Protocol Buffer
syntax = "proto2";
|
|
import "game_commands.proto";
|
|
|
|
// Container describing a single card to move
|
|
message CardToMove {
|
|
// Id of the card in its current zone
|
|
optional sint32 card_id = 1 [default = -1];
|
|
|
|
// Places the card face down, hiding its name
|
|
optional bool face_down = 2;
|
|
|
|
// When moving add this value to the power/toughness field of the card
|
|
optional string pt = 3;
|
|
|
|
// When moving sets the card to be tapped
|
|
optional bool tapped = 4;
|
|
}
|
|
|
|
// Container of multiple cards to move
|
|
message ListOfCardsToMove {
|
|
repeated CardToMove card = 1;
|
|
}
|
|
|
|
// Command to move an amount of cards from one zone to another index/coordinate or another zone
|
|
message Command_MoveCard {
|
|
extend GameCommand {
|
|
optional Command_MoveCard ext = 1027;
|
|
}
|
|
|
|
// The player the zone the cards are in belongs to
|
|
optional sint32 start_player_id = 1 [default = -1];
|
|
|
|
// The zone the cards start in
|
|
optional string start_zone = 2;
|
|
|
|
// List of the cards and their new properties
|
|
optional ListOfCardsToMove cards_to_move = 3;
|
|
|
|
// The player the zone the cards will be moved to belongs to
|
|
optional sint32 target_player_id = 4 [default = -1];
|
|
|
|
// The zone the cards will be moved to
|
|
optional string target_zone = 5;
|
|
|
|
// New x coordinate of the first card in the list
|
|
optional sint32 x = 6 [default = -1];
|
|
|
|
// New y coordinate of the first card in the list
|
|
optional sint32 y = 7 [default = -1];
|
|
|
|
// Inverts the x coordinate to apply from the end of the target zone instead of the start
|
|
optional bool is_reversed = 8 [default = false];
|
|
}
|