Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
player.h File Reference
#include "irrlichttypes_bloated.h"
#include "inventory.h"
#include "constants.h"
#include "util/basic_macros.h"
#include "util/string.h"
#include <mutex>
#include <functional>
#include <string>
+ Include dependency graph for player.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PlayerFovSpec
 
struct  PlayerControl
 
struct  PlayerPhysicsOverride
 
class  Player
 

Macros

#define PLAYERNAME_SIZE   20
 
#define PLAYERNAME_ALLOWED_CHARS   "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"
 
#define PLAYERNAME_ALLOWED_CHARS_USER_EXPL   "'a' to 'z', 'A' to 'Z', '0' to '9', '-', '_'"
 

Functions

bool is_valid_player_name (std::string_view name)
 

Macro Definition Documentation

◆ PLAYERNAME_ALLOWED_CHARS

#define PLAYERNAME_ALLOWED_CHARS   "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"

◆ PLAYERNAME_ALLOWED_CHARS_USER_EXPL

#define PLAYERNAME_ALLOWED_CHARS_USER_EXPL   "'a' to 'z', 'A' to 'Z', '0' to '9', '-', '_'"

Referenced by run_dedicated_server().

◆ PLAYERNAME_SIZE

#define PLAYERNAME_SIZE   20

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: