2020-12-31 07:32:16 -08:00
|
|
|
// Copyright © 2008-2021 Pioneer Developers. See AUTHORS.txt for details
|
2012-09-15 17:59:15 -07:00
|
|
|
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
|
2012-09-12 04:38:30 -07:00
|
|
|
|
2012-09-02 15:52:48 -07:00
|
|
|
#ifndef _LUA_H
|
|
|
|
#define _LUA_H
|
|
|
|
|
|
|
|
#include "LuaManager.h"
|
|
|
|
|
|
|
|
// home for the global Lua context. here so its shareable between pioneer and
|
|
|
|
// modelviewer. probably sucks in the long term
|
|
|
|
namespace Lua {
|
|
|
|
|
2019-01-02 08:59:07 -08:00
|
|
|
extern LuaManager *manager;
|
2012-09-02 15:52:48 -07:00
|
|
|
|
2020-01-19 21:59:32 -08:00
|
|
|
// Initialize the lua instance
|
2019-01-02 08:59:07 -08:00
|
|
|
void Init();
|
2020-01-19 21:59:32 -08:00
|
|
|
// Uninitialize the lua instance
|
2019-01-02 08:59:07 -08:00
|
|
|
void Uninit();
|
2012-09-02 15:52:48 -07:00
|
|
|
|
2020-01-19 21:59:32 -08:00
|
|
|
// Initialize all lua bindings and modules
|
|
|
|
void InitModules();
|
|
|
|
// Uninitialize all lua bindings and modules
|
|
|
|
void UninitModules();
|
|
|
|
|
2019-01-02 08:59:07 -08:00
|
|
|
} // namespace Lua
|
2012-09-02 15:52:48 -07:00
|
|
|
|
|
|
|
#endif
|