* 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>
25 lines
762 B
C#
25 lines
762 B
C#
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Gravity
|
|
{
|
|
[RegisterComponent]
|
|
[AutoGenerateComponentState]
|
|
[NetworkedComponent]
|
|
public sealed partial class GravityComponent : Component
|
|
{
|
|
[DataField, AutoNetworkedField]
|
|
public SoundSpecifier GravityShakeSound { get; set; } = new SoundPathSpecifier("/Audio/Effects/alert.ogg");
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public bool Enabled;
|
|
|
|
/// <summary>
|
|
/// Inherent gravity ensures GravitySystem won't change Enabled according to the gravity generators attached to this entity.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public bool Inherent;
|
|
}
|
|
}
|