static int QPYX_SetEventListener_YXQP(IntPtr L_YXQP)
 {
     try
     {
         int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP);
         if (QPYX_count_YXQP == 4)
         {
             GVoiceManager                  QPYX_obj_YXQP  = (GVoiceManager)ToLua.CheckObject <GVoiceManager>(L_YXQP, 1);
             System.Action <string>         QPYX_arg0_YXQP = (System.Action <string>)ToLua.CheckDelegate <System.Action <string> >(L_YXQP, 2);
             System.Action <string, string> QPYX_arg1_YXQP = (System.Action <string, string>)ToLua.CheckDelegate <System.Action <string, string> >(L_YXQP, 3);
             System.Action <string>         QPYX_arg2_YXQP = (System.Action <string>)ToLua.CheckDelegate <System.Action <string> >(L_YXQP, 4);
             QPYX_obj_YXQP.SetEventListener(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP);
             return(0);
         }
         else if (QPYX_count_YXQP == 5)
         {
             GVoiceManager                  QPYX_obj_YXQP  = (GVoiceManager)ToLua.CheckObject <GVoiceManager>(L_YXQP, 1);
             System.Action <string>         QPYX_arg0_YXQP = (System.Action <string>)ToLua.CheckDelegate <System.Action <string> >(L_YXQP, 2);
             System.Action <string, string> QPYX_arg1_YXQP = (System.Action <string, string>)ToLua.CheckDelegate <System.Action <string, string> >(L_YXQP, 3);
             System.Action <string>         QPYX_arg2_YXQP = (System.Action <string>)ToLua.CheckDelegate <System.Action <string> >(L_YXQP, 4);
             System.Action <string>         QPYX_arg3_YXQP = (System.Action <string>)ToLua.CheckDelegate <System.Action <string> >(L_YXQP, 5);
             QPYX_obj_YXQP.SetEventListener(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP, QPYX_arg3_YXQP);
             return(0);
         }
         else
         {
             return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to method: GVoiceManager.SetEventListener"));
         }
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Ejemplo n.º 2
0
    static int SetEventListener(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 4)
            {
                GVoiceManager                  obj  = (GVoiceManager)ToLua.CheckObject <GVoiceManager>(L, 1);
                System.Action <string>         arg0 = (System.Action <string>)ToLua.CheckDelegate <System.Action <string> >(L, 2);
                System.Action <string, string> arg1 = (System.Action <string, string>)ToLua.CheckDelegate <System.Action <string, string> >(L, 3);
                System.Action <string>         arg2 = (System.Action <string>)ToLua.CheckDelegate <System.Action <string> >(L, 4);
                obj.SetEventListener(arg0, arg1, arg2);
                return(0);
            }
            else if (count == 5)
            {
                GVoiceManager                  obj  = (GVoiceManager)ToLua.CheckObject <GVoiceManager>(L, 1);
                System.Action <string>         arg0 = (System.Action <string>)ToLua.CheckDelegate <System.Action <string> >(L, 2);
                System.Action <string, string> arg1 = (System.Action <string, string>)ToLua.CheckDelegate <System.Action <string, string> >(L, 3);
                System.Action <string>         arg2 = (System.Action <string>)ToLua.CheckDelegate <System.Action <string> >(L, 4);
                System.Action <string>         arg3 = (System.Action <string>)ToLua.CheckDelegate <System.Action <string> >(L, 5);
                obj.SetEventListener(arg0, arg1, arg2, arg3);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: GVoiceManager.SetEventListener"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }