static public int DispatchEvent(IntPtr l)
{
try {
int argc = LuaDLL.lua_gettop(l);
if (matchType(l, argc, 2, typeof(FairyGUI.EventContext)))
{
FairyGUI.EventDispatcher self = (FairyGUI.EventDispatcher)checkSelf(l);
FairyGUI.EventContext a1;
checkType(l, 2, out a1);
var ret = self.DispatchEvent(a1);
pushValue(l, true);
pushValue(l, ret);
return(2);
}
else if (matchType(l, argc, 2, typeof(string)))
{
FairyGUI.EventDispatcher self = (FairyGUI.EventDispatcher)checkSelf(l);
System.String a1;
checkType(l, 2, out a1);
var ret = self.DispatchEvent(a1);
pushValue(l, true);
pushValue(l, ret);
return(2);
}
else if (argc == 3)
{
FairyGUI.EventDispatcher self = (FairyGUI.EventDispatcher)checkSelf(l);
System.String a1;
checkType(l, 2, out a1);
System.Object a2;
checkType(l, 3, out a2);
var ret = self.DispatchEvent(a1, a2);
pushValue(l, true);
pushValue(l, ret);
return(2);
}
else if (argc == 4)
{
FairyGUI.EventDispatcher self = (FairyGUI.EventDispatcher)checkSelf(l);
System.String a1;
checkType(l, 2, out a1);
System.Object a2;
checkType(l, 3, out a2);
System.Object a3;
checkType(l, 4, out a3);
var ret = self.DispatchEvent(a1, a2, a3);
pushValue(l, true);
pushValue(l, ret);
return(2);
}
pushValue(l, false);
LuaDLL.lua_pushstring(l, "No matched override function to call");
return(2);
}
catch (Exception e) {
return(error(l, e));
}
}