static public int RegisterUIEvent(IntPtr l) { try { EventManager.UIEventCachePool self = (EventManager.UIEventCachePool)checkSelf(l); System.Int16 a1; checkType(l, 2, out a1); EventManager.DelegateType.UIEventCallback a2; LuaDelegation.checkDelegate(l, 3, out a2); self.RegisterUIEvent(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }