equal
deleted
inserted
replaced
1 #ifndef IPCPROTOCOL_H_ |
1 #ifndef IPCPROTOCOL_H_ |
2 #define IPCPROTOCOL_H_ |
2 #define IPCPROTOCOL_H_ |
3 |
3 |
4 #include "../buffer.h" |
4 #include "../util/buffer.h" |
5 #include "../model/map.h" |
5 #include "../model/map.h" |
|
6 #include "../model/team.h" |
|
7 #include "../model/cfg.h" |
6 |
8 |
7 #include <stdbool.h> |
9 #include <stdbool.h> |
8 |
10 |
9 /** |
11 /** |
10 * Create a message in the IPC protocol format and add it to |
12 * Create a message in the IPC protocol format and add it to |
33 * Returns nonzero if something goes wrong. In that case the buffer |
35 * Returns nonzero if something goes wrong. In that case the buffer |
34 * contents are unaffected. |
36 * contents are unaffected. |
35 */ |
37 */ |
36 int flib_ipc_append_seed(flib_vector vec, const char *seed); |
38 int flib_ipc_append_seed(flib_vector vec, const char *seed); |
37 |
39 |
|
40 /** |
|
41 * Append the game scheme to the buffer. |
|
42 * |
|
43 * Returns nonzero if something goes wrong. In that case the buffer |
|
44 * contents are unaffected. |
|
45 */ |
|
46 int flib_ipc_append_gamescheme(flib_vector vec, flib_cfg *seed, flib_cfg_meta *meta); |
|
47 |
|
48 int flib_ipc_append_addteam(flib_vector vec, flib_team *team, bool perHogAmmo, bool sharedAmmo); |
|
49 |
38 #endif /* IPCPROTOCOL_H_ */ |
50 #endif /* IPCPROTOCOL_H_ */ |