31 lines
839 B
C#
31 lines
839 B
C#
using Content.Shared.Ninja.Systems;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Ninja.Components;
|
|
|
|
/// <summary>
|
|
/// Component for the Space Ninja's unique Spider Charge.
|
|
/// Only this component detonating can trigger the ninja's objective.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(SharedSpiderChargeSystem))]
|
|
public sealed partial class SpiderChargeComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Range for planting within the target area.
|
|
/// </summary>
|
|
[DataField]
|
|
public float Range = 10f;
|
|
|
|
/// <summary>
|
|
/// The ninja that planted this charge.
|
|
/// </summary>
|
|
[DataField]
|
|
public EntityUid? Planter;
|
|
|
|
/// <summary>
|
|
/// The trigger that will mark the objective as successful.
|
|
/// </summary>
|
|
[DataField]
|
|
public string TriggerKey = "timer";
|
|
}
|