2022-01-13 06:13:25 -08:00
|
|
|
using Content.Shared.Clothing;
|
2021-06-27 07:43:39 +02:00
|
|
|
using Content.Shared.Gravity;
|
2022-01-13 06:13:25 -08:00
|
|
|
using Content.Shared.Inventory;
|
2022-05-27 02:41:18 -05:00
|
|
|
using Robust.Shared.GameStates;
|
2021-06-09 09:26:46 +10:00
|
|
|
using Robust.Shared.Map;
|
2021-02-11 01:13:03 -08:00
|
|
|
using Robust.Shared.Physics;
|
2022-09-14 17:26:26 +10:00
|
|
|
using Robust.Shared.Physics.Components;
|
2022-05-27 02:41:18 -05:00
|
|
|
using Robust.Shared.Serialization;
|
2020-05-24 11:40:49 +02:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Shared.Movement.Components
|
2020-05-24 11:40:49 +02:00
|
|
|
{
|
2022-08-08 10:18:14 +10:00
|
|
|
/// <summary>
|
|
|
|
|
/// Ignores gravity entirely.
|
|
|
|
|
/// </summary>
|
2022-05-27 02:41:18 -05:00
|
|
|
[RegisterComponent, NetworkedComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class MovementIgnoreGravityComponent : Component
|
2020-05-24 11:40:49 +02:00
|
|
|
{
|
2022-05-27 02:41:18 -05:00
|
|
|
/// <summary>
|
|
|
|
|
/// Whether or not gravity is on or off for this object.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("gravityState")] public bool Weightless = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[NetSerializable, Serializable]
|
|
|
|
|
public sealed class MovementIgnoreGravityComponentState : ComponentState
|
|
|
|
|
{
|
|
|
|
|
public bool Weightless;
|
|
|
|
|
|
|
|
|
|
public MovementIgnoreGravityComponentState(MovementIgnoreGravityComponent component)
|
|
|
|
|
{
|
|
|
|
|
Weightless = component.Weightless;
|
|
|
|
|
}
|
2020-05-24 11:40:49 +02:00
|
|
|
}
|
|
|
|
|
}
|