define SERVER
parent
cf955ef3fb
commit
5b2db7cd78
|
@ -17,5 +17,6 @@ add_executable(eco2d-server
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(header modules)
|
include_directories(header modules)
|
||||||
|
target_compile_definitions(eco2d-server PRIVATE SERVER)
|
||||||
target_link_libraries(eco2d-server eco2d-common eco2d-modules flecs-bundle cwpack)
|
target_link_libraries(eco2d-server eco2d-common eco2d-modules flecs-bundle cwpack)
|
||||||
link_system_libs(eco2d-server)
|
link_system_libs(eco2d-server)
|
||||||
|
|
|
@ -5,7 +5,10 @@
|
||||||
#define PKT_HEADER_ELEMENTS 2
|
#define PKT_HEADER_ELEMENTS 2
|
||||||
|
|
||||||
pkt_handler pkt_handlers[] = {
|
pkt_handler pkt_handlers[] = {
|
||||||
|
#ifdef SERVER
|
||||||
|
#else
|
||||||
{.id = MSG_ID_01_WELCOME, .handler = pkt_01_welcome_handler},
|
{.id = MSG_ID_01_WELCOME, .handler = pkt_01_welcome_handler},
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
uint8_t pkt_buffer[PKT_BUFSIZ];
|
uint8_t pkt_buffer[PKT_BUFSIZ];
|
||||||
|
|
Loading…
Reference in New Issue