Add script context
This commit is contained in:
@@ -7,12 +7,9 @@
|
||||
|
||||
#pragma once
|
||||
#include "error/error.h"
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
#include <lualib.h>
|
||||
|
||||
typedef struct scriptmanager_s {
|
||||
lua_State *luaState;
|
||||
void *nothing;
|
||||
} scriptmanager_t;
|
||||
|
||||
extern scriptmanager_t SCRIPT_MANAGER;
|
||||
@@ -24,22 +21,6 @@ extern scriptmanager_t SCRIPT_MANAGER;
|
||||
*/
|
||||
errorret_t scriptManagerInit();
|
||||
|
||||
/**
|
||||
* Execute a Lua script.
|
||||
*
|
||||
* @param script The script to execute.
|
||||
* @return The error return value.
|
||||
*/
|
||||
errorret_t scriptManagerExecString(const char_t *script);
|
||||
|
||||
/**
|
||||
* Execute a Lua script from a file.
|
||||
*
|
||||
* @param filename The filename of the script to execute.
|
||||
* @return The error return value.
|
||||
*/
|
||||
errorret_t scriptManagerExecFile(const char_t *filename);
|
||||
|
||||
/**
|
||||
* Dispose of the script manager.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user