2023-04-03 13:13:48 +12:00
|
|
|
using Content.Shared.DoAfter;
|
2024-03-02 08:57:44 -05:00
|
|
|
using Content.Shared.Storage.EntitySystems;
|
2023-07-18 21:44:00 +10:00
|
|
|
using Robust.Shared.Audio;
|
2023-07-06 13:39:34 +10:00
|
|
|
using Robust.Shared.GameStates;
|
2023-04-03 13:13:48 +12:00
|
|
|
using Robust.Shared.Serialization;
|
2022-05-03 23:00:22 -04:00
|
|
|
|
2023-07-06 13:39:34 +10:00
|
|
|
namespace Content.Shared.Storage.Components;
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class DumpableDoAfterEvent : SimpleDoAfterEvent
|
2022-05-03 23:00:22 -04:00
|
|
|
{
|
2023-07-06 13:39:34 +10:00
|
|
|
}
|
2023-04-03 13:13:48 +12:00
|
|
|
|
2023-07-06 13:39:34 +10:00
|
|
|
/// <summary>
|
|
|
|
|
/// Lets you dump this container on the ground using a verb,
|
|
|
|
|
/// or when interacting with it on a disposal unit or placeable surface.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
|
|
|
public sealed partial class DumpableComponent : Component
|
|
|
|
|
{
|
2023-07-18 21:44:00 +10:00
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("soundDump"), AutoNetworkedField]
|
|
|
|
|
public SoundSpecifier? DumpSound = new SoundCollectionSpecifier("storageRustle");
|
|
|
|
|
|
2022-05-03 23:00:22 -04:00
|
|
|
/// <summary>
|
2023-07-06 13:39:34 +10:00
|
|
|
/// How long each item adds to the doafter.
|
2022-05-03 23:00:22 -04:00
|
|
|
/// </summary>
|
2023-07-06 13:39:34 +10:00
|
|
|
[DataField("delayPerItem"), AutoNetworkedField]
|
2024-03-02 08:57:44 -05:00
|
|
|
public TimeSpan DelayPerItem = TimeSpan.FromSeconds(SharedStorageSystem.AreaInsertDelayPerItem);
|
2022-05-03 23:00:22 -04:00
|
|
|
|
2023-07-06 13:39:34 +10:00
|
|
|
/// <summary>
|
|
|
|
|
/// The multiplier modifier
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("multiplier"), AutoNetworkedField]
|
|
|
|
|
public float Multiplier = 1.0f;
|
2022-05-03 23:00:22 -04:00
|
|
|
}
|