using Content.Shared._White.Cult.Components;
namespace Content.Shared._White.Cult.Systems;
///
/// Thats need for chat perms update
///
public sealed class CultistSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent(OnInit);
SubscribeLocalEvent(OnRemove);
SubscribeLocalEvent(OnInit);
SubscribeLocalEvent(OnRemove);
}
private void OnInit(EntityUid uid, T component, ComponentStartup args)
{
RaiseLocalEvent(new EventCultistComponentState(true));
}
private void OnRemove(EntityUid uid, T component, ComponentShutdown args)
{
RaiseLocalEvent(new EventCultistComponentState(false));
}
}
public sealed class EventCultistComponentState
{
public bool Created { get; }
public EventCultistComponentState(bool state)
{
Created = state;
}
}