Rename WorldMap to MapId (#14857)

This commit is contained in:
Leon Friedrich
2023-03-28 00:40:57 +13:00
committed by GitHub
parent 512b79efe2
commit 36f7a5b0e6
4 changed files with 6 additions and 16 deletions

View File

@@ -89,13 +89,8 @@ public sealed class WeatherSystem : SharedWeatherSystem
private CompletionResult WeatherCompletion(IConsoleShell shell, string[] args)
{
var options = new List<CompletionOption>();
if (args.Length == 1)
{
options.AddRange(EntityQuery<MapComponent>(true).Select(o => new CompletionOption(o.WorldMap.ToString())));
return CompletionResult.FromHintOptions(options, "Map Id");
}
return CompletionResult.FromHintOptions(CompletionHelper.MapIds(EntityManager), "Map Id");
var a = CompletionHelper.PrototypeIDs<WeatherPrototype>(true, ProtoMan);
return CompletionResult.FromHintOptions(a, Loc.GetString("cmd-weather-hint"));