21 lines
750 B
C#
21 lines
750 B
C#
using Content.Server._White.AspectsSystem.Aspects.Components;
|
|
using Content.Server._White.AspectsSystem.Base;
|
|
using Content.Server.GameTicking.Components;
|
|
using Content.Shared.Access.Components;
|
|
|
|
namespace Content.Server._White.AspectsSystem.Aspects;
|
|
|
|
public sealed class AiRunLockAspect : AspectSystem<AiRunLockAspectComponent>
|
|
{
|
|
protected override void Started(EntityUid uid, AiRunLockAspectComponent component, GameRuleComponent gameRule, GameRuleStartedEvent args)
|
|
{
|
|
base.Started(uid, component, gameRule, args);
|
|
|
|
var query = EntityQueryEnumerator<AccessReaderComponent>();
|
|
while (query.MoveNext(out _, out var accessReaderComponent))
|
|
{
|
|
accessReaderComponent.Enabled = false;
|
|
}
|
|
}
|
|
}
|