preliminary AlwaysRevealTopCard support related to issue #31, server code cleanup (finally removed getGameState)

This commit is contained in:
Max-Wilhelm Bruker 2012-03-31 21:47:30 +02:00
parent 75bac4a5b9
commit 7417236c3a
28 changed files with 329 additions and 184 deletions

View file

@ -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

View 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;
}

View 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;
}

View file

@ -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;
}

View file

@ -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;

View file

@ -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;
}