static int get_delay(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DelayEnable obj = (DelayEnable)o; float ret = obj.delay; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index delay on a nil value")); } }
static int set_delay(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DelayEnable obj = (DelayEnable)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.delay = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index delay on a nil value")); } }
private static int set_delay(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); DelayEnable delayEnable = (DelayEnable)obj; float delay = (float)LuaDLL.luaL_checknumber(L, 2); delayEnable.delay = delay; result = 0; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index delay on a nil value"); } return(result); }