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

        try
        {
            o = ToLua.ToObject(L, 1);
            UIEventListener obj = (UIEventListener)o;
            UIEventListener.BaseEventDelegate ret = obj.mOnCancel;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index mOnCancel on a nil value"));
        }
    }
Ejemplo n.º 2
0
    static int set_mOnCancel(IntPtr L)
    {
        object o = null;

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