2021-10-31 15:03:32 +01:00
|
|
|
using Content.Server.Pointing.EntitySystems;
|
2021-06-09 22:19:39 +02:00
|
|
|
using Content.Shared.Pointing.Components;
|
2021-07-10 17:35:33 +02:00
|
|
|
using Content.Shared.Sound;
|
2021-10-31 15:03:32 +01:00
|
|
|
using Robust.Shared.Analyzers;
|
2020-07-24 14:51:18 +02:00
|
|
|
using Robust.Shared.GameObjects;
|
2021-03-05 01:08:38 +01:00
|
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
2020-07-24 14:51:18 +02:00
|
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Pointing.Components
|
2020-07-24 14:51:18 +02:00
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2021-10-31 15:03:32 +01:00
|
|
|
[Friend(typeof(RoguePointingSystem))]
|
2020-07-24 14:51:18 +02:00
|
|
|
public class RoguePointingArrowComponent : SharedRoguePointingArrowComponent
|
|
|
|
|
{
|
|
|
|
|
[ViewVariables]
|
2021-10-31 15:03:32 +01:00
|
|
|
public IEntity? Chasing;
|
2020-07-24 14:51:18 +02:00
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2021-03-05 01:08:38 +01:00
|
|
|
[DataField("turningDelay")]
|
2021-10-31 15:03:32 +01:00
|
|
|
public float TurningDelay = 2;
|
2020-07-24 14:51:18 +02:00
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2021-03-05 01:08:38 +01:00
|
|
|
[DataField("chasingSpeed")]
|
2021-10-31 15:03:32 +01:00
|
|
|
public float ChasingSpeed = 5;
|
2020-07-24 14:51:18 +02:00
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2021-03-05 01:08:38 +01:00
|
|
|
[DataField("chasingTime")]
|
2021-10-31 15:03:32 +01:00
|
|
|
public float ChasingTime = 1;
|
2020-07-24 14:51:18 +02:00
|
|
|
|
2021-07-10 17:35:33 +02:00
|
|
|
[DataField("explosionSound")]
|
2021-10-31 15:03:32 +01:00
|
|
|
public SoundSpecifier ExplosionSound = new SoundCollectionSpecifier("explosion");
|
2020-07-24 14:51:18 +02:00
|
|
|
}
|
|
|
|
|
}
|