Plant genetics (#11407)
This commit is contained in:
25
Content.Server/Botany/Components/BotanySwabComponent.cs
Normal file
25
Content.Server/Botany/Components/BotanySwabComponent.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user