lua: audio.play_sound(name, x, y, z, volume, pitch, channel)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "libgui.h"
|
||||
#include "libplayer.h"
|
||||
#include "libinventory.h"
|
||||
#include "libaudio.h"
|
||||
#include "../../../util/stringutil.h"
|
||||
|
||||
lua::luaerror::luaerror(const std::string& message) : std::runtime_error(message) {
|
||||
@@ -124,6 +125,7 @@ void lua::LuaState::createLibs() {
|
||||
openlib("time", timelib, 0);
|
||||
openlib("file", filelib, 0);
|
||||
openlib("gui", guilib, 0);
|
||||
openlib("audio", audiolib, 0);
|
||||
|
||||
addfunc("print", lua_wrap_errors<l_print>);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user