equal
deleted
inserted
replaced
6 #ifdef __cplusplus |
6 #ifdef __cplusplus |
7 extern "C" { |
7 extern "C" { |
8 #endif |
8 #endif |
9 |
9 |
10 enum MessageType { |
10 enum MessageType { |
11 MSG_RENDERINGPREVIEW |
11 MSG_RENDERINGPREVIEW, |
12 , MSG_PREVIEW |
12 MSG_PREVIEW, |
13 , MSG_PREVIEWHOGCOUNT |
13 MSG_PREVIEWHOGCOUNT, |
14 , MSG_ADDPLAYINGTEAM |
|
15 , MSG_REMOVEPLAYINGTEAM |
|
16 , MSG_ADDTEAM |
|
17 , MSG_REMOVETEAM |
|
18 , MSG_TEAMCOLOR |
|
19 , MSG_HEDGEHOGSNUMBER |
|
20 , MSG_NETDATA |
|
21 , MSG_TONET |
|
22 , MSG_FLIBEVENT |
|
23 , MSG_CONNECTED |
|
24 , MSG_DISCONNECTED |
|
25 , MSG_ADDLOBBYCLIENT |
|
26 , MSG_REMOVELOBBYCLIENT |
|
27 , MSG_LOBBYCHATLINE |
|
28 , MSG_ADDROOMCLIENT |
|
29 , MSG_REMOVEROOMCLIENT |
|
30 , MSG_ROOMCHATLINE |
|
31 , MSG_ADDROOM |
|
32 , MSG_UPDATEROOM |
|
33 , MSG_REMOVEROOM |
|
34 , MSG_ERROR |
|
35 , MSG_WARNING |
|
36 , MSG_MOVETOLOBBY |
|
37 , MSG_MOVETOROOM |
|
38 , MSG_NICKNAME |
|
39 , MSG_SEED |
|
40 , MSG_THEME |
|
41 , MSG_SCRIPT |
|
42 , MSG_FEATURESIZE |
|
43 , MSG_MAPGEN |
|
44 , MSG_MAP |
|
45 , MSG_MAZESIZE |
|
46 , MSG_TEMPLATE |
|
47 , MSG_AMMO |
|
48 , MSG_SCHEME |
|
49 }; |
14 }; |
50 |
15 |
51 typedef union string255_ |
16 typedef union string255_ { |
52 { |
17 struct { |
53 struct { |
18 unsigned char s[256]; |
54 unsigned char s[256]; |
19 }; |
55 }; |
20 struct { |
56 struct { |
21 unsigned char len; |
57 unsigned char len; |
22 unsigned char str[255]; |
58 unsigned char str[255]; |
23 }; |
59 }; |
24 } string255; |
60 } string255; |
|
61 |
25 |
62 typedef void RunEngine_t(int argc, const char ** argv); |
26 typedef void RunEngine_t(int argc, const char** argv); |
63 typedef void registerUIMessagesCallback_t(void * context, void (*)(void * context, MessageType mt, const char * msg, uint32_t len)); |
27 typedef void registerUIMessagesCallback_t(void* context, void (*)(void* context, MessageType mt, const char* msg, uint32_t len)); |
64 typedef void flibInit_t(const char * localPrefix, const char * userPrefix); |
28 typedef void flibInit_t(const char* localPrefix, const char* userPrefix); |
65 typedef void flibFree_t(); |
29 typedef void flibFree_t(); |
66 typedef void passFlibEvent_t(const char * data); |
30 typedef void passFlibEvent_t(const char* data); |
67 |
31 |
68 #ifdef __cplusplus |
32 #ifdef __cplusplus |
69 } |
33 } |
70 #endif |
34 #endif |
71 |
35 |