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