project_files/frontlib/ipc/ipcprotocol.h
changeset 7230 240620f46dd7
parent 7224 5143861c83bd
child 7271 5608ac657362
equal deleted inserted replaced
7227:1c859f572d72 7230:240620f46dd7
     3 
     3 
     4 #include "../util/buffer.h"
     4 #include "../util/buffer.h"
     5 #include "../model/map.h"
     5 #include "../model/map.h"
     6 #include "../model/team.h"
     6 #include "../model/team.h"
     7 #include "../model/cfg.h"
     7 #include "../model/cfg.h"
       
     8 #include "../model/gamesetup.h"
     8 
     9 
     9 #include <stdbool.h>
    10 #include <stdbool.h>
    10 
    11 
    11 /**
    12 /**
    12  * Create a message in the IPC protocol format and add it to
    13  * Create a message in the IPC protocol format and add it to
    25  * for generating a map preview.
    26  * for generating a map preview.
    26  *
    27  *
    27  * Returns nonzero if something goes wrong. In that case the buffer
    28  * Returns nonzero if something goes wrong. In that case the buffer
    28  * contents are unaffected.
    29  * contents are unaffected.
    29  */
    30  */
    30 int flib_ipc_append_mapconf(flib_vector *vec, flib_map *map, bool mappreview);
    31 int flib_ipc_append_mapconf(flib_vector *vec, const flib_map *map, bool mappreview);
    31 
    32 
    32 /**
    33 /**
    33  * Append a seed message to the buffer.
    34  * Append a seed message to the buffer.
    34  *
    35  *
    35  * Returns nonzero if something goes wrong. In that case the buffer
    36  * Returns nonzero if something goes wrong. In that case the buffer
    41  * Append the game scheme to the buffer.
    42  * Append the game scheme to the buffer.
    42  *
    43  *
    43  * Returns nonzero if something goes wrong. In that case the buffer
    44  * Returns nonzero if something goes wrong. In that case the buffer
    44  * contents are unaffected.
    45  * contents are unaffected.
    45  */
    46  */
    46 int flib_ipc_append_gamescheme(flib_vector *vec, flib_cfg *seed, flib_cfg_meta *meta);
    47 int flib_ipc_append_gamescheme(flib_vector *vec, const flib_cfg *cfg);
    47 
    48 
    48 int flib_ipc_append_addteam(flib_vector *vec, flib_team *team, bool perHogAmmo, bool sharedAmmo);
    49 int flib_ipc_append_addteam(flib_vector *vec, const flib_team *team, bool perHogAmmo, bool noAmmoStore);
       
    50 
       
    51 int flib_ipc_append_fullconfig(flib_vector *vec, const flib_gamesetup *setup, bool netgame);
    49 
    52 
    50 #endif /* IPCPROTOCOL_H_ */
    53 #endif /* IPCPROTOCOL_H_ */