private TeleportationResolver(string list) { this.List = Configs.Compound.Teleporters.Find(e => e.ListName == list); this.Destinations = new Dictionary <string, Response>() { { "", new Response("cancel", AdvancedLocationLoaderMod.Localizer.Get("cancel")) } }; for (int c = 0; c < this.List.Destinations.Count; c++) { if (this.List.Destinations[c].MapName != Game1.currentLocation.name) { this.Destinations.Add(this.List.Destinations[c].MapName, new Response(c.ToString(), this.List.Destinations[c].ItemText)); } } }
private TeleportationResolver(string list) { this.List = ModEntry.PatchData.Teleporters.FirstOrDefault(e => e.ListName == list); this.Destinations = new Dictionary <string, Response>() { { "", new Response("cancel", ModEntry.Strings.Get("cancel")) } }; for (int c = 0; c < this.List.Destinations.Count; c++) { if (this.List.Destinations[c].MapName != Game1.currentLocation.name) { this.Destinations.Add(this.List.Destinations[c].MapName, new Response(c.ToString(), this.List.Destinations[c].ItemText)); } } }