2020-12-18 23:21:10 +01:00
|
|
|
#ifndef MWLUA_LUABINDINGS_H
|
|
|
|
#define MWLUA_LUABINDINGS_H
|
|
|
|
|
2023-04-22 13:10:20 +02:00
|
|
|
#include <map>
|
|
|
|
#include <sol/forward.hpp>
|
|
|
|
#include <string>
|
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
|
|
|
|
|
|
|
namespace MWLua
|
|
|
|
{
|
2023-04-22 13:10:20 +02:00
|
|
|
// Initialize Lua packages that are available for all scripts.
|
|
|
|
std::map<std::string, sol::object> initCommonPackages(const Context&);
|
2020-12-18 23:21:10 +01:00
|
|
|
|
2023-04-22 13:10:20 +02:00
|
|
|
// Initialize Lua packages that are available only for global scripts.
|
|
|
|
std::map<std::string, sol::object> initGlobalPackages(const Context&);
|
2021-01-29 01:54:54 +01:00
|
|
|
|
2023-04-22 13:10:20 +02:00
|
|
|
// Initialize Lua packages that are available only for local scripts (including player scripts).
|
|
|
|
std::map<std::string, sol::object> initLocalPackages(const Context&);
|
2021-06-26 23:10:24 +02:00
|
|
|
|
2023-04-22 13:10:20 +02:00
|
|
|
// Initialize Lua packages that are available only for local scripts on the player.
|
|
|
|
std::map<std::string, sol::object> initPlayerPackages(const Context&);
|
2020-12-18 23:21:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // MWLUA_LUABINDINGS_H
|