13 lines
398 B
C#
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);
|
|
}
|
|
}
|
|
}
|