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

@@ -1,6 +1,5 @@
using System.Collections.Generic;
using Content.Server.GameObjects.Components.Mobs;
using Content.Server.GameObjects.EntitySystems;
using Content.Server.Interfaces.GameObjects.Components.Interaction;
using Content.Shared.GameObjects;
using Content.Shared.GameObjects.Components.Strap;
@@ -35,7 +34,7 @@ namespace Content.Server.GameObjects.Components.Strap
public override StrapPosition Position
{
get => _position;
set
protected set
{
_position = value;
Dirty();
@@ -150,6 +149,11 @@ namespace Content.Server.GameObjects.Components.Strap
OccupiedSize = 0;
}
public override ComponentState GetComponentState()
{
return new StrapComponentState(Position);
}
[Verb]
private sealed class StrapVerb : Verb<StrapComponent>
{