|
|
|
@ -3,7 +3,7 @@
|
|
|
|
* Author - Joey Pollack
|
|
|
|
* Author - Joey Pollack
|
|
|
|
* Date - 2021/08/30 (y/m/d)
|
|
|
|
* Date - 2021/08/30 (y/m/d)
|
|
|
|
* Mod Date - 2021/09/02 (y/m/d)
|
|
|
|
* Mod Date - 2021/09/02 (y/m/d)
|
|
|
|
* Description - Manage the main LUA state, Run given scripts and check for
|
|
|
|
* Description - Manage the main wren state, Run given scripts and check for
|
|
|
|
* errors. Report errors in the debug log. Also keep a
|
|
|
|
* errors. Report errors in the debug log. Also keep a
|
|
|
|
* history of errors that can be queried.
|
|
|
|
* history of errors that can be queried.
|
|
|
|
******************************************************************************/
|
|
|
|
******************************************************************************/
|
|
|
|
@ -11,7 +11,6 @@
|
|
|
|
#ifndef SCRIPT_MANAGER_H_
|
|
|
|
#ifndef SCRIPT_MANAGER_H_
|
|
|
|
#define SCRIPT_MANAGER_H_
|
|
|
|
#define SCRIPT_MANAGER_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include <sol/sol.hpp>
|
|
|
|
|
|
|
|
#include <utils/op_res.h>
|
|
|
|
#include <utils/op_res.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace lunarium
|
|
|
|
namespace lunarium
|
|
|
|
@ -27,7 +26,6 @@ namespace lunarium
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
static ScriptManager* mpInstance;
|
|
|
|
static ScriptManager* mpInstance;
|
|
|
|
sol::state mState;
|
|
|
|
|
|
|
|
uint32_t mCat;
|
|
|
|
uint32_t mCat;
|
|
|
|
|
|
|
|
|
|
|
|
friend class CoreAPI;
|
|
|
|
friend class CoreAPI;
|
|
|
|
|