static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); BETweenLoop o = (BETweenLoop)arg0; ToLua.Push(L, o); return(1); }
static int set_loopStyle(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BETween obj = (BETween)o; BETweenLoop arg0 = (BETweenLoop)ToLua.CheckObject(L, 2, typeof(BETweenLoop)); obj.loopStyle = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index loopStyle on a nil value" : e.Message)); } }
static int get_loopStyle(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); BETween obj = (BETween)o; BETweenLoop ret = obj.loopStyle; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index loopStyle on a nil value" : e.Message)); } }
public void SetLoopStylee(int nLoopStyle) { loopStyle = (BETweenLoop)nLoopStyle; }