Files
OldThink/Content.Server/Ghost/Components/GhostComponent.cs

34 lines
1021 B
C#
Raw Normal View History

using Content.Shared.Actions;
using Content.Shared.Actions.ActionTypes;
2021-06-09 22:19:39 +02:00
using Content.Shared.Ghost;
using Robust.Shared.Utility;
2020-03-03 19:10:07 +01:00
2021-06-09 22:19:39 +02:00
namespace Content.Server.Ghost.Components
2020-03-03 19:10:07 +01:00
{
[RegisterComponent]
2021-10-24 15:29:38 +13:00
[ComponentReference(typeof(SharedGhostComponent))]
public sealed class GhostComponent : SharedGhostComponent
2020-03-03 19:10:07 +01:00
{
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")),
Name = "action-name-boo",
Description = "action-description-boo",
2022-02-27 16:02:39 +13:00
CheckCanInteract = false,
Event = new BooActionEvent(),
};
2020-03-03 19:10:07 +01:00
}
public sealed class BooActionEvent : PerformActionEvent { }
2020-03-03 19:10:07 +01:00
}