ECS dragdrop (#12973)
* ECS dragdrop No more excuses. * AAAAAAAAAAAAAA * kry * events * aaaaaaaaaa * HUH * Fix stripping * aaaaaa * spoike * asease * fix table vaulting * ded * rebiew * aaaaaaaaaaaaa * drag * aeaeae * weh
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
using Content.Shared.DragDrop;
|
||||
using Content.Shared.Nutrition.Components;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Kitchen.Components
|
||||
{
|
||||
public abstract class SharedKitchenSpikeComponent : Component, IDragDropOn
|
||||
[NetworkedComponent]
|
||||
public abstract class SharedKitchenSpikeComponent : Component
|
||||
{
|
||||
[DataField("delay")]
|
||||
public float SpikeDelay = 7.0f;
|
||||
@@ -14,19 +14,6 @@ namespace Content.Shared.Kitchen.Components
|
||||
[DataField("sound")]
|
||||
public SoundSpecifier SpikeSound = new SoundPathSpecifier("/Audio/Effects/Fluids/splat.ogg");
|
||||
|
||||
bool IDragDropOn.CanDragDropOn(DragDropEvent eventArgs)
|
||||
{
|
||||
if (!IoCManager.Resolve<IEntityManager>().HasComponent<SharedButcherableComponent>(eventArgs.Dragged))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// TODO: Once we get silicons need to check organic
|
||||
return true;
|
||||
}
|
||||
|
||||
public abstract bool DragDropOn(DragDropEvent eventArgs);
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum KitchenSpikeVisuals : byte
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user