static int IsPlaying(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3) { LuaFramework.SoundManager obj = (LuaFramework.SoundManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.SoundManager)); string arg0 = ToLua.CheckString(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); bool o = obj.IsPlaying(arg0, arg1); LuaDLL.lua_pushboolean(L, o); return(1); } else if (count == 4) { LuaFramework.SoundManager obj = (LuaFramework.SoundManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.SoundManager)); string arg0 = ToLua.CheckString(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); string arg2 = ToLua.CheckString(L, 4); bool o = obj.IsPlaying(arg0, arg1, arg2); LuaDLL.lua_pushboolean(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.SoundManager.IsPlaying")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }