static int ClearCD(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); WCG.CDMask obj = (WCG.CDMask)ToLua.CheckObject <WCG.CDMask>(L, 1); obj.ClearCD(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ChangeEspTime(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); WCG.CDMask obj = (WCG.CDMask)ToLua.CheckObject <WCG.CDMask>(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.ChangeEspTime(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetEspTime(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); WCG.CDMask obj = (WCG.CDMask)ToLua.CheckObject <WCG.CDMask>(L, 1); float o = obj.GetEspTime(); LuaDLL.lua_pushnumber(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetReverse(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); WCG.CDMask obj = (WCG.CDMask)ToLua.CheckObject <WCG.CDMask>(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.SetReverse(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetClearCDFun(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); WCG.CDMask obj = (WCG.CDMask)ToLua.CheckObject <WCG.CDMask>(L, 1); LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2); obj.SetClearCDFun(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_m_EspTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); WCG.CDMask obj = (WCG.CDMask)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.m_EspTime = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_EspTime on a nil value")); } }
static int get_m_EspTime(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); WCG.CDMask obj = (WCG.CDMask)o; float ret = obj.m_EspTime; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_EspTime on a nil value")); } }