Gamerule Entities, Take 2 (#15765)

This commit is contained in:
Nemanja
2023-04-25 20:23:14 -04:00
committed by GitHub
parent 08ccb5367e
commit 59349b1b9b
124 changed files with 3102 additions and 4344 deletions

View File

@@ -0,0 +1,19 @@
using System.Threading;
using Content.Server.StationEvents.Events;
namespace Content.Server.StationEvents.Components;
[RegisterComponent, Access(typeof(PowerGridCheckRule))]
public sealed class PowerGridCheckRuleComponent : Component
{
public CancellationTokenSource? AnnounceCancelToken;
public readonly List<EntityUid> Powered = new();
public readonly List<EntityUid> Unpowered = new();
public float SecondsUntilOff = 30.0f;
public int NumberPerSecond = 0;
public float UpdateRate => 1.0f / NumberPerSecond;
public float FrameTimeAccumulator = 0.0f;
}