mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
Re-order sound-related code (#12382)
Dropped ServerSoundParams -> moved to ServerPlayingSound. This gets rid of the duplicated 'fade' and 'pitch' values on server-side where only one was used anyway. SimpleSoundSpec is the basic sound without positional information, hence 'loop' is included. Recursively added PROTOCOL_VERSION to most functions to reduce the versioning mess in the future. Per-type version numbers are kept for now as a safety rope in a special case.
This commit is contained in:
@@ -53,7 +53,7 @@ struct ItemDefinition;
|
||||
struct ToolCapabilities;
|
||||
struct ObjectProperties;
|
||||
struct SimpleSoundSpec;
|
||||
struct ServerSoundParams;
|
||||
struct ServerPlayingSound;
|
||||
class Inventory;
|
||||
class InventoryList;
|
||||
struct NodeBox;
|
||||
@@ -91,7 +91,7 @@ void read_soundspec (lua_State *L, int index,
|
||||
NodeBox read_nodebox (lua_State *L, int index);
|
||||
|
||||
void read_server_sound_params (lua_State *L, int index,
|
||||
ServerSoundParams ¶ms);
|
||||
ServerPlayingSound ¶ms);
|
||||
|
||||
void push_dig_params (lua_State *L,
|
||||
const DigParams ¶ms);
|
||||
|
Reference in New Issue
Block a user