added menu item: game->game information, issue #1 fixed

This commit is contained in:
Max-Wilhelm Bruker 2012-03-24 22:09:06 +01:00
parent 5ff1fd8ec6
commit 542fd2c5c8
12 changed files with 182 additions and 88 deletions

View file

@ -1,16 +1,15 @@
import "session_event.proto";
import "serverinfo_game.proto";
import "serverinfo_gametype.proto";
message Event_GameJoined {
extend SessionEvent {
optional Event_GameJoined ext = 1009;
}
optional sint32 room_id = 1;
optional sint32 game_id = 2;
optional string game_description = 3;
optional sint32 host_id = 4;
optional sint32 player_id = 5;
optional bool spectator = 6;
optional bool spectators_can_talk = 7;
optional bool spectators_see_everything = 8;
optional bool resuming = 9;
optional ServerInfo_Game game_info = 1;
repeated ServerInfo_GameType game_types = 2;
optional sint32 host_id = 3;
optional sint32 player_id = 4;
optional bool spectator = 5;
optional bool resuming = 6;
}

View file

@ -1,20 +1,22 @@
import "serverinfo_user.proto";
message ServerInfo_Game {
optional sint32 room_id = 1;
optional sint32 game_id = 2;
optional string description = 3;
optional bool with_password = 4;
optional uint32 player_count = 5;
optional sint32 server_id = 1 [default = -1];
optional sint32 room_id = 2 [default = -1];
optional sint32 game_id = 3 [default = -1];
optional string description = 4;
optional bool with_password = 5;
optional uint32 max_players = 6;
optional bool started = 7;
repeated sint32 game_types = 8;
optional ServerInfo_User creator_info = 9;
optional bool only_buddies = 10;
optional bool only_registered = 11;
optional bool spectators_allowed = 12;
optional bool spectators_need_password = 13;
optional uint32 spectators_count = 14;
optional uint32 start_time = 15;
optional sint32 server_id = 16 [default = -1];
repeated sint32 game_types = 7;
optional ServerInfo_User creator_info = 8;
optional bool only_buddies = 9;
optional bool only_registered = 10;
optional bool spectators_allowed = 11;
optional bool spectators_need_password = 12;
optional bool spectators_can_chat = 13;
optional bool spectators_omniscient = 14;
optional uint32 player_count = 30;
optional uint32 spectators_count = 31;
optional bool started = 50;
optional uint32 start_time = 51;
}