mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 16:17:27 +00:00
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
24 lines
596 B
C#
24 lines
596 B
C#
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;
|
|
}
|
|
}
|