Re-organize all projects (#4166)
This commit is contained in:
14
Content.Server/UserInterface/UserInterfaceHelpers.cs
Normal file
14
Content.Server/UserInterface/UserInterfaceHelpers.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
#nullable enable
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.UserInterface
|
||||
{
|
||||
public static class UserInterfaceHelpers
|
||||
{
|
||||
public static BoundUserInterface? GetUIOrNull(this IEntity entity, object uiKey)
|
||||
{
|
||||
return entity.GetComponentOrNull<ServerUserInterfaceComponent>()?.GetBoundUserInterfaceOrNull(uiKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user