Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
l_object.cpp File Reference
#include "lua_api/l_object.h"
#include <cmath>
#include <lua.h>
#include "lua_api/l_internal.h"
#include "lua_api/l_inventory.h"
#include "lua_api/l_item.h"
#include "lua_api/l_playermeta.h"
#include "common/c_converter.h"
#include "common/c_content.h"
#include "log.h"
#include "player.h"
#include "server/serveractiveobject.h"
#include "tool.h"
#include "remoteplayer.h"
#include "server.h"
#include "hud.h"
#include "scripting_server.h"
#include "server/luaentity_sao.h"
#include "server/player_sao.h"
#include "server/serverinventorymgr.h"
#include "server/unit_sao.h"
#include "util/string.h"
+ Include dependency graph for l_object.cpp:

Typedefs

using object_t = ServerActiveObject::object_t
 

Functions

static void push_bone_override (lua_State *L, const BoneOverride &props)
 
template<typename F >
static int get_observers (lua_State *L, F observer_getter)
 
static void push_sky_color (lua_State *L, const SkyboxParams &params)
 

Typedef Documentation

◆ object_t

Function Documentation

◆ get_observers()

template<typename F >
static int get_observers ( lua_State * L,
F observer_getter )
static

References ModApiBase::checkObject(), and ObjectRef::getobject().

Referenced by ObjectRef::l_get_effective_observers(), and ObjectRef::l_get_observers().

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

◆ push_bone_override()

static void push_bone_override ( lua_State * L,
const BoneOverride & props )
static

References BoneOverride::RotationProperty::next_radians, BoneOverride::position, push_v3f(), BoneOverride::rotation, BoneOverride::scale, BoneOverride::PositionProperty::vector, and BoneOverride::ScaleProperty::vector.

Referenced by ObjectRef::l_get_bone_override(), and ObjectRef::l_get_bone_overrides().

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

◆ push_sky_color()

static void push_sky_color ( lua_State * L,
const SkyboxParams & params )
static

References SkyColor::dawn_horizon, SkyColor::dawn_sky, SkyColor::day_horizon, SkyColor::day_sky, SkyboxParams::fog_moon_tint, SkyboxParams::fog_sun_tint, SkyboxParams::fog_tint_type, SkyColor::indoors, SkyColor::night_horizon, SkyColor::night_sky, push_ARGB8(), SkyboxParams::sky_color, and SkyboxParams::type.

Referenced by ObjectRef::l_get_sky(), and ObjectRef::l_get_sky_color().

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