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
{
///
/// The prototype that will be spawned on recycle.
///
[DataField("prototype", customTypeSerializer:typeof(PrototypeIdSerializer))] public string? Prototype;
///
/// The amount of things that will be spawned on recycle.
///
[DataField("amount")] public int Amount = 1;
///
/// Whether this is "safe" to recycle or not.
/// If this is false, the recycler's safety must be disabled to recycle it.
///
[DataField("safe")]
public bool Safe { get; set; } = true;
}
}