mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
Turn things in common into separate libs.
Took 2 hours 27 minutes
This commit is contained in:
parent
53d80efab8
commit
01378b8314
389 changed files with 336 additions and 233 deletions
30
libs/pb/command_create_arrow.proto
Normal file
30
libs/pb/command_create_arrow.proto
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
import "color.proto";
|
||||
|
||||
// Command to draw an arrow from cards to either other cards or a player
|
||||
message Command_CreateArrow {
|
||||
extend GameCommand {
|
||||
optional Command_CreateArrow ext = 1011;
|
||||
}
|
||||
// the player that has the card the arrow is drawn from
|
||||
optional sint32 start_player_id = 1 [default = -1];
|
||||
|
||||
// the zone that the card the arrow is drawn from is in
|
||||
optional string start_zone = 2;
|
||||
|
||||
// the id of the card that the arrow is drawn from
|
||||
optional sint32 start_card_id = 3 [default = -1];
|
||||
|
||||
// the player that has the card the arrow is drawn to, or that the arrow is drawn to if not a card
|
||||
optional sint32 target_player_id = 4 [default = -1];
|
||||
|
||||
// the zone that the card the arrow is drawn to is in, the player will be targeted if this is absent
|
||||
optional string target_zone = 5;
|
||||
|
||||
// the id of the card that the arrow is drawn to, the player will be targeted if this is absent
|
||||
optional sint32 target_card_id = 6 [default = -1];
|
||||
|
||||
// the color of the arrow
|
||||
optional color arrow_color = 7;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue