summaryrefslogtreecommitdiffstats
path: root/pacman-c++/pacman.proto
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-14 19:18:48 +0200
committermanuel <manuel@mausz.at>2011-04-14 19:18:48 +0200
commit197708500f3adaaa50bc1a5a94aec0db8ea621e5 (patch)
tree9fd6c9de8aef4f62e34e2d28fd485eaf52a5c909 /pacman-c++/pacman.proto
parent3fd1334e6d5339cad07ac4e4e23991a73d960a8e (diff)
downloadfoop-197708500f3adaaa50bc1a5a94aec0db8ea621e5.tar.gz
foop-197708500f3adaaa50bc1a5a94aec0db8ea621e5.tar.bz2
foop-197708500f3adaaa50bc1a5a94aec0db8ea621e5.zip
add dynamic player count for client. currently works only with 1 player as server doesn't send the initial map to the clients
Diffstat (limited to 'pacman-c++/pacman.proto')
-rw-r--r--pacman-c++/pacman.proto12
1 files changed, 9 insertions, 3 deletions
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 {
4 required uint32 newKey = 1; 4 required uint32 newKey = 1;
5} 5}
6 6
7message Init {
8 required uint32 color = 1;
9 required uint32 maxplayers = 2;
10}
11
12message MapInit {
13 repeated uint32 field = 1 [packed=true];
14}
15
7message MapUpdate { 16message MapUpdate {
8 repeated uint32 field = 1 [packed=true]; 17 repeated uint32 field = 1 [packed=true];
9 repeated uint32 round_points = 2; 18 repeated uint32 round_points = 2;
10 repeated uint32 game_points = 3; 19 repeated uint32 game_points = 3;
11} 20}
12 21
13message WhoAmI {
14 required uint32 color = 1;
15}