* Move PoweredLight to shared * Predict the rest of the owl * reacher * compinit & anim * Fix names * Revert this? * Fix these * chicken drummies * deita * Fix * review * fix * fixes * fix PVS weirdness --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using Content.Shared.Light.Components;
|
|
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();
|
|
}
|