Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
l_areastore.cpp File Reference
#include "lua_api/l_areastore.h"
#include "lua_api/l_internal.h"
#include "common/c_converter.h"
#include "cpp_api/s_security.h"
#include "irr_v3d.h"
#include "util/areastore.h"
#include "filesys.h"
#include <fstream>
+ Include dependency graph for l_areastore.cpp:

Functions

static void get_data_and_corner_flags (lua_State *L, u8 start_i, bool *corners, bool *data)
 
static void push_area (lua_State *L, const Area *a, bool include_corners, bool include_data)
 
static void push_areas (lua_State *L, const std::vector< Area * > &areas, bool corners, bool data)
 
static int deserialization_helper (lua_State *L, AreaStore *as, std::istream &is)
 

Function Documentation

◆ deserialization_helper()

static int deserialization_helper ( lua_State * L,
AreaStore * as,
std::istream & is )
static

References AreaStore::deserialize(), and BaseException::what().

Referenced by LuaAreaStore::l_from_file(), and LuaAreaStore::l_from_string().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_data_and_corner_flags()

static void get_data_and_corner_flags ( lua_State * L,
u8 start_i,
bool * corners,
bool * data )
inlinestatic

Referenced by LuaAreaStore::l_get_area(), LuaAreaStore::l_get_areas_for_pos(), and LuaAreaStore::l_get_areas_in_area().

+ Here is the caller graph for this function:

◆ push_area()

static void push_area ( lua_State * L,
const Area * a,
bool include_corners,
bool include_data )
static

References Area::data, Area::maxedge, Area::minedge, and push_v3s16().

Referenced by LuaAreaStore::l_get_area(), and push_areas().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ push_areas()

static void push_areas ( lua_State * L,
const std::vector< Area * > & areas,
bool corners,
bool data )
inlinestatic

References push_area().

Referenced by LuaAreaStore::l_get_areas_for_pos(), and LuaAreaStore::l_get_areas_in_area().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: