2023-04-22 14:40:36 +03:00
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.HotPotato;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Added to an activated hot potato. Controls hot potato transfer on server / effect spawning on client.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent, NetworkedComponent]
|
|
|
|
|
[Access(typeof(SharedHotPotatoSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class ActiveHotPotatoComponent : Component
|
2023-04-22 14:40:36 +03:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Hot potato effect spawn cooldown in seconds
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("effectCooldown"), ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float EffectCooldown = 0.3f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Moment in time next effect will be spawned
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public TimeSpan TargetTime = TimeSpan.Zero;
|
|
|
|
|
}
|