コード例 #1
0
    static int get_mOnMove(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIEventListener obj = (UIEventListener)o;
            UIEventListener.AxisEventDelegate ret = obj.mOnMove;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index mOnMove on a nil value"));
        }
    }
コード例 #2
0
    static int set_mOnMove(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIEventListener obj = (UIEventListener)o;
            UIEventListener.AxisEventDelegate arg0 = (UIEventListener.AxisEventDelegate)ToLua.CheckDelegate <UIEventListener.AxisEventDelegate>(L, 2);
            obj.mOnMove = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index mOnMove on a nil value"));
        }
    }