From 197708500f3adaaa50bc1a5a94aec0db8ea621e5 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 14 Apr 2011 19:18:48 +0200 Subject: add dynamic player count for client. currently works only with 1 player as server doesn't send the initial map to the clients --- pacman-c++/pacman.proto | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'pacman-c++/pacman.proto') diff --git a/pacman-c++/pacman.proto b/pacman-c++/pacman.proto index 98478a0..51bb239 100644 --- a/pacman-c++/pacman.proto +++ b/pacman-c++/pacman.proto @@ -4,12 +4,18 @@ message KeyPressUpdate { required uint32 newKey = 1; } +message Init { + required uint32 color = 1; + required uint32 maxplayers = 2; +} + +message MapInit { + repeated uint32 field = 1 [packed=true]; +} + message MapUpdate { repeated uint32 field = 1 [packed=true]; repeated uint32 round_points = 2; repeated uint32 game_points = 3; } -message WhoAmI { - required uint32 color = 1; -} -- cgit v1.2.3