* Per-map parallax support * Comments for future sloth * c * bet * Fix exception * VV support * Fix parallax * mem * weightless sounds * Gravity stuff * placeholder coz im too lazy to stash don't @ me son * decent clouds * sky * Fast parallax * Imagine spelling * Loicense * perish * Fix weightless status Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
31 lines
861 B
C#
31 lines
861 B
C#
using Content.Shared.Sound;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Gravity
|
|
{
|
|
[RegisterComponent]
|
|
[NetworkedComponent]
|
|
public sealed class GravityComponent : Component
|
|
{
|
|
[DataField("gravityShakeSound")]
|
|
public SoundSpecifier GravityShakeSound { get; set; } = new SoundPathSpecifier("/Audio/Effects/alert.ogg");
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public bool EnabledVV
|
|
{
|
|
get => Enabled;
|
|
set
|
|
{
|
|
if (Enabled == value) return;
|
|
Enabled = value;
|
|
IoCManager.Resolve<IEntityManager>().EventBus.RaiseLocalEvent(Owner, new GravityChangedEvent(Owner, value));
|
|
Dirty();
|
|
}
|
|
}
|
|
|
|
[DataField("enabled")]
|
|
public bool Enabled;
|
|
}
|
|
}
|