Files
tbd-station-14/Content.Server/UserInterface/UserInterfaceHelpers.cs
2022-05-13 17:59:03 +10:00

13 lines
398 B
C#

using Robust.Server.GameObjects;
namespace Content.Server.UserInterface
{
public static class UserInterfaceHelpers
{
public static BoundUserInterface? GetUIOrNull(this EntityUid entity, object uiKey)
{
return IoCManager.Resolve<IEntityManager>().GetComponentOrNull<ServerUserInterfaceComponent>(entity)?.GetBoundUserInterfaceOrNull(uiKey);
}
}
}