DumpableComponent.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using Content.Shared.DoAfter;
  2. using Content.Shared.Storage.EntitySystems;
  3. using Robust.Shared.Audio;
  4. using Robust.Shared.GameStates;
  5. using Robust.Shared.Serialization;
  6. namespace Content.Shared.Storage.Components;
  7. [Serializable, NetSerializable]
  8. public sealed partial class DumpableDoAfterEvent : SimpleDoAfterEvent
  9. {
  10. }
  11. /// <summary>
  12. /// Lets you dump this container on the ground using a verb,
  13. /// or when interacting with it on a disposal unit or placeable surface.
  14. /// </summary>
  15. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  16. public sealed partial class DumpableComponent : Component
  17. {
  18. [ViewVariables(VVAccess.ReadWrite), DataField("soundDump"), AutoNetworkedField]
  19. public SoundSpecifier? DumpSound = new SoundCollectionSpecifier("storageRustle");
  20. /// <summary>
  21. /// How long each item adds to the doafter.
  22. /// </summary>
  23. [DataField("delayPerItem"), AutoNetworkedField]
  24. public TimeSpan DelayPerItem = TimeSpan.FromSeconds(SharedStorageSystem.AreaInsertDelayPerItem);
  25. /// <summary>
  26. /// The multiplier modifier
  27. /// </summary>
  28. [DataField("multiplier"), AutoNetworkedField]
  29. public float Multiplier = 1.0f;
  30. }