Delete more body code (#15259)

This commit is contained in:
Kara
2023-04-10 23:28:10 -07:00
committed by GitHub
parent 64089f9c5d
commit 3bb2b27169
5 changed files with 0 additions and 308 deletions

View File

@@ -1,34 +0,0 @@
using Content.Server.UserInterface;
using Content.Shared.Body.Components;
using Robust.Server.GameObjects;
namespace Content.Server.Body.Components
{
[RegisterComponent]
[ComponentReference(typeof(SharedBodyScannerComponent))]
public sealed class BodyScannerComponent : SharedBodyScannerComponent
{
[ViewVariables] private BoundUserInterface? UserInterface => Owner.GetUIOrNull(BodyScannerUiKey.Key);
protected override void Initialize()
{
base.Initialize();
Owner.EnsureComponentWarn<ServerUserInterfaceComponent>();
if (UserInterface != null)
{
UserInterface.OnReceiveMessage += UserInterfaceOnOnReceiveMessage;
}
}
private void UserInterfaceOnOnReceiveMessage(ServerBoundUserInterfaceMessage serverMsg) { }
/// <summary>
/// Copy BodyTemplate and BodyPart data into a common data class that the client can read.
/// </summary>
private BodyScannerUIState InterfaceState(BodyComponent body)
{
return new(body.Owner);
}
}
}