mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
changed lock icon, added sideboard locking, issue #15 fixed
This commit is contained in:
parent
0b51af888c
commit
b2b7242802
17 changed files with 336 additions and 122 deletions
|
|
@ -40,6 +40,7 @@ SET(PROTO_FILES
|
|||
command_set_card_counter.proto
|
||||
command_set_counter.proto
|
||||
command_set_sideboard_plan.proto
|
||||
command_set_sideboard_lock.proto
|
||||
command_shuffle.proto
|
||||
commands.proto
|
||||
command_stop_dump_zone.proto
|
||||
|
|
@ -51,6 +52,7 @@ SET(PROTO_FILES
|
|||
context_mulligan.proto
|
||||
context_ping_changed.proto
|
||||
context_ready_start.proto
|
||||
context_set_sideboard_lock.proto
|
||||
context_undo_draw.proto
|
||||
event_add_to_list.proto
|
||||
event_attach_card.proto
|
||||
|
|
|
|||
7
common/pb/command_set_sideboard_lock.proto
Normal file
7
common/pb/command_set_sideboard_lock.proto
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import "game_commands.proto";
|
||||
message Command_SetSideboardLock {
|
||||
extend GameCommand {
|
||||
optional Command_SetSideboardLock ext = 1030;
|
||||
}
|
||||
optional bool locked = 1;
|
||||
}
|
||||
7
common/pb/context_set_sideboard_lock.proto
Normal file
7
common/pb/context_set_sideboard_lock.proto
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import "game_event_context.proto";
|
||||
|
||||
message Context_SetSideboardLock {
|
||||
extend GameEventContext {
|
||||
optional Context_SetSideboardLock ext = 1008;
|
||||
}
|
||||
}
|
||||
|
|
@ -30,6 +30,7 @@ message GameCommand {
|
|||
MOVE_CARD = 1027;
|
||||
SET_SIDEBOARD_PLAN = 1028;
|
||||
DECK_SELECT = 1029;
|
||||
SET_SIDEBOARD_LOCK = 1030;
|
||||
}
|
||||
extensions 100 to max;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ message GameEventContext {
|
|||
MULLIGAN = 1005;
|
||||
PING_CHANGED = 1006;
|
||||
CONNECTION_STATE_CHANGED = 1007;
|
||||
SET_SIDEBOARD_LOCK = 1008;
|
||||
}
|
||||
extensions 100 to max;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,4 +8,5 @@ message ServerInfo_PlayerProperties {
|
|||
optional bool ready_start = 5;
|
||||
optional string deck_hash = 6;
|
||||
optional sint32 ping_seconds = 7;
|
||||
optional bool sideboard_locked = 8;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue