Files
OldThink/Content.Server/Botany/Components/SeedAnalyzerComponent.cs
KurokoTurbo fb8834ac63 Seed analyzer (#433)
* hey

* added it to vending machine

* added to vending

* лицензия спрайта

* Update SeedAnalyzerWindow.xaml.cs

* fix my recently added bug

* обосрался знатно, пофиксил

* fix всего кроме null проверки

---------

Co-authored-by: melano <VildanMinnakhmetov>
Co-authored-by: KurokoTurbo <92106367+VildanMinnakhmetov@users.noreply.github.com>
2024-01-24 09:41:44 +03:00

33 lines
921 B
C#

using Content.Server.UserInterface;
using Content.Shared.Botany;
using Robust.Server.GameObjects;
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 SeedAnalyzerComponent : Component
{
/// <summary>
/// How long it takes to scan a seed.
/// </summary>
[DataField("scanDelay")]
public float ScanDelay = 0.8f;
/// <summary>
/// Sound played on scanning begin
/// </summary>
[DataField("scanningBeginSound")]
public SoundSpecifier? ScanningBeginSound;
/// <summary>
/// Sound played on scanning end
/// </summary>
[DataField("scanningEndSound")]
public SoundSpecifier? ScanningEndSound;
}
}