90 #define NETCONN_MAPCHANGE_MAZE_SIZE 4 |
90 #define NETCONN_MAPCHANGE_MAZE_SIZE 4 |
91 #define NETCONN_MAPCHANGE_TEMPLATE 5 |
91 #define NETCONN_MAPCHANGE_TEMPLATE 5 |
92 #define NETCONN_MAPCHANGE_THEME 6 |
92 #define NETCONN_MAPCHANGE_THEME 6 |
93 #define NETCONN_MAPCHANGE_SEED 7 |
93 #define NETCONN_MAPCHANGE_SEED 7 |
94 |
94 |
95 // TODO: Order of functions, and match the order in netconn.c |
95 // TODO: Order these functions, and match the order in netconn.c |
96 typedef struct _flib_netconn flib_netconn; |
96 typedef struct _flib_netconn flib_netconn; |
97 |
97 |
98 /** |
98 /** |
99 * Create a new netplay connection with these parameters. |
99 * Create a new netplay connection with these parameters. |
100 * The path to the data directory must end with a path delimiter (e.g. C:\Games\Hedgewars\Data\) |
100 * The path to the data directory must end with a path delimiter (e.g. C:\Games\Hedgewars\Data\) |
101 */ |
101 */ |
102 flib_netconn *flib_netconn_create(const char *playerName, flib_metascheme *metacfg, const char *dataDirPath, const char *host, int port); |
102 flib_netconn *flib_netconn_create(const char *playerName, const char *dataDirPath, const char *host, int port); |
103 void flib_netconn_destroy(flib_netconn *conn); |
103 void flib_netconn_destroy(flib_netconn *conn); |
104 |
104 |
105 /** |
105 /** |
106 * Perform I/O operations and call callbacks if something interesting happens. |
106 * Perform I/O operations and call callbacks if something interesting happens. |
107 * Should be called regularly. |
107 * Should be called regularly. |