2021-06-16 15:49:02 +01:00
|
|
|
using Content.Server.GameObjects.Components;
|
2021-06-20 11:42:37 +02:00
|
|
|
using Content.Shared.Interaction;
|
2021-06-16 15:49:02 +01:00
|
|
|
using JetBrains.Annotations;
|
2021-06-20 11:42:37 +02:00
|
|
|
using Robust.Shared.GameObjects;
|
2021-06-16 15:49:02 +01:00
|
|
|
|
2021-06-20 11:42:37 +02:00
|
|
|
namespace Content.Server.Computer
|
2021-06-16 15:49:02 +01:00
|
|
|
{
|
|
|
|
|
[UsedImplicitly]
|
|
|
|
|
internal sealed class ComputerUIActivatorSystem : EntitySystem
|
|
|
|
|
{
|
|
|
|
|
public override void Initialize()
|
|
|
|
|
{
|
|
|
|
|
base.Initialize();
|
|
|
|
|
SubscribeLocalEvent<BaseComputerUserInterfaceComponent, ActivateInWorldEvent>(HandleActivate);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void HandleActivate(EntityUid uid, BaseComputerUserInterfaceComponent component, ActivateInWorldEvent args)
|
|
|
|
|
{
|
|
|
|
|
component.ActivateThunk(args);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|