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