Files
tbd-station-14/Content.Shared/Light/Components/LightReplacerComponent.cs
DrSmugleaf 7f9b2a0434 Fix eating and drinking verbs showing up after a short delay and making your verb UI bounce (#38164)
* Fix eating and drinking verbs showing up after a short delay and making your verb UI bounce

* Usings fix

* Usings fix

* Usings fix

* Usings fix

* CVar fix

* Predicted ppups

* Openable predicted popup

* Fix audio prediction
2025-06-09 10:36:04 -04:00

37 lines
1.0 KiB
C#

using Content.Shared.Light.EntitySystems;
using Content.Shared.Storage;
using Robust.Shared.Audio;
using Robust.Shared.Containers;
using Robust.Shared.GameStates;
namespace Content.Shared.Light.Components;
/// <summary>
/// Device that allows user to quikly change bulbs in <see cref="PoweredLightComponent"/>
/// Can be reloaded by new light tubes or light bulbs
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(SharedLightReplacerSystem))]
public sealed partial class LightReplacerComponent : Component
{
[DataField("sound")]
public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Weapons/click.ogg")
{
Params = new()
{
Volume = -4f
}
};
/// <summary>
/// Bulbs that were inserted inside light replacer
/// </summary>
[ViewVariables]
public Container InsertedBulbs = default!;
/// <summary>
/// The default starting bulbs
/// </summary>
[DataField("contents")]
public List<EntitySpawnEntry> Contents = new();
}