Ejemplo n.º 1
0
    static int set_onDragEnd(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            VisowFrameWork.EventListener obj = (VisowFrameWork.EventListener)o;
            VisowFrameWork.EventListener.VoidDelegate arg0 = null;
            LuaTypes funcType2 = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (VisowFrameWork.EventListener.VoidDelegate)ToLua.CheckObject(L, 2, typeof(VisowFrameWork.EventListener.VoidDelegate));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg0 = DelegateFactory.CreateDelegate(typeof(VisowFrameWork.EventListener.VoidDelegate), func) as VisowFrameWork.EventListener.VoidDelegate;
            }

            obj.onDragEnd = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onDragEnd on a nil value"));
        }
    }
Ejemplo n.º 2
0
 static int OnPointerEnter(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         VisowFrameWork.EventListener obj = (VisowFrameWork.EventListener)ToLua.CheckObject <VisowFrameWork.EventListener>(L, 1);
         UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject <UnityEngine.EventSystems.PointerEventData>(L, 2);
         obj.OnPointerEnter(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 3
0
 static int Get(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.GameObject       arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 1, typeof(UnityEngine.GameObject));
         VisowFrameWork.EventListener o    = VisowFrameWork.EventListener.Get(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 4
0
    static int get_onDragEnd(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            VisowFrameWork.EventListener obj = (VisowFrameWork.EventListener)o;
            VisowFrameWork.EventListener.VoidDelegate ret = obj.onDragEnd;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onDragEnd on a nil value"));
        }
    }