RemoveEventListeners() public method

public RemoveEventListeners ( ) : void
return void
Exemplo n.º 1
0
    static int RemoveEventListeners(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                FairyGUI.EventDispatcher obj = (FairyGUI.EventDispatcher)ToLua.CheckObject <FairyGUI.EventDispatcher>(L, 1);
                obj.RemoveEventListeners();
                return(0);
            }
            else if (count == 2)
            {
                FairyGUI.EventDispatcher obj = (FairyGUI.EventDispatcher)ToLua.CheckObject <FairyGUI.EventDispatcher>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                obj.RemoveEventListeners(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.EventDispatcher.RemoveEventListeners"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static public int RemoveEventListeners(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 1)
         {
             FairyGUI.EventDispatcher self = (FairyGUI.EventDispatcher)checkSelf(l);
             self.RemoveEventListeners();
             pushValue(l, true);
             return(1);
         }
         else if (argc == 2)
         {
             FairyGUI.EventDispatcher self = (FairyGUI.EventDispatcher)checkSelf(l);
             System.String            a1;
             checkType(l, 2, out a1);
             self.RemoveEventListeners(a1);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }