2021-06-09 22:19:39 +02:00
|
|
|
using Content.Shared.Climbing;
|
2020-08-19 18:13:22 -04:00
|
|
|
|
2022-05-10 01:08:52 -07:00
|
|
|
namespace Content.Server.Climbing.Components;
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
[ComponentReference(typeof(SharedClimbingComponent))]
|
2022-06-07 15:26:28 +02:00
|
|
|
[Access(typeof(ClimbSystem))]
|
2022-05-10 01:08:52 -07:00
|
|
|
public sealed class ClimbingComponent : SharedClimbingComponent
|
2020-08-19 18:13:22 -04:00
|
|
|
{
|
2022-05-10 01:08:52 -07:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public override bool IsClimbing
|
2020-08-19 18:13:22 -04:00
|
|
|
{
|
2022-05-10 01:08:52 -07:00
|
|
|
get => base.IsClimbing;
|
|
|
|
|
set
|
2020-08-19 18:13:22 -04:00
|
|
|
{
|
2022-05-10 01:08:52 -07:00
|
|
|
if (base.IsClimbing == value) return;
|
|
|
|
|
base.IsClimbing = value;
|
|
|
|
|
Dirty();
|
2020-08-19 18:13:22 -04:00
|
|
|
}
|
2022-05-10 01:08:52 -07:00
|
|
|
}
|
2020-08-19 18:13:22 -04:00
|
|
|
|
2022-05-10 01:08:52 -07:00
|
|
|
public override bool OwnerIsTransitioning
|
|
|
|
|
{
|
|
|
|
|
get => base.OwnerIsTransitioning;
|
|
|
|
|
set
|
2020-08-19 18:13:22 -04:00
|
|
|
{
|
2022-05-10 01:08:52 -07:00
|
|
|
if (value == base.OwnerIsTransitioning) return;
|
|
|
|
|
base.OwnerIsTransitioning = value;
|
|
|
|
|
Dirty();
|
2020-08-19 18:13:22 -04:00
|
|
|
}
|
|
|
|
|
}
|
2022-05-10 01:08:52 -07:00
|
|
|
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
public Dictionary<string, int> DisabledFixtureMasks { get; } = new();
|
2020-08-19 18:13:22 -04:00
|
|
|
}
|