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

        try
        {
            o = ToLua.ToObject(L, 1);
            UIInputFieldSubmit          obj = (UIInputFieldSubmit)o;
            UIInputFieldSubmit.LineType ret = obj.lineType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lineType on a nil value" : e.Message));
        }
    }
Пример #2
0
    static int set_lineType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIInputFieldSubmit          obj  = (UIInputFieldSubmit)o;
            UIInputFieldSubmit.LineType arg0 = (UIInputFieldSubmit.LineType)ToLua.CheckObject(L, 2, typeof(UIInputFieldSubmit.LineType));
            obj.lineType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lineType on a nil value" : e.Message));
        }
    }