static public int AddEventListener(IntPtr l)
{
try {
int argc = LuaDLL.lua_gettop(l);
if (matchType(l, argc, 2, typeof(string), typeof(FairyGUI.EventCallback1)))
{
FairyGUI.EventDispatcher self = (FairyGUI.EventDispatcher)checkSelf(l);
System.String a1;
checkType(l, 2, out a1);
FairyGUI.EventCallback1 a2;
LuaDelegation.checkDelegate(l, 3, out a2);
self.AddEventListener(a1, a2);
pushValue(l, true);
return(1);
}
else if (matchType(l, argc, 2, typeof(string), typeof(FairyGUI.EventCallback0)))
{
FairyGUI.EventDispatcher self = (FairyGUI.EventDispatcher)checkSelf(l);
System.String a1;
checkType(l, 2, out a1);
FairyGUI.EventCallback0 a2;
LuaDelegation.checkDelegate(l, 3, out a2);
self.AddEventListener(a1, a2);
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));
}
}