mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-02-15 05:10:54 +01:00
14 lines
421 B
C#
14 lines
421 B
C#
using Robust.Server.GameObjects;
|
|
|
|
namespace Content.Server.UserInterface
|
|
{
|
|
public static class UserInterfaceHelpers
|
|
{
|
|
[Obsolete("Use UserInterfaceSystem")]
|
|
public static BoundUserInterface? GetUIOrNull(this EntityUid entity, Enum uiKey)
|
|
{
|
|
return IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<UserInterfaceSystem>().GetUiOrNull(entity, uiKey);
|
|
}
|
|
}
|
|
}
|