* Init Commit * Typos * Commit 2 * Save Interaction Test Mob from failing * ssss * Confident I've gotten all the correct prototypes * Whoops forgot to edit those * aaaaa * Better solution * Test fail fixes * Yaml fix * THE FINAL TEST FIX * Final fix(?) * whoops * Added a WeightlessnessChangedEvent * Check out this diff * Wait I'm dumb * Final optimization and don't duplicate code * Death to IsWeightless * File scoped namespaces * REVIEW * Fix test fails * FIX TEST FAILS REAL * A * Commit of doom * borgar * We don't need to specify on map init apparently * Fuck it * LOAD BEARING COMMENT --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
18 lines
540 B
C#
18 lines
540 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Movement.Components
|
|
{
|
|
/// <summary>
|
|
/// Ignores gravity entirely.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class MovementIgnoreGravityComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Whether gravity is on or off for this object. This will always override the current Gravity State.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public bool Weightless;
|
|
}
|
|
}
|