Event in lua (partial)
This commit is contained in:
@@ -12,8 +12,13 @@
|
||||
#include <lauxlib.h>
|
||||
#include <lualib.h>
|
||||
|
||||
typedef struct event_s event_t;
|
||||
|
||||
#define SCRIPT_CONTEXT_MAX_EVENT_SUBSCRIPTIONS 64
|
||||
|
||||
typedef struct scriptcontext_s {
|
||||
lua_State *luaState;
|
||||
event_t* subscribedEvents[SCRIPT_CONTEXT_MAX_EVENT_SUBSCRIPTIONS];
|
||||
} scriptcontext_t;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user