26 lines
639 B
C#
26 lines
639 B
C#
using System.Threading;
|
|
|
|
namespace Content.Server.Botany
|
|
{
|
|
/// <summary>
|
|
/// Anything that can be used to cross-pollinate plants.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed class BotanySwabComponent : Component
|
|
{
|
|
[DataField("swabDelay")]
|
|
[ViewVariables]
|
|
public float SwabDelay = 2f;
|
|
|
|
/// <summary>
|
|
/// Token for interrupting swabbing do after.
|
|
/// </summary>
|
|
public CancellationTokenSource? CancelToken;
|
|
|
|
/// <summary>
|
|
/// SeedData from the first plant that got swabbed.
|
|
/// </summary>
|
|
public SeedData? SeedData;
|
|
}
|
|
}
|