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

@@ -101,12 +101,7 @@ public sealed class PlanetCommand : IConsoleCommand
public CompletionResult GetCompletion(IConsoleShell shell, string[] args)
{
if (args.Length == 1)
{
var options = _entManager.EntityQuery<MapComponent>(true)
.Select(o => new CompletionOption(o.WorldMap.ToString(), "MapId"));
return CompletionResult.FromOptions(options);
}
return CompletionResult.FromHintOptions(CompletionHelper.MapIds(_entManager), "Map Id");
if (args.Length == 2)
{