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

#include <server.h>

+ Collaboration diagram for ServerPlayingSound:

Public Member Functions

v3f getPos (ServerEnvironment *env, bool *pos_exists) const
 

Public Attributes

SoundLocation type = SoundLocation::Local
 
float gain = 1.0f
 
float max_hear_distance = 32 * BS
 
v3f pos
 
u16 object = 0
 
std::string to_player
 
std::string exclude_player
 
SoundSpec spec
 
std::unordered_set< session_tclients
 

Member Function Documentation

◆ getPos()

v3f ServerPlayingSound::getPos ( ServerEnvironment * env,
bool * pos_exists ) const

References ServerEnvironment::getActiveObject(), ServerActiveObject::getBasePosition(), Local, Object, pos, Position, and type.

Referenced by Server::playSound().

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

Member Data Documentation

◆ clients

◆ exclude_player

std::string ServerPlayingSound::exclude_player

◆ gain

float ServerPlayingSound::gain = 1.0f

◆ max_hear_distance

float ServerPlayingSound::max_hear_distance = 32 * BS

◆ object

u16 ServerPlayingSound::object = 0

◆ pos

v3f ServerPlayingSound::pos

Referenced by getPos(), and read_server_sound_params().

◆ spec

◆ to_player

std::string ServerPlayingSound::to_player

◆ type


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