static int set_m_type(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.UIScrollWrap obj = (UI.UIScrollWrap)o; UI.UIScrollWrap.enType arg0 = (UI.UIScrollWrap.enType)ToLua.CheckObject(L, 2, typeof(UI.UIScrollWrap.enType)); obj.m_type = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_type on a nil value" : e.Message)); } }
static int get_m_type(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.UIScrollWrap obj = (UI.UIScrollWrap)o; UI.UIScrollWrap.enType ret = obj.m_type; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_type on a nil value" : e.Message)); } }