Fix lasso buckle (#1246)

Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
DrSmugleaf
2020-07-02 23:36:06 +02:00
committed by GitHub
parent bc24a852f9
commit 0a8a383019
9 changed files with 86 additions and 30 deletions

View File

@@ -0,0 +1,23 @@
using Content.Shared.GameObjects.Components.Mobs;
using Robust.Shared.GameObjects;
namespace Content.Client.GameObjects.Components.Mobs
{
[RegisterComponent]
public class BuckleComponent : SharedBuckleComponent
{
private bool _buckled;
public override void HandleComponentState(ComponentState curState, ComponentState nextState)
{
if (!(curState is BuckleComponentState buckle))
{
return;
}
_buckled = buckle.Buckled;
}
protected override bool Buckled => _buckled;
}
}