#include <l_settings.h>
|
static void | create (lua_State *L, Settings *settings, const std::string &filename) |
|
static int | create_object (lua_State *L) |
|
static void | Register (lua_State *L) |
|
static ScriptApiBase * | getScriptApiBase (lua_State *L) |
|
static Server * | getServer (lua_State *L) |
|
static ServerInventoryManager * | getServerInventoryMgr (lua_State *L) |
|
static EmergeThread * | getEmergeThread (lua_State *L) |
|
static IGameDef * | getGameDef (lua_State *L) |
|
static Environment * | getEnv (lua_State *L) |
|
static std::string | getCurrentModPath (lua_State *L) |
|
template<typename T > |
static T * | getScriptApi (lua_State *L) |
|
static bool | registerFunction (lua_State *L, const char *name, lua_CFunction func, int top) |
|
static void | registerClass (lua_State *L, const char *name, const luaL_Reg *methods, const luaL_Reg *metamethods) |
|
template<typename T > |
static T * | checkObject (lua_State *L, int narg) |
|
static int | l_deprecated_function (lua_State *L, const char *good, const char *bad, lua_CFunction func) |
| A wrapper for deprecated functions.
|
|
|
template<> |
bool | readParam (lua_State *L, int index) |
|
template<> |
s16 | readParam (lua_State *L, int index) |
|
template<> |
int | readParam (lua_State *L, int index) |
|
template<> |
float | readParam (lua_State *L, int index) |
|
template<> |
v2s16 | readParam (lua_State *L, int index) |
|
template<> |
v2f | readParam (lua_State *L, int index) |
|
template<> |
v3f | readParam (lua_State *L, int index) |
|
template<> |
std::string_view | readParam (lua_State *L, int index) |
|
template<> |
std::string | readParam (lua_State *L, int index) |
|
template<> |
std::string_view | readParam (lua_State *L, int index) |
| Read a string from Lua state L at index without copying it.
|
|
template<typename T > |
static T | readParam (lua_State *L, int index) |
| Read a value using a template type T from Lua state L at index.
|
|
template<typename T > |
static T | readParam (lua_State *L, int index, const T &default_value) |
| Read a value using a template type T from Lua state L at index.
|
|
◆ LuaSettings() [1/2]
LuaSettings::LuaSettings |
( |
Settings * | settings, |
|
|
const std::string & | filename ) |
◆ LuaSettings() [2/2]
LuaSettings::LuaSettings |
( |
const std::string & | filename, |
|
|
bool | write_allowed ) |
◆ ~LuaSettings()
LuaSettings::~LuaSettings |
( |
| ) |
|
◆ create()
void LuaSettings::create |
( |
lua_State * | L, |
|
|
Settings * | settings, |
|
|
const std::string & | filename ) |
|
static |
◆ create_object()
int LuaSettings::create_object |
( |
lua_State * | L | ) |
|
|
static |
◆ gc_object()
int LuaSettings::gc_object |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get()
int LuaSettings::l_get |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_bool()
int LuaSettings::l_get_bool |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_flags()
int LuaSettings::l_get_flags |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_names()
int LuaSettings::l_get_names |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_np_group()
int LuaSettings::l_get_np_group |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_has()
int LuaSettings::l_has |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_remove()
int LuaSettings::l_remove |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_set()
int LuaSettings::l_set |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_set_bool()
int LuaSettings::l_set_bool |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_set_np_group()
int LuaSettings::l_set_np_group |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_to_table()
int LuaSettings::l_to_table |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_write()
int LuaSettings::l_write |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ Register()
void LuaSettings::Register |
( |
lua_State * | L | ) |
|
|
static |
◆ className
const char LuaSettings::className = "Settings" |
|
static |
◆ m_filename
std::string LuaSettings::m_filename |
|
private |
◆ m_is_own_settings
bool LuaSettings::m_is_own_settings = false |
|
private |
◆ m_settings
Settings* LuaSettings::m_settings = nullptr |
|
private |
Referenced by LuaSettings(), ~LuaSettings(), l_get(), l_get_bool(), l_get_flags(), l_get_names(), l_get_np_group(), l_has(), l_remove(), l_set(), l_set_bool(), l_set_np_group(), l_to_table(), and l_write().
◆ m_write_allowed
bool LuaSettings::m_write_allowed = true |
|
private |
◆ methods
const luaL_Reg LuaSettings::methods |
|
staticprivate |
Initial value:= {
{0,0}
}
static void remove(TestMap &map, size_t offset, size_t count)
Definition benchmark_mapmodify.cpp:32
Definition l_settings.h:13
#define luamethod(class, name)
Definition l_internal.h:16
Referenced by Register().
The documentation for this class was generated from the following files: