* WIP in progress hours * Cleanup * Fix bugle * Fix nullable error * Merge fixes * Merge fixes * Merge fixes
22 lines
615 B
C#
22 lines
615 B
C#
using Content.Shared.GameObjects.Components.Movement;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Client.GameObjects.Components.Movement
|
|
{
|
|
[RegisterComponent]
|
|
public class ClimbingComponent : SharedClimbingComponent
|
|
{
|
|
public override void HandleComponentState(ComponentState curState, ComponentState nextState)
|
|
{
|
|
if (!(curState is ClimbModeComponentState climbModeState) || Body == null)
|
|
{
|
|
return;
|
|
}
|
|
|
|
IsClimbing = climbModeState.Climbing;
|
|
}
|
|
|
|
public override bool IsClimbing { get; set; }
|
|
}
|
|
}
|