Files
tbd-station-14/Content.Client/Ghost/GhostComponent.cs
2022-11-04 11:56:30 +11:00

27 lines
896 B
C#

using Content.Shared.Actions;
using Content.Shared.Actions.ActionTypes;
using Content.Shared.Ghost;
using Robust.Shared.Utility;
namespace Content.Client.Ghost
{
[RegisterComponent]
[ComponentReference(typeof(SharedGhostComponent))]
public sealed class GhostComponent : SharedGhostComponent
{
public bool IsAttached { get; set; }
public InstantAction DisableLightingAction = new()
{
Icon = new SpriteSpecifier.Texture(new ResourcePath("Interface/VerbIcons/light.svg.192dpi.png")),
DisplayName = "ghost-gui-toggle-lighting-manager-name",
Description = "ghost-gui-toggle-lighting-manager-desc",
ClientExclusive = true,
CheckCanInteract = false,
Event = new DisableLightingActionEvent(),
};
}
public sealed class DisableLightingActionEvent : InstantActionEvent { };
}