static int RemoveAllListeners(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaBaseListener obj = (LuaBaseListener)ToLua.CheckObject <LuaBaseListener>(L, 1);
         obj.RemoveAllListeners();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int AddListener(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         LuaBaseListener obj  = (LuaBaseListener)ToLua.CheckObject <LuaBaseListener>(L, 1);
         LuaFunction     arg0 = ToLua.CheckLuaFunction(L, 2);
         LuaTable        arg1 = ToLua.CheckLuaTable(L, 3);
         obj.AddListener(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }