Rework climbing (#7706)
This commit is contained in:
@@ -1,23 +1,8 @@
|
||||
using Content.Shared.Climbing;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Client.Movement.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[ComponentReference(typeof(SharedClimbingComponent))]
|
||||
public sealed class ClimbingComponent : SharedClimbingComponent
|
||||
{
|
||||
public override void HandleComponentState(ComponentState? curState, ComponentState? nextState)
|
||||
{
|
||||
base.HandleComponentState(curState, nextState);
|
||||
namespace Content.Client.Movement.Components;
|
||||
|
||||
if (curState is not ClimbModeComponentState climbModeState)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
IsClimbing = climbModeState.Climbing;
|
||||
OwnerIsTransitioning = climbModeState.IsTransitioning;
|
||||
}
|
||||
}
|
||||
}
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ClimbSystem))]
|
||||
[ComponentReference(typeof(SharedClimbingComponent))]
|
||||
public sealed class ClimbingComponent : SharedClimbingComponent { }
|
||||
|
||||
Reference in New Issue
Block a user