mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
lua: audio.play_sound(name, x, y, z, volume, pitch, channel)
This commit is contained in:
parent
dd6c192511
commit
fbe3f53585
3 changed files with 50 additions and 0 deletions
|
|
@ -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>);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue