mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-02 00:57:26 +00:00
* epsilon rewrite, first batch * As requested, moved the announcement folder to _DV folder, which only now includes deltaV or nyanotrasen specific audio files. Please double check the license.txt in Announcements/RoundEnd to see if I got it right. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix announcements again, oopsies * potentially fixed epsilon rule, i dunno * probably fix???? i dunno i only write goidacode * temporary attribution.yml file for epsilon.ogg * typo fix. not epsilon.ogg but code_epsilon.ogg * another accidental error oops * small test as removing my own attributions.yml file, i am going insane with these checks. * reverted the attributions.yml deletion * optional APC sound thing i wrote it incredibly stupid, going to do a stupider idea * Update attributions.yml * code saved by the angel named Toby * added and fixed several attributions.yml files * formatting fix oops * fix second time hopefully * i think i merged it correctly? * weird way of fixing attributions * With massive Quanteey's help and guidance, code cleanup once again. * sound file path errors fixed * another sound error fix * added spacing to comments, removed CancellationTokenSource like asked and made the poweroff sound louder * wiki page should be updated and removed epsilon mention in metashield rules * from elevated to emergency status * removed the funny event for 2 part * forgot to remove a thing * another fix * conflict fix * fix second time * untouching and commenting * untouching number 2 * untouched correctly? --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
61 lines
2.3 KiB
C#
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/_DV/Announcements/shuttle_dock.ogg"); // DeltaV: custom announcer
|
|
|
|
/// <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";
|
|
}
|