Files
tbd-station-14/Content.Server/Shuttles/Components/StationEmergencyShuttleComponent.cs

61 lines
2.3 KiB
C#

using Content.Server.Shuttles.Systems;
using Robust.Shared.Audio;
using Robust.Shared.Serialization.TypeSerializers.Implementations;
using Robust.Shared.Utility;
namespace Content.Server.Shuttles.Components;
/// <summary>
/// This is used for controlling evacuation for a station.
/// </summary>
[RegisterComponent]
public sealed partial class StationEmergencyShuttleComponent : Component
{
/// <summary>
/// The emergency shuttle assigned to this station.
/// </summary>
[DataField, Access(typeof(ShuttleSystem), typeof(EmergencyShuttleSystem), Friend = AccessPermissions.ReadWrite)]
public EntityUid? EmergencyShuttle;
/// <summary>
/// Emergency shuttle map path for this station.
/// </summary>
[DataField("emergencyShuttlePath", customTypeSerializer: typeof(ResPathSerializer))]
public ResPath EmergencyShuttlePath { get; set; } = new("/Maps/Shuttles/emergency.yml");
/// <summary>
/// The announcement made when the shuttle has successfully docked with the station.
/// </summary>
public LocId DockedAnnouncement = "emergency-shuttle-docked";
/// <summary>
/// Sound played when the shuttle has successfully docked with the station.
/// </summary>
public SoundSpecifier DockedAudio = new SoundPathSpecifier("/Audio/Announcements/shuttle_dock.ogg");
/// <summary>
/// The announcement made when the shuttle is unable to dock and instead parks in nearby space.
/// </summary>
public LocId NearbyAnnouncement = "emergency-shuttle-nearby";
/// <summary>
/// Sound played when the shuttle is unable to dock and instead parks in nearby space.
/// </summary>
public SoundSpecifier NearbyAudio = new SoundPathSpecifier("/Audio/Misc/notice1.ogg");
/// <summary>
/// The announcement made when the shuttle is unable to find a station.
/// </summary>
public LocId FailureAnnouncement = "emergency-shuttle-good-luck";
/// <summary>
/// Sound played when the shuttle is unable to find a station.
/// </summary>
public SoundSpecifier FailureAudio = new SoundPathSpecifier("/Audio/Misc/notice1.ogg");
/// <summary>
/// Text appended to the docking announcement if the launch time has been extended.
/// </summary>
public LocId LaunchExtendedMessage = "emergency-shuttle-extended";
}