2023-06-07 10:15:22 +03:00
|
|
|
|
using Robust.Shared.Audio;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.GameTicking.Rules.Components;
|
2023-04-25 20:23:14 -04:00
|
|
|
|
|
|
|
|
|
|
[RegisterComponent, Access(typeof(PiratesRuleSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class PiratesRuleComponent : Component
|
2023-04-25 20:23:14 -04:00
|
|
|
|
{
|
|
|
|
|
|
[ViewVariables]
|
2023-08-28 16:53:24 -07:00
|
|
|
|
public List<EntityUid> Pirates = new();
|
2023-04-25 20:23:14 -04:00
|
|
|
|
[ViewVariables]
|
|
|
|
|
|
public EntityUid PirateShip = EntityUid.Invalid;
|
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
|
public HashSet<EntityUid> InitialItems = new();
|
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
|
public double InitialShipValue;
|
|
|
|
|
|
|
2023-06-07 10:15:22 +03:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Path to antagonist alert sound.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("pirateAlertSound")]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public SoundSpecifier PirateAlertSound = new SoundPathSpecifier(
|
2023-06-07 10:15:22 +03:00
|
|
|
|
"/Audio/Ambience/Antag/pirate_start.ogg",
|
|
|
|
|
|
AudioParams.Default.WithVolume(4));
|
2023-04-25 20:23:14 -04:00
|
|
|
|
}
|