2021-03-08 21:24:34 +11:00
|
|
|
#nullable enable
|
|
|
|
|
using Content.Shared.Interfaces.GameObjects.Components;
|
2020-09-26 14:28:55 +01:00
|
|
|
using Robust.Shared.GameObjects;
|
2021-03-05 01:08:38 +01:00
|
|
|
using Robust.Shared.Prototypes;
|
2020-09-26 14:28:55 +01:00
|
|
|
using Robust.Shared.Serialization;
|
2021-03-05 01:08:38 +01:00
|
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
2020-09-26 14:28:55 +01:00
|
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
|
|
2021-03-08 21:24:34 +11:00
|
|
|
namespace Content.Shared.GameObjects.Components.Nutrition
|
2020-09-26 14:28:55 +01:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates that the entity can be thrown on a kitchen spike for butchering.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent]
|
2021-03-08 21:24:34 +11:00
|
|
|
public class SharedButcherableComponent : Component, IDraggable
|
2020-09-26 14:28:55 +01:00
|
|
|
{
|
|
|
|
|
public override string Name => "Butcherable";
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
public string? MeatPrototype => _meatPrototype;
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
2021-03-05 01:08:38 +01:00
|
|
|
[DataField("meat")]
|
2020-09-26 14:28:55 +01:00
|
|
|
private string? _meatPrototype;
|
2021-03-08 21:24:34 +11:00
|
|
|
|
|
|
|
|
public bool CanDrop(CanDropEventArgs args)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2020-09-26 14:28:55 +01:00
|
|
|
}
|
|
|
|
|
}
|