Add click dragging for buckle (#1290)

This commit is contained in:
DrSmugleaf
2020-07-07 00:04:30 +02:00
committed by GitHub
parent 5056ded35e
commit c78ce3e27a
8 changed files with 69 additions and 11 deletions

View File

@@ -0,0 +1,22 @@
#nullable enable
using Content.Shared.GameObjects.Components.Strap;
using Robust.Shared.GameObjects;
namespace Content.Client.GameObjects.Components.Strap
{
[RegisterComponent]
public class StrapComponent : SharedStrapComponent
{
public override StrapPosition Position { get; protected set; }
public override void HandleComponentState(ComponentState? curState, ComponentState? nextState)
{
if (!(curState is StrapComponentState strap))
{
return;
}
Position = strap.Position;
}
}
}