1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/apps/openmw/mwlua/luabindings.hpp

67 lines
2.0 KiB
C++
Raw Normal View History

2020-12-18 23:21:10 +01:00
#ifndef MWLUA_LUABINDINGS_H
#define MWLUA_LUABINDINGS_H
#include <components/lua/luastate.hpp>
#include <components/lua/serialization.hpp>
2021-03-12 18:29:51 +01:00
#include <components/lua/scriptscontainer.hpp>
2021-12-14 00:39:01 +01:00
#include <components/lua/storage.hpp>
2020-12-18 23:21:10 +01:00
2021-02-17 22:56:14 +01:00
#include "context.hpp"
2020-12-18 23:21:10 +01:00
#include "eventqueue.hpp"
#include "object.hpp"
#include "worldview.hpp"
2021-04-17 11:50:20 +02:00
namespace MWWorld
{
class CellStore;
}
2020-12-18 23:21:10 +01:00
namespace MWLua
{
sol::table initCorePackage(const Context&);
sol::table initWorldPackage(const Context&);
2022-05-13 18:58:00 -07:00
sol::table initPostprocessingPackage(const Context&);
2020-12-18 23:21:10 +01:00
2021-12-14 00:39:01 +01:00
sol::table initGlobalStoragePackage(const Context&, LuaUtil::LuaStorage* globalStorage);
sol::table initLocalStoragePackage(const Context&, LuaUtil::LuaStorage* globalStorage);
sol::table initPlayerStoragePackage(const Context&, LuaUtil::LuaStorage* globalStorage, LuaUtil::LuaStorage* playerStorage);
2021-08-28 10:47:57 +02:00
// Implemented in nearbybindings.cpp
sol::table initNearbyPackage(const Context&);
2020-12-18 23:21:10 +01:00
// Implemented in objectbindings.cpp
void initObjectBindingsForLocalScripts(const Context&);
void initObjectBindingsForGlobalScripts(const Context&);
2021-04-17 11:50:20 +02:00
// Implemented in cellbindings.cpp
void initCellBindingsForLocalScripts(const Context&);
void initCellBindingsForGlobalScripts(const Context&);
2021-03-12 18:29:51 +01:00
// Implemented in asyncbindings.cpp
struct AsyncPackageId
{
LuaUtil::ScriptsContainer* mContainer;
int mScriptId;
2021-08-27 09:26:38 +02:00
sol::table mHiddenData;
2021-03-12 18:29:51 +01:00
};
sol::function getAsyncPackageInitializer(const Context&);
2021-01-29 01:54:54 +01:00
// Implemented in camerabindings.cpp
sol::table initCameraPackage(const Context&);
// Implemented in uibindings.cpp
sol::table initUserInterfacePackage(const Context&);
2021-06-26 23:10:24 +02:00
// Implemented in inputbindings.cpp
sol::table initInputPackage(const Context&);
2021-06-01 23:18:42 +02:00
// Implemented in settingsbindings.cpp
sol::table initGlobalSettingsPackage(const Context&);
sol::table initPlayerSettingsPackage(const Context&);
2020-12-18 23:21:10 +01:00
// openmw.self package is implemented in localscripts.cpp
}
#endif // MWLUA_LUABINDINGS_H