mirror of
https://codeberg.org/tenplus1/ambience.git
synced 2026-01-12 03:35:25 +01:00
add ambience.add_to_set function
This commit is contained in:
9
init.lua
9
init.lua
@@ -59,6 +59,15 @@ function ambience.add_set(set_name, def)
|
||||
end
|
||||
end
|
||||
|
||||
-- add sound to existing set
|
||||
|
||||
function ambience.add_to_set(set_name, def)
|
||||
|
||||
if not set_name or not def or not sound_sets[set_name] then return end
|
||||
|
||||
table.insert(sound_sets[set_name].sounds, def)
|
||||
end
|
||||
|
||||
-- return set from list using name
|
||||
|
||||
function ambience.get_set(set_name)
|
||||
|
||||
Reference in New Issue
Block a user