static int get_Seconds(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); EventSystem.UIEvent_UpdateOnLineSeconds obj = (EventSystem.UIEvent_UpdateOnLineSeconds)o; int ret = obj.Seconds; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Seconds on a nil value" : e.Message)); } }
static int _CreateEventSystem_UIEvent_UpdateOnLineSeconds(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); EventSystem.UIEvent_UpdateOnLineSeconds obj = new EventSystem.UIEvent_UpdateOnLineSeconds(arg0); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: EventSystem.UIEvent_UpdateOnLineSeconds.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }