Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
player.cpp File Reference
#include "player.h"
#include <cmath>
#include "hud_element.h"
#include "constants.h"
#include "gamedef.h"
#include <tuple>
+ Include dependency graph for player.cpp:

Functions

bool is_valid_player_name (std::string_view name)
 
static auto tie (const PlayerPhysicsOverride &o)
 

Variables

const struct EnumString es_CameraMode []
 

Function Documentation

◆ is_valid_player_name()

bool is_valid_player_name ( std::string_view name)

References PLAYERNAME_ALLOWED_CHARS, PLAYERNAME_SIZE, and string_allowed().

Referenced by ModApiUtil::Initialize(), ModApiUtil::l_is_valid_player_name(), ObjectRef::l_set_observers(), and run_dedicated_server().

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

◆ tie()

Variable Documentation

◆ es_CameraMode

const struct EnumString es_CameraMode[]
Initial value:
= {
{CAMERA_MODE_ANY, "any"},
{CAMERA_MODE_FIRST, "first"},
{CAMERA_MODE_THIRD, "third"},
{CAMERA_MODE_THIRD_FRONT, "third_front"},
{0, nullptr}
}
@ CAMERA_MODE_THIRD
Definition player.h:131
@ CAMERA_MODE_THIRD_FRONT
Definition player.h:132
@ CAMERA_MODE_FIRST
Definition player.h:130
@ CAMERA_MODE_ANY
Definition player.h:129

Referenced by ObjectRef::l_get_camera(), and ObjectRef::l_set_camera().