static int GetProjectConfig(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); XYHY.ProjectConfigInfo o = ProjectConfigUtility.GetProjectConfig(); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_GameServerPort(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); XYHY.ProjectConfigInfo obj = (XYHY.ProjectConfigInfo)o; int ret = obj.GameServerPort; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index GameServerPort on a nil value" : e.Message)); } }
static int get_VersionCheckUrl(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); XYHY.ProjectConfigInfo obj = (XYHY.ProjectConfigInfo)o; string ret = obj.VersionCheckUrl; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index VersionCheckUrl on a nil value" : e.Message)); } }
static int set_HasDebugLogOutput(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); XYHY.ProjectConfigInfo obj = (XYHY.ProjectConfigInfo)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.HasDebugLogOutput = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index HasDebugLogOutput on a nil value" : e.Message)); } }
static int set_GameServerPort(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); XYHY.ProjectConfigInfo obj = (XYHY.ProjectConfigInfo)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.GameServerPort = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index GameServerPort on a nil value" : e.Message)); } }
static int set_GameServerIp(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); XYHY.ProjectConfigInfo obj = (XYHY.ProjectConfigInfo)o; string arg0 = ToLua.CheckString(L, 2); obj.GameServerIp = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index GameServerIp on a nil value" : e.Message)); } }
static int get_HasDebugLogOutput(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); XYHY.ProjectConfigInfo obj = (XYHY.ProjectConfigInfo)o; bool ret = obj.HasDebugLogOutput; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index HasDebugLogOutput on a nil value" : e.Message)); } }
static int _CreateXYHY_ProjectConfigInfo(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { XYHY.ProjectConfigInfo obj = new XYHY.ProjectConfigInfo(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: XYHY.ProjectConfigInfo.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }