ModernUO/Projects/UOContent/Engines/Advanced Search/AdvancedSearchCommand.cs
Kamron Batman 8282b00ca2
feat: Moves gumps out of the core (#1916)
> [!Important]
> **Developer Note**
> This code change will **completely move gumps out of the core**


### Summary

- Adds `GetGumps()` convenience which exposes methods to Find/Close/Send multiple gumps. This helper is a performance improvement by eliminating the Dictionary<Player, List> lookup for gumps.
2024-08-09 19:07:32 -07:00

21 lines
556 B
C#

using Server.Gumps;
namespace Server.Engines.AdvancedSearch;
public static class AdvancedSearchCommand
{
public static void Configure()
{
CommandSystem.Register("AdvancedSearch", AccessLevel.Administrator, OnCommand); // For those old school peeps!
}
[Usage("AdvancedSearch")]
[Description("Opens the advanced search gump.")]
[Aliases("AdvSrch", "AS", "XmlFind")]
private static void OnCommand(CommandEventArgs e)
{
var from = e.Mobile;
from.SendGump(new AdvancedSearchGump(from), true);
}
}