Make chemistry machines and IdCardConsole use item slots (#5428)
* chemistry item slots * item slots id card console
This commit is contained in:
22
Content.Server/Access/Systems/IdCardConsoleSystem.cs
Normal file
22
Content.Server/Access/Systems/IdCardConsoleSystem.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Content.Server.Access.Components;
|
||||
using Content.Shared.Access;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.Access.Systems
|
||||
{
|
||||
[UsedImplicitly]
|
||||
public sealed class IdCardConsoleSystem : SharedIdCardConsoleSystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
// one day, maybe bound user interfaces can be shared too.
|
||||
SubscribeLocalEvent<IdCardConsoleComponent, ComponentStartup>((_, comp, _) => comp.UpdateUserInterface());
|
||||
SubscribeLocalEvent<IdCardConsoleComponent, EntInsertedIntoContainerMessage>((_, comp, _) => comp.UpdateUserInterface());
|
||||
SubscribeLocalEvent<IdCardConsoleComponent, EntRemovedFromContainerMessage>((_, comp, _) => comp.UpdateUserInterface());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user