equal
deleted
inserted
replaced
1 #ifndef GAMECONN_H_ |
1 #ifndef GAMECONN_H_ |
2 #define GAMECONN_H_ |
2 #define GAMECONN_H_ |
3 |
3 |
4 #include "../util/buffer.h" |
|
5 #include "../model/gamesetup.h" |
4 #include "../model/gamesetup.h" |
6 |
5 |
7 #include <stddef.h> |
6 #include <stddef.h> |
8 #include <stdint.h> |
7 #include <stdint.h> |
9 #include <stdbool.h> |
8 #include <stdbool.h> |
71 |
70 |
72 /** |
71 /** |
73 * ...needs to be passed on to the server in a net game |
72 * ...needs to be passed on to the server in a net game |
74 * handleEngineMessage(void *context, const uint8_t *em, int size) |
73 * handleEngineMessage(void *context, const uint8_t *em, int size) |
75 */ |
74 */ |
76 void flib_gameconn_onNetMessage(flib_gameconn *conn, void (*callback)(void *context, const uint8_t *em, int size), void* context); |
75 void flib_gameconn_onEngineMessage(flib_gameconn *conn, void (*callback)(void *context, const uint8_t *em, int size), void* context); |
77 |
76 |
78 // TODO efinish |
77 // TODO efinish |
79 |
78 |
80 #endif |
79 #endif |