mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 16:17:27 +00:00
* Ports Frontier plant analyzer, with 4/8 sec speed. Also adds a separate tier 2 civilian tech to research it. * Renamed the fucked folder omg
34 lines
764 B
C#
34 lines
764 B
C#
using Content.Shared.DoAfter;
|
|
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Server.Botany.Components;
|
|
|
|
/// <summary>
|
|
/// After scanning, retrieves the target Uid to use with its related UI.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class PlantAnalyzerComponent : Component
|
|
{
|
|
[DataDefinition]
|
|
public partial struct PlantAnalyzerSetting
|
|
{
|
|
[DataField]
|
|
public bool AdvancedScan;
|
|
|
|
[DataField]
|
|
public float ScanDelay;
|
|
|
|
[DataField]
|
|
public float AdvScanDelay;
|
|
}
|
|
|
|
[DataField, ViewVariables]
|
|
public PlantAnalyzerSetting Settings = new();
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadOnly)]
|
|
public DoAfterId? DoAfter;
|
|
|
|
[DataField]
|
|
public SoundSpecifier? ScanningEndSound;
|
|
}
|