static int PlayClipNo3D(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 4 && TypeChecker.CheckTypes <UnityEngine.AudioClip, UnityEngine.Vector3, float>(L, 2)) { Nova.SoundController obj = (Nova.SoundController)ToLua.CheckObject <Nova.SoundController>(L, 1); UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.ToObject(L, 2); UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 3); float arg2 = (float)LuaDLL.lua_tonumber(L, 4); obj.PlayClipNo3D(arg0, arg1, arg2); return(0); } else if (count == 4 && TypeChecker.CheckTypes <string, UnityEngine.Vector3, float>(L, 2)) { Nova.SoundController obj = (Nova.SoundController)ToLua.CheckObject <Nova.SoundController>(L, 1); string arg0 = ToLua.ToString(L, 2); UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 3); float arg2 = (float)LuaDLL.lua_tonumber(L, 4); obj.PlayClipNo3D(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: Nova.SoundController.PlayClipNo3D")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_suppressSound(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.SoundController obj = (Nova.SoundController)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.suppressSound = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index suppressSound on a nil value")); } }
static int set_configVolume(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.SoundController obj = (Nova.SoundController)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.configVolume = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index configVolume on a nil value")); } }
static int set_audioFolder(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.SoundController obj = (Nova.SoundController)o; string arg0 = ToLua.CheckString(L, 2); obj.audioFolder = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index audioFolder on a nil value")); } }
static int get_suppressSound(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.SoundController obj = (Nova.SoundController)o; bool ret = obj.suppressSound; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index suppressSound on a nil value")); } }
static int get_configVolume(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.SoundController obj = (Nova.SoundController)o; float ret = obj.configVolume; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index configVolume on a nil value")); } }
static int get_audioFolder(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.SoundController obj = (Nova.SoundController)o; string ret = obj.audioFolder; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index audioFolder on a nil value")); } }