Minetest  5.4.0
ServerSoundParams Struct Reference

#include <server.h>

+ Collaboration diagram for ServerSoundParams:

Public Types

enum  Type { SSP_LOCAL , SSP_POSITIONAL , SSP_OBJECT }
 

Public Member Functions

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

Public Attributes

enum ServerSoundParams::Type type = SSP_LOCAL
 
float gain = 1.0f
 
float fade = 0.0f
 
float pitch = 1.0f
 
bool loop = false
 
float max_hear_distance = 32 * BS
 
v3f pos
 
u16 object = 0
 
std::string to_player = ""
 
std::string exclude_player = ""
 

Member Enumeration Documentation

◆ Type

Enumerator
SSP_LOCAL 
SSP_POSITIONAL 
SSP_OBJECT 

Member Function Documentation

◆ getPos()

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

References ServerEnvironment::getActiveObject(), ServerActiveObject::getBasePosition(), pos, SSP_LOCAL, SSP_OBJECT, SSP_POSITIONAL, and type.

+ Here is the call graph for this function:

Member Data Documentation

◆ exclude_player

std::string ServerSoundParams::exclude_player = ""

◆ fade

float ServerSoundParams::fade = 0.0f

◆ gain

float ServerSoundParams::gain = 1.0f

Referenced by Server::fadeSound().

◆ loop

bool ServerSoundParams::loop = false

◆ max_hear_distance

float ServerSoundParams::max_hear_distance = 32 * BS

◆ object

u16 ServerSoundParams::object = 0

◆ pitch

float ServerSoundParams::pitch = 1.0f

◆ pos

v3f ServerSoundParams::pos

Referenced by getPos().

◆ to_player

std::string ServerSoundParams::to_player = ""

◆ type

enum ServerSoundParams::Type ServerSoundParams::type = SSP_LOCAL

Referenced by getPos().


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