using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; namespace Content.Server.Anomaly.Components; [RegisterComponent] public sealed partial class ProjectileAnomalyComponent : Component { /// /// The prototype of the projectile that will be shot when the anomaly pulses /// [DataField("projectilePrototype", required: true, customTypeSerializer: typeof(PrototypeIdSerializer)), ViewVariables(VVAccess.ReadWrite)] public string ProjectilePrototype = default!; /// /// The speed can travel /// [DataField("projectileSpeed"), ViewVariables(VVAccess.ReadWrite)] public float ProjectileSpeed = 30f; /// /// The minimum number of projectiles shot per pulse /// [DataField("minProjectiles"), ViewVariables(VVAccess.ReadWrite)] public int MinProjectiles = 2; /// /// The MAXIMUM number of projectiles shot per pulse /// [DataField("maxProjectiles"), ViewVariables(VVAccess.ReadWrite)] public int MaxProjectiles = 9; /// /// The MAXIMUM range for targeting entities /// [DataField("projectileRange"), ViewVariables(VVAccess.ReadWrite)] public float ProjectileRange = 50f; }