16 lines
235 B
C
16 lines
235 B
C
|
#pragma once
|
||
|
#include "LuaVM.h"
|
||
|
#include "SDL2/include/SDL.h"
|
||
|
|
||
|
int InitNetwork(lua_State* L);
|
||
|
|
||
|
struct SocketEventData
|
||
|
{
|
||
|
int fd;
|
||
|
const char* data;
|
||
|
int ret;
|
||
|
int errcode;
|
||
|
};
|
||
|
|
||
|
void HandleNetworkEvent(lua_State* L, const SDL_Event& e);
|