2023-06-03 22:34:43 +03:00
|
|
|
using Content.Shared.Movement.Systems;
|
2022-10-01 21:36:44 -04:00
|
|
|
using Content.Shared.Whitelist;
|
2021-11-28 20:25:36 -06:00
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Movement.Components;
|
|
|
|
|
|
|
|
|
|
[NetworkedComponent, RegisterComponent]
|
2023-06-03 22:34:43 +03:00
|
|
|
[AutoGenerateComponentState]
|
2024-03-17 05:27:22 +03:00
|
|
|
[Access(typeof(SpeedModifierContactsSystem))]
|
|
|
|
|
public sealed partial class SpeedModifierContactsComponent : Component
|
2021-11-28 20:25:36 -06:00
|
|
|
{
|
2023-06-03 22:34:43 +03:00
|
|
|
[DataField("walkSpeedModifier"), ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[AutoNetworkedField]
|
|
|
|
|
public float WalkSpeedModifier = 1.0f;
|
2021-11-28 20:25:36 -06:00
|
|
|
|
2023-06-03 22:34:43 +03:00
|
|
|
[AutoNetworkedField]
|
|
|
|
|
[DataField("sprintSpeedModifier"), ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float SprintSpeedModifier = 1.0f;
|
2022-10-01 21:36:44 -04:00
|
|
|
|
|
|
|
|
[DataField("ignoreWhitelist")]
|
|
|
|
|
public EntityWhitelist? IgnoreWhitelist;
|
2022-08-26 01:34:05 +12:00
|
|
|
}
|