mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-28 01:23:55 -07:00
preliminary AlwaysRevealTopCard support related to issue #31, server code cleanup (finally removed getGameState)
This commit is contained in:
parent
75bac4a5b9
commit
7417236c3a
28 changed files with 329 additions and 184 deletions
|
|
@ -5,6 +5,7 @@ SET(PROTO_FILES
|
|||
card_attributes.proto
|
||||
color.proto
|
||||
command_attach_card.proto
|
||||
command_change_zone_properties.proto
|
||||
command_concede.proto
|
||||
command_create_arrow.proto
|
||||
command_create_counter.proto
|
||||
|
|
@ -56,6 +57,7 @@ SET(PROTO_FILES
|
|||
context_undo_draw.proto
|
||||
event_add_to_list.proto
|
||||
event_attach_card.proto
|
||||
event_change_zone_properties.proto
|
||||
event_connection_closed.proto
|
||||
event_create_arrow.proto
|
||||
event_create_counter.proto
|
||||
|
|
|
|||
10
common/pb/command_change_zone_properties.proto
Normal file
10
common/pb/command_change_zone_properties.proto
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import "game_commands.proto";
|
||||
|
||||
message Command_ChangeZoneProperties {
|
||||
extend GameCommand {
|
||||
optional Command_ChangeZoneProperties ext = 1031;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
|
||||
optional bool always_reveal_top_card = 10;
|
||||
}
|
||||
10
common/pb/event_change_zone_properties.proto
Normal file
10
common/pb/event_change_zone_properties.proto
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import "game_event.proto";
|
||||
|
||||
message Event_ChangeZoneProperties {
|
||||
extend GameEvent {
|
||||
optional Event_ChangeZoneProperties ext = 2020;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
|
||||
optional bool always_reveal_top_card = 10;
|
||||
}
|
||||
|
|
@ -31,6 +31,7 @@ message GameCommand {
|
|||
SET_SIDEBOARD_PLAN = 1028;
|
||||
DECK_SELECT = 1029;
|
||||
SET_SIDEBOARD_LOCK = 1030;
|
||||
CHANGE_ZONE_PROPERTIES = 1031;
|
||||
}
|
||||
extensions 100 to max;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ message GameEvent {
|
|||
SET_ACTIVE_PHASE = 2017;
|
||||
DUMP_ZONE = 2018;
|
||||
STOP_DUMP_ZONE = 2019;
|
||||
CHANGE_ZONE_PROPERTIES = 2020;
|
||||
}
|
||||
optional sint32 player_id = 1 [default = -1];
|
||||
extensions 100 to max;
|
||||
|
|
|
|||
|
|
@ -20,4 +20,5 @@ message ServerInfo_Zone {
|
|||
optional bool with_coords = 3;
|
||||
optional sint32 card_count = 4;
|
||||
repeated ServerInfo_Card card_list = 5;
|
||||
optional bool always_reveal_top_card = 10;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue