2021-06-18 01:49:18 -07:00
|
|
|
using Robust.Client.GameObjects;
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.Suspicion
|
|
|
|
|
{
|
2022-02-16 00:23:23 -07:00
|
|
|
sealed class SuspicionRoleSystem : EntitySystem
|
2021-06-18 01:49:18 -07:00
|
|
|
{
|
|
|
|
|
public override void Initialize()
|
|
|
|
|
{
|
|
|
|
|
base.Initialize();
|
|
|
|
|
|
2022-10-12 01:16:23 -07:00
|
|
|
SubscribeLocalEvent<SuspicionRoleComponent, ComponentAdd>((_, component, _) => component.AddUI());
|
|
|
|
|
SubscribeLocalEvent<SuspicionRoleComponent, ComponentRemove>((_, component, _) => component.RemoveUI());
|
|
|
|
|
|
|
|
|
|
SubscribeLocalEvent<SuspicionRoleComponent, PlayerAttachedEvent>((_, component, _) => component.AddUI());
|
|
|
|
|
SubscribeLocalEvent<SuspicionRoleComponent, PlayerDetachedEvent>((_, component, _) => component.RemoveUI());
|
2021-06-18 01:49:18 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|