BroadcastEvent() public method

public BroadcastEvent ( string strType, object data ) : bool
strType string
data object
return bool
示例#1
0
 static int BroadcastEvent(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.EventDispatcher obj = (FairyGUI.EventDispatcher)ToLua.CheckObject <FairyGUI.EventDispatcher>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         object arg1 = ToLua.ToVarObject(L, 3);
         bool   o    = obj.BroadcastEvent(arg0, arg1);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static public int BroadcastEvent(IntPtr l)
 {
     try {
         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.BroadcastEvent(a1, a2);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }