2021-07-17 02:37:09 +02:00
|
|
|
|
using Robust.Server.GameObjects;
|
2020-08-24 20:47:17 +02:00
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
|
namespace Content.Server.UserInterface
|
2020-08-24 20:47:17 +02:00
|
|
|
|
{
|
|
|
|
|
|
public static class UserInterfaceHelpers
|
|
|
|
|
|
{
|
2022-08-21 05:38:30 +12:00
|
|
|
|
[Obsolete("Use UserInterfaceSystem")]
|
|
|
|
|
|
public static BoundUserInterface? GetUIOrNull(this EntityUid entity, Enum uiKey)
|
2020-08-24 20:47:17 +02:00
|
|
|
|
{
|
2022-08-21 05:38:30 +12:00
|
|
|
|
return IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<UserInterfaceSystem>().GetUiOrNull(entity, uiKey);
|
2020-08-24 20:47:17 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|