* Update usages of ! is with is not * Content.IntegrationTests commit * Content.Server commit * Content.Shared commit Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
25 lines
854 B
C#
25 lines
854 B
C#
#nullable enable
|
|
using Content.Shared.GameObjects.Components.Movement;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Client.GameObjects.Components.Movement
|
|
{
|
|
[RegisterComponent]
|
|
[ComponentReference(typeof(SharedSlipperyComponent))]
|
|
public class SlipperyComponent : SharedSlipperyComponent
|
|
{
|
|
public override void HandleComponentState(ComponentState? curState, ComponentState? nextState)
|
|
{
|
|
base.HandleComponentState(curState, nextState);
|
|
|
|
if (curState is not SlipperyComponentState state) return;
|
|
|
|
Slippery = state.Slippery;
|
|
IntersectPercentage = state.IntersectPercentage;
|
|
ParalyzeTime = state.ParalyzeTime;
|
|
RequiredSlipSpeed = state.RequiredSlipSpeed;
|
|
LaunchForwardsMultiplier = state.LaunchForwardsMultiplier;
|
|
}
|
|
}
|
|
}
|