34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using Content.Shared.Actions;
|
|
using Content.Shared.Actions.ActionTypes;
|
|
using Content.Shared.Ghost;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Content.Server.Ghost.Components
|
|
{
|
|
[RegisterComponent]
|
|
[ComponentReference(typeof(SharedGhostComponent))]
|
|
public sealed class GhostComponent : SharedGhostComponent
|
|
{
|
|
public TimeSpan TimeOfDeath { get; set; } = TimeSpan.Zero;
|
|
|
|
[DataField("booRadius")]
|
|
public float BooRadius = 3;
|
|
|
|
[DataField("booMaxTargets")]
|
|
public int BooMaxTargets = 3;
|
|
|
|
[DataField("action")]
|
|
public InstantAction Action = new()
|
|
{
|
|
UseDelay = TimeSpan.FromSeconds(120),
|
|
Icon = new SpriteSpecifier.Texture(new ResourcePath("Interface/Actions/scream.png")),
|
|
DisplayName = "action-name-boo",
|
|
Description = "action-description-boo",
|
|
CheckCanInteract = false,
|
|
Event = new BooActionEvent(),
|
|
};
|
|
}
|
|
|
|
public sealed class BooActionEvent : InstantActionEvent { }
|
|
}
|