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-02-20 06:15:57 +11:00
|
|
|
[RegisterComponent, Friend(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
|
|
|
}
|
2020-08-13 14:40:27 +02:00
|
|
|
}
|