2024-11-01 09:23:22 +03:00
|
|
|
using Robust.Shared.Audio;
|
|
|
|
|
|
2024-10-31 19:13:44 +03:00
|
|
|
namespace Content.Shared._CP14.DemiplaneTraveling;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// teleports a certain number of entities between demiplanes with a delay
|
|
|
|
|
/// </summary>
|
2024-11-01 09:23:22 +03:00
|
|
|
[RegisterComponent, AutoGenerateComponentPause]
|
2024-10-31 19:13:44 +03:00
|
|
|
public sealed partial class CP14DemiplaneRadiusTimedPasswayComponent : Component
|
|
|
|
|
{
|
|
|
|
|
[DataField]
|
|
|
|
|
public int MaxEntities = 3;
|
|
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public TimeSpan Delay = TimeSpan.FromSeconds(10f);
|
|
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public float Radius = 3f;
|
|
|
|
|
|
|
|
|
|
[DataField]
|
2024-11-01 09:23:22 +03:00
|
|
|
[AutoPausedField]
|
2024-10-31 19:13:44 +03:00
|
|
|
public TimeSpan NextTimeTeleport = TimeSpan.Zero;
|
2024-11-01 09:23:22 +03:00
|
|
|
|
|
|
|
|
[DataField("arrivalSound")]
|
|
|
|
|
public SoundSpecifier ArrivalSound = new SoundPathSpecifier("/Audio/Effects/teleport_arrival.ogg");
|
|
|
|
|
|
|
|
|
|
[DataField("departureSound")]
|
|
|
|
|
public SoundSpecifier DepartureSound = new SoundPathSpecifier("/Audio/Effects/teleport_departure.ogg");
|
2024-10-31 19:13:44 +03:00
|
|
|
}
|