mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 08:07:28 +00:00
15 lines
456 B
C#
15 lines
456 B
C#
using Robust.Server.GameObjects;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.IoC;
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|