#include <l_noise.h>
Public Member Functions | |
LuaPerlinNoiseMap (NoiseParams *np, s32 seed, v3s16 size) | |
~LuaPerlinNoiseMap () | |
Static Public Member Functions | |
static int | create_object (lua_State *L) |
static LuaPerlinNoiseMap * | checkobject (lua_State *L, int narg) |
static void | Register (lua_State *L) |
Static Public Member Functions inherited from ModApiBase | |
static ScriptApiBase * | getScriptApiBase (lua_State *L) |
static Server * | getServer (lua_State *L) |
static ServerInventoryManager * | getServerInventoryMgr (lua_State *L) |
static Client * | getClient (lua_State *L) |
static GUIEngine * | getGuiEngine (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 int | l_deprecated_function (lua_State *L, const char *good, const char *bad, lua_CFunction func) |
A wrapper for deprecated functions. More... | |
Static Private Member Functions | |
static int | gc_object (lua_State *L) |
static int | l_get_2d_map (lua_State *L) |
static int | l_get_2d_map_flat (lua_State *L) |
static int | l_get_3d_map (lua_State *L) |
static int | l_get_3d_map_flat (lua_State *L) |
static int | l_calc_2d_map (lua_State *L) |
static int | l_calc_3d_map (lua_State *L) |
static int | l_get_map_slice (lua_State *L) |
Private Attributes | |
NoiseParams | np |
Noise * | noise |
bool | m_is3d |
Static Private Attributes | |
static const char | className [] = "PerlinNoiseMap" |
static luaL_Reg | methods [] |
Additional Inherited Members | |
Protected Member Functions inherited from LuaHelper | |
template<> | |
bool | readParam (lua_State *L, int index) |
Static Protected Member Functions inherited from LuaHelper | |
static bool | isNaN (lua_State *L, int idx) |
template<typename T > | |
static T | readParam (lua_State *L, int index) |
Read a value using a template type T from Lua State L and index. More... | |
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 and index. More... | |
LuaPerlinNoiseMap::LuaPerlinNoiseMap | ( | NoiseParams * | np, |
s32 | seed, | ||
v3s16 | size | ||
) |
References m_is3d, noise, np, params, seed, and BaseException::what().
Referenced by create_object().
LuaPerlinNoiseMap::~LuaPerlinNoiseMap | ( | ) |
References noise.
|
static |
References className.
Referenced by l_calc_2d_map(), l_calc_3d_map(), l_get_2d_map(), l_get_2d_map_flat(), l_get_3d_map(), l_get_3d_map_flat(), and l_get_map_slice().
|
static |
References LuaPerlinNoiseMap(), className, np, read_noiseparams(), and read_v3s16().
Referenced by Register().
|
staticprivate |
|
staticprivate |
References checkobject(), NO_MAP_LOCK_REQUIRED, noise, p(), and Noise::perlinMap2D().
|
staticprivate |
References check_v3f(), checkobject(), m_is3d, NO_MAP_LOCK_REQUIRED, noise, p(), and Noise::perlinMap3D().
|
staticprivate |
References checkobject(), NO_MAP_LOCK_REQUIRED, noise, p(), Noise::perlinMap2D(), Noise::result, Noise::sx, and Noise::sy.
|
staticprivate |
References checkobject(), NO_MAP_LOCK_REQUIRED, noise, p(), Noise::perlinMap2D(), Noise::result, Noise::sx, and Noise::sy.
|
staticprivate |
References check_v3f(), checkobject(), m_is3d, NO_MAP_LOCK_REQUIRED, noise, p(), Noise::perlinMap3D(), Noise::result, Noise::sx, Noise::sy, and Noise::sz.
|
staticprivate |
References check_v3f(), checkobject(), m_is3d, NO_MAP_LOCK_REQUIRED, noise, p(), Noise::perlinMap3D(), Noise::result, Noise::sx, Noise::sy, and Noise::sz.
|
staticprivate |
References checkobject(), NO_MAP_LOCK_REQUIRED, noise, read_v3s16(), Noise::result, Noise::sx, Noise::sy, Noise::sz, and write_array_slice_float().
|
static |
References className, create_object(), gc_object(), and methods.
Referenced by ServerScripting::InitializeModApi().
|
staticprivate |
Referenced by checkobject(), create_object(), and Register().
|
private |
Referenced by LuaPerlinNoiseMap(), l_calc_3d_map(), l_get_3d_map(), and l_get_3d_map_flat().
|
staticprivate |
Referenced by Register().
|
private |
|
private |
Referenced by LuaPerlinNoiseMap(), and create_object().