EntityStorageComponent.cs 625 B

123456789101112131415161718
  1. using Content.Server.Atmos;
  2. using Content.Shared.Atmos;
  3. using Content.Shared.Storage.Components;
  4. using Robust.Shared.GameStates;
  5. namespace Content.Server.Storage.Components;
  6. [RegisterComponent]
  7. public sealed partial class EntityStorageComponent : SharedEntityStorageComponent, IGasMixtureHolder
  8. {
  9. /// <summary>
  10. /// Gas currently contained in this entity storage.
  11. /// None while open. Grabs gas from the atmosphere when closed, and exposes any entities inside to it.
  12. /// </summary>
  13. [ViewVariables(VVAccess.ReadWrite)]
  14. [DataField("air")]
  15. public GasMixture Air { get; set; } = new (200);
  16. }