Minetest  5.4.0
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_border_flags (lua_State *L, u8 start_i, bool *borders, bool *data)
 
static void push_area (lua_State *L, const Area *a, bool include_borders, bool include_data)
 
static void push_areas (lua_State *L, const std::vector< Area * > &areas, bool borders, 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_border_flags()

static void get_data_and_border_flags ( lua_State *  L,
u8  start_i,
bool *  borders,
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_borders,
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  borders,
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: