2021-12-26 05:32:01 +03:00
|
|
|
using Content.Server.Kitchen.EntitySystems;
|
2021-06-09 22:19:39 +02:00
|
|
|
using Content.Shared.DragDrop;
|
|
|
|
|
using Content.Shared.Kitchen.Components;
|
2020-09-26 14:28:55 +01:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Kitchen.Components
|
2020-09-26 14:28:55 +01:00
|
|
|
{
|
2022-06-07 15:26:28 +02:00
|
|
|
[RegisterComponent, Access(typeof(KitchenSpikeSystem))]
|
2022-05-12 05:05:16 -07:00
|
|
|
public sealed class KitchenSpikeComponent : SharedKitchenSpikeComponent
|
2020-09-26 14:28:55 +01:00
|
|
|
{
|
2022-03-28 09:58:13 -07:00
|
|
|
public List<string>? PrototypesToSpawn;
|
2021-12-08 17:17:12 +01:00
|
|
|
|
2022-02-16 00:23:23 -07:00
|
|
|
// TODO: Spiking alive mobs? (Replace with uid) (deal damage to their limbs on spiking, kill on first butcher attempt?)
|
2021-12-26 05:32:01 +03:00
|
|
|
public string MeatSource1p = "?";
|
|
|
|
|
public string MeatSource0 = "?";
|
2022-03-28 09:58:13 -07:00
|
|
|
public string Victim = "?";
|
2020-09-26 14:28:55 +01:00
|
|
|
|
2021-12-26 05:32:01 +03:00
|
|
|
// Prevents simultaneous spiking of two bodies (could be replaced with CancellationToken, but I don't see any situation where Cancel could be called)
|
|
|
|
|
public bool InUse;
|
2021-02-18 14:49:50 +07:00
|
|
|
|
2021-12-26 05:32:01 +03:00
|
|
|
// ECS this out!, when DragDropSystem and InteractionSystem refactored
|
2021-05-22 21:06:40 -07:00
|
|
|
public override bool DragDropOn(DragDropEvent eventArgs)
|
2021-02-18 14:49:50 +07:00
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2020-09-26 14:28:55 +01:00
|
|
|
}
|
|
|
|
|
}
|