project_files/frontlib/ipc/gameconn.h
changeset 7271 5608ac657362
parent 7234 613998625a3c
child 7275 15f722e0b96f
equal deleted inserted replaced
7269:5b0aeef8ba2a 7271:5608ac657362
    13 #define GAME_END_ERROR 3
    13 #define GAME_END_ERROR 3
    14 
    14 
    15 struct _flib_gameconn;
    15 struct _flib_gameconn;
    16 typedef struct _flib_gameconn flib_gameconn;
    16 typedef struct _flib_gameconn flib_gameconn;
    17 
    17 
    18 flib_gameconn *flib_gameconn_create(const char *playerName, flib_gamesetup *setup, bool netgame);
    18 flib_gameconn *flib_gameconn_create(const char *playerName, const flib_gamesetup *setup, bool netgame);
    19 flib_gameconn *flib_gameconn_create_playdemo(const uint8_t *demo, int size);
    19 flib_gameconn *flib_gameconn_create_playdemo(const uint8_t *demo, int size);
    20 flib_gameconn *flib_gameconn_create_loadgame(const char *playerName, const uint8_t *save, int size);
    20 flib_gameconn *flib_gameconn_create_loadgame(const char *playerName, const uint8_t *save, int size);
       
    21 flib_gameconn *flib_gameconn_create_campaign(const char *playerName, const char *seed, const char *script);
       
    22 
    21 void flib_gameconn_destroy(flib_gameconn *conn);
    23 void flib_gameconn_destroy(flib_gameconn *conn);
    22 
    24 
    23 /**
    25 /**
    24  * Returns the port on which the gameconn is listening. Only fails if you
    26  * Returns the port on which the gameconn is listening. Only fails if you
    25  * pass NULL (not allowed), in that case 0 is returned.
    27  * pass NULL (not allowed), in that case 0 is returned.