//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class UIEventHandlerWrap { public static void Register(LuaState L) { L.BeginClass(typeof(UIEventHandler), typeof(UnityEngine.MonoBehaviour), "UIEventHandler"); L.RegFunction("OnPointerClick", OnPointerClick); L.RegFunction("RemoveListener", RemoveListener); L.RegFunction("__eq", op_Equality); L.RegFunction("__tostring", ToLua.op_ToString); L.RegVar("onClick", get_onClick, set_onClick); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int OnPointerClick(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UIEventHandler obj = (UIEventHandler)ToLua.CheckObject(L, 1); UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2); obj.OnPointerClick(arg0); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int RemoveListener(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UIEventHandler obj = (UIEventHandler)ToLua.CheckObject(L, 1); obj.RemoveListener(); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int op_Equality(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1); UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2); bool o = arg0 == arg1; LuaDLL.lua_pushboolean(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_onClick(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIEventHandler obj = (UIEventHandler)o; UIEventHandler.TriggerEvent ret = obj.onClick; ToLua.PushObject(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index onClick on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_onClick(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIEventHandler obj = (UIEventHandler)o; UIEventHandler.TriggerEvent arg0 = (UIEventHandler.TriggerEvent)ToLua.CheckObject(L, 2); obj.onClick = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index onClick on a nil value"); } } }