2021-06-09 22:19:39 +02:00
|
|
|
using Content.Shared.DoAfter;
|
2020-08-09 02:16:13 +10:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.DoAfter
|
2020-08-09 02:16:13 +10:00
|
|
|
{
|
2022-06-07 15:26:28 +02:00
|
|
|
[RegisterComponent, Access(typeof(DoAfterSystem))]
|
2020-08-09 02:16:13 +10:00
|
|
|
public sealed class DoAfterComponent : SharedDoAfterComponent
|
|
|
|
|
{
|
2022-02-20 06:15:57 +11:00
|
|
|
public readonly Dictionary<DoAfter, byte> DoAfters = new();
|
2020-08-09 02:16:13 +10:00
|
|
|
|
|
|
|
|
// 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.
|
2022-02-20 06:15:57 +11:00
|
|
|
public byte RunningIndex;
|
2020-08-09 02:16:13 +10:00
|
|
|
}
|
2022-04-04 22:48:56 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Added to entities that are currently performing any doafters.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
public sealed class ActiveDoAfterComponent : Component {}
|
2020-08-13 14:40:27 +02:00
|
|
|
}
|