public void method_2() { this.Settings = (this.Settings ?? new Settings()); this.Settings.MapHosts = this.Web.GetMapHosts(); this.Settings.SpacemapConfig = this.Web.GetSpacemapConfig(); try { this.Settings.UIString = this.Web.method_0(); } catch { } if (this.Settings.SpacemapConfig != null) { MapUtils.smethod_9(this.Settings.SpacemapConfig); } DarkOrbitWebAPI.NpcConstants npcList = this.Web.GetNpcList(); if (npcList != null) { NpcUtils.smethod_1(npcList); } DarkOrbitWebAPI.MapConstants mapList = this.Web.GetMapList(); if (mapList != null) { MapUtils.smethod_5(mapList, false); } }
internal static void smethod_5(DarkOrbitWebAPI.MapConstants mapConstants_0, bool bool_0 = false) { Dictionary <int, DarkOrbitWebAPI.MapConfig> maps = MapUtils.Maps; lock (maps) { if (MapUtils.Maps.Count == 0 || !MapUtils._mapsOnline) { MapUtils._mapsOnline |= !bool_0; foreach (DarkOrbitWebAPI.MapConfig mapConfig in mapConstants_0.Maps) { MapUtils.Maps[mapConfig.id] = mapConfig; MapUtils.MapIdByName[mapConfig.name ?? ""] = mapConfig.id; } } } }