static int GetAudioClip(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { UnityEngine.WWW obj = (UnityEngine.WWW)ToLua.CheckObject(L, 1, typeof(UnityEngine.WWW)); UnityEngine.AudioClip o = obj.GetAudioClip(); ToLua.PushSealed(L, o); return(1); } else if (count == 2) { UnityEngine.WWW obj = (UnityEngine.WWW)ToLua.CheckObject(L, 1, typeof(UnityEngine.WWW)); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); UnityEngine.AudioClip o = obj.GetAudioClip(arg0); ToLua.PushSealed(L, o); return(1); } else if (count == 3) { UnityEngine.WWW obj = (UnityEngine.WWW)ToLua.CheckObject(L, 1, typeof(UnityEngine.WWW)); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); UnityEngine.AudioClip o = obj.GetAudioClip(arg0, arg1); ToLua.PushSealed(L, o); return(1); } else if (count == 4) { UnityEngine.WWW obj = (UnityEngine.WWW)ToLua.CheckObject(L, 1, typeof(UnityEngine.WWW)); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); UnityEngine.AudioType arg2 = (UnityEngine.AudioType)ToLua.CheckObject(L, 4, typeof(UnityEngine.AudioType)); UnityEngine.AudioClip o = obj.GetAudioClip(arg0, arg1, arg2); ToLua.PushSealed(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.WWW.GetAudioClip")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static bool WWW_GetAudioClip__Boolean__Boolean__AudioType(JSVCall vc, int argc) { int len = argc; if (len == 3) { System.Boolean arg0 = (System.Boolean)JSApi.getBooleanS((int)JSApi.GetType.Arg); System.Boolean arg1 = (System.Boolean)JSApi.getBooleanS((int)JSApi.GetType.Arg); UnityEngine.AudioType arg2 = (UnityEngine.AudioType)JSApi.getEnum((int)JSApi.GetType.Arg); JSMgr.datax.setObject((int)JSApi.SetType.Rval, ((UnityEngine.WWW)vc.csObj).GetAudioClip(arg0, arg1, arg2)); } return(true); }
static int GetAudioClip(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.WWW), typeof(bool))) { UnityEngine.WWW obj = (UnityEngine.WWW)ToLua.ToObject(L, 1); bool arg0 = LuaDLL.lua_toboolean(L, 2); UnityEngine.AudioClip o = obj.GetAudioClip(arg0); ToLua.Push(L, o); return(1); } else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.WWW), typeof(bool), typeof(bool))) { UnityEngine.WWW obj = (UnityEngine.WWW)ToLua.ToObject(L, 1); bool arg0 = LuaDLL.lua_toboolean(L, 2); bool arg1 = LuaDLL.lua_toboolean(L, 3); UnityEngine.AudioClip o = obj.GetAudioClip(arg0, arg1); ToLua.Push(L, o); return(1); } else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.WWW), typeof(bool), typeof(bool), typeof(UnityEngine.AudioType))) { UnityEngine.WWW obj = (UnityEngine.WWW)ToLua.ToObject(L, 1); bool arg0 = LuaDLL.lua_toboolean(L, 2); bool arg1 = LuaDLL.lua_toboolean(L, 3); UnityEngine.AudioType arg2 = (UnityEngine.AudioType)ToLua.ToObject(L, 4); UnityEngine.AudioClip o = obj.GetAudioClip(arg0, arg1, arg2); ToLua.Push(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.WWW.GetAudioClip")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public AudioClipWorldReader(UnityEngine.AudioType audioType) { this.audioType = audioType; }