Files
crystall-punk-14/Content.Client/Ghost/GhostComponent.cs

27 lines
896 B
C#
Raw Normal View History

2022-11-04 01:56:30 +01:00
using Content.Shared.Actions;
using Content.Shared.Actions.ActionTypes;
2021-06-09 22:19:39 +02:00
using Content.Shared.Ghost;
2022-11-04 01:56:30 +01:00
using Robust.Shared.Utility;
2021-06-09 22:19:39 +02:00
namespace Content.Client.Ghost
{
[RegisterComponent]
2021-10-24 15:29:38 +13:00
[ComponentReference(typeof(SharedGhostComponent))]
public sealed class GhostComponent : SharedGhostComponent
{
public bool IsAttached { get; set; }
2022-11-04 01:56:30 +01:00
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(),
};
}
2022-11-04 01:56:30 +01:00
public sealed class DisableLightingActionEvent : InstantActionEvent { };
}