Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
PlayerSettings Struct Reference

#include <localplayer.h>

Public Member Functions

void readGlobalSettings ()
 
void registerSettingsCallback ()
 
void deregisterSettingsCallback ()
 

Public Attributes

bool free_move = false
 
bool pitch_move = false
 
bool fast_move = false
 
bool continuous_forward = false
 
bool always_fly_fast = false
 
bool aux1_descends = false
 
bool noclip = false
 
bool autojump = false
 

Static Private Member Functions

static void settingsChangedCallback (const std::string &name, void *data)
 

Member Function Documentation

◆ deregisterSettingsCallback()

void PlayerSettings::deregisterSettingsCallback ( )

References Settings::deregisterAllChangedCallbacks(), and g_settings.

Referenced by LocalPlayer::~LocalPlayer().

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

◆ readGlobalSettings()

void PlayerSettings::readGlobalSettings ( )

References always_fly_fast, autojump, aux1_descends, continuous_forward, fast_move, free_move, g_settings, Settings::getBool(), noclip, and pitch_move.

Referenced by LocalPlayer::LocalPlayer().

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

◆ registerSettingsCallback()

void PlayerSettings::registerSettingsCallback ( )

References g_settings, PlayerSettings_names, Settings::registerChangedCallback(), and settingsChangedCallback().

Referenced by LocalPlayer::LocalPlayer().

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

◆ settingsChangedCallback()

void PlayerSettings::settingsChangedCallback ( const std::string & name,
void * data )
staticprivate

Referenced by registerSettingsCallback().

+ Here is the caller graph for this function:

Member Data Documentation

◆ always_fly_fast

bool PlayerSettings::always_fly_fast = false

◆ autojump

bool PlayerSettings::autojump = false

◆ aux1_descends

bool PlayerSettings::aux1_descends = false

◆ continuous_forward

bool PlayerSettings::continuous_forward = false

◆ fast_move

bool PlayerSettings::fast_move = false

◆ free_move

bool PlayerSettings::free_move = false

◆ noclip

bool PlayerSettings::noclip = false

◆ pitch_move

bool PlayerSettings::pitch_move = false

The documentation for this struct was generated from the following files: