Files
tbd-station-14/Content.Server/Recycling/Components/RecyclableComponent.cs
metalgearsloth f9c853f100 Make recyclers great again (#6653)
Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
2022-02-21 14:39:24 +11:00

27 lines
963 B
C#

using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Recycling.Components
{
[RegisterComponent, Friend(typeof(RecyclerSystem))]
public sealed class RecyclableComponent : Component
{
/// <summary>
/// The prototype that will be spawned on recycle.
/// </summary>
[DataField("prototype", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))] public string? Prototype;
/// <summary>
/// The amount of things that will be spawned on recycle.
/// </summary>
[DataField("amount")] public int Amount = 1;
/// <summary>
/// Whether this is "safe" to recycle or not.
/// If this is false, the recycler's safety must be disabled to recycle it.
/// </summary>
[DataField("safe")]
public bool Safe { get; set; } = true;
}
}