6
StarHorizon_Public/Content.Server/_NF/Construction/ConstructionSystem.ComputerBoards.cs
2025-11-12 10:55:00 +03:00

24 lines
870 B
C#

using Content.Shared._NF.Construction.Components;
using Content.Shared.Examine;
namespace Content.Server.Construction; //Uses base namespace to extend ConstructionSystem behaviour
public sealed partial class ConstructionSystem
{
private void InitializeComputerBoards()
{
SubscribeLocalEvent<ComputerTabletopBoardComponent, ExaminedEvent>(OnTabletopExamined);
SubscribeLocalEvent<ComputerWallmountBoardComponent, ExaminedEvent>(OnWallmountExamined);
}
private void OnTabletopExamined(Entity<ComputerTabletopBoardComponent> ent, ref ExaminedEvent args)
{
args.PushMarkup(Loc.GetString("computer-tabletop-board-examine"));
}
private void OnWallmountExamined(Entity<ComputerWallmountBoardComponent> ent, ref ExaminedEvent args)
{
args.PushMarkup(Loc.GetString("computer-wallmount-board-examine"));
}
}