2021-07-12 01:32:10 -07:00
|
|
|
using Robust.Shared.GameStates;
|
2022-07-09 13:46:11 +10:00
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2020-07-02 23:24:27 +02:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Shared.Projectiles
|
2020-07-02 23:24:27 +02:00
|
|
|
{
|
2022-07-09 13:46:11 +10:00
|
|
|
[NetworkedComponent, Access(typeof(SharedProjectileSystem))]
|
2021-05-30 23:30:44 +10:00
|
|
|
public abstract class SharedProjectileComponent : Component
|
2020-07-02 23:24:27 +02:00
|
|
|
{
|
2022-07-09 13:46:11 +10:00
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("impactEffect", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
|
|
|
|
|
public string? ImpactEffect;
|
|
|
|
|
|
2020-07-02 23:24:27 +02:00
|
|
|
private bool _ignoreShooter = true;
|
2022-07-09 13:46:11 +10:00
|
|
|
public EntityUid Shooter { get; set; }
|
2020-07-02 23:24:27 +02:00
|
|
|
|
|
|
|
|
public bool IgnoreShooter
|
|
|
|
|
{
|
|
|
|
|
get => _ignoreShooter;
|
|
|
|
|
set
|
|
|
|
|
{
|
2021-03-08 04:09:59 +11:00
|
|
|
if (_ignoreShooter == value) return;
|
|
|
|
|
|
2020-07-02 23:24:27 +02:00
|
|
|
_ignoreShooter = value;
|
|
|
|
|
Dirty();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|