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>
This commit is contained in:
32
Content.Server/Botany/Components/SeedAnalyzerComponent.cs
Normal file
32
Content.Server/Botany/Components/SeedAnalyzerComponent.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user