fish-station/Content.Shared/Movement/Components/BorgJetpackComponent.cs
A-Mironov 35a01072e8
Большие изменения Боргов (#2473)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-07-18 01:34:28 +03:00

33 lines
1.2 KiB
C#

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Shared.Movement.Components;
/// <summary>
/// A special jetpack component for borgs that initializes its action on startup
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class BorgJetpackComponent : Component
{
[DataField, AutoNetworkedField]
public EntityUid? JetpackUser;
[ViewVariables(VVAccess.ReadWrite), DataField("moleUsage")]
public float MoleUsage = 0.012f;
[DataField("toggleAction", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string ToggleAction = "ActionToggleJetpack";
[DataField, AutoNetworkedField]
public EntityUid? ToggleActionEntity;
[ViewVariables(VVAccess.ReadWrite), DataField("acceleration"), AutoNetworkedField]
public float Acceleration = 1f;
[ViewVariables(VVAccess.ReadWrite), DataField("friction"), AutoNetworkedField]
public float Friction = 0.25f;
[ViewVariables(VVAccess.ReadWrite), DataField("weightlessModifier"), AutoNetworkedField]
public float WeightlessModifier = 1.2f;
}