Minetest 5.9.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(), pos, and type.

+ Here is the call graph for this function:

Member Data Documentation

◆ clients

std::unordered_set<session_t> ServerPlayingSound::clients

◆ exclude_player

std::string ServerPlayingSound::exclude_player

◆ gain

float ServerPlayingSound::gain = 1.0f

Referenced by Server::fadeSound().

◆ max_hear_distance

float ServerPlayingSound::max_hear_distance = 32 * BS

◆ object

u16 ServerPlayingSound::object = 0

◆ pos

v3f ServerPlayingSound::pos

Referenced by getPos().

◆ spec

SoundSpec ServerPlayingSound::spec

◆ to_player

std::string ServerPlayingSound::to_player

◆ type

SoundLocation ServerPlayingSound::type = SoundLocation::Local

Referenced by getPos().


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