Move do_afters to an overlay (#10463)

This commit is contained in:
metalgearsloth
2022-08-13 14:32:23 +10:00
committed by GitHub
parent 36ba197a25
commit 71ffca2257
8 changed files with 203 additions and 503 deletions

View File

@@ -34,12 +34,20 @@ namespace Content.Shared.DoAfter
}
}
// TODO: Merge this with the actual DoAfter
/// <summary>
/// We send a trimmed-down version of the DoAfter for the client for it to use.
/// </summary>
[Serializable, NetSerializable]
public sealed class ClientDoAfter
{
public bool Cancelled = false;
/// <summary>
/// Accrued time when cancelled.
/// </summary>
public float CancelledAccumulator;
// To see what these do look at DoAfter and DoAfterEventArgs
public byte ID { get; }
@@ -51,6 +59,8 @@ namespace Content.Shared.DoAfter
public EntityUid? Target { get; }
public float Accumulator;
public float Delay { get; }
// TODO: The other ones need predicting