21 lines
696 B
C#
21 lines
696 B
C#
using Content.Shared.DoAfter;
|
|
|
|
namespace Content.Server.DoAfter
|
|
{
|
|
[RegisterComponent, Access(typeof(DoAfterSystem))]
|
|
public sealed class DoAfterComponent : SharedDoAfterComponent
|
|
{
|
|
public readonly Dictionary<DoAfter, byte> DoAfters = new();
|
|
|
|
// So the client knows which one to update (and so we don't send all of the do_afters every time 1 updates)
|
|
// we'll just send them the index. Doesn't matter if it wraps around.
|
|
public byte RunningIndex;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Added to entities that are currently performing any doafters.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed class ActiveDoAfterComponent : Component {}
|
|
}
|