Files
crystall-punk-14/Content.Server/_CP14/Workbench/CP14WorkbenchComponent.cs
Ed dca61c009d 2 new Lobby image, some bugfix (#468)
* +2 lobby screens

* Update goblin.yml

* workbench recipes remove nesting

* tips update

* Update sewing_table.yml
2024-09-28 01:29:02 +03:00

47 lines
1.3 KiB
C#

/*
* This file is sublicensed under MIT License
* https://github.com/space-wizards/space-station-14/blob/master/LICENSE.TXT
*/
using Content.Shared._CP14.Workbench.Prototypes;
using Content.Shared.Tag;
using Robust.Shared.Audio;
using Robust.Shared.Prototypes;
namespace Content.Server._CP14.Workbench;
/// <summary>
/// This entity can be used to craft other objects through the interface
/// </summary>
[RegisterComponent]
[Access(typeof(CP14WorkbenchSystem))]
public sealed partial class CP14WorkbenchComponent : Component
{
/// <summary>
/// Crafting speed modifier on this workbench.
/// </summary>
[DataField]
public float CraftSpeed = 1f;
[DataField]
public float WorkbenchRadius = 0.5f;
/// <summary>
/// List of recipes available for crafting on this type of workbench
/// </summary>
[DataField]
public List<ProtoId<CP14WorkbenchRecipePrototype>> Recipes = new();
/// <summary>
/// Auto recipe list fill based on tags
/// </summary>
[DataField]
public List<ProtoId<TagPrototype>> RecipeTags = new();
/// <summary>
/// Played during crafting. Can be overwritten by the crafting sound of a specific recipe.
/// </summary>
[DataField]
public SoundSpecifier CraftSound = new SoundCollectionSpecifier("CP14Hammering");
}