Пример #1
0
    static int set_mOnClick(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIEventListener obj = (UIEventListener)o;
            UIEventListener.VoidEventDelegate arg0 = (UIEventListener.VoidEventDelegate)ToLua.CheckDelegate <UIEventListener.VoidEventDelegate>(L, 2);
            obj.mOnClick = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index mOnClick on a nil value"));
        }
    }
Пример #2
0
    static int get_mOnClick(IntPtr L)
    {
        object o = null;

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