| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using Content.Shared.Atmos;
- using Robust.Shared.Map;
- namespace Content.Server.Atmos.EntitySystems
- {
- /* doesn't seem to be a use for this at the moment, so it's disabled
- public sealed class AtmosExposedSystem : EntitySystem
- {}
- */
- [ByRefEvent]
- public readonly struct AtmosExposedUpdateEvent
- {
- public readonly EntityCoordinates Coordinates;
- public readonly GasMixture GasMixture;
- public readonly TransformComponent Transform;
- public AtmosExposedUpdateEvent(EntityCoordinates coordinates, GasMixture mixture, TransformComponent transform)
- {
- Coordinates = coordinates;
- GasMixture = mixture;
- Transform = transform;
- }
- }
- /// <summary>
- /// Event that tries to query the mixture a certain entity is exposed to.
- /// This is mainly intended for use with entities inside of containers.
- /// This event is not raised for entities that are directly parented to the grid.
- /// </summary>
- [ByRefEvent]
- public struct AtmosExposedGetAirEvent
- {
- /// <summary>
- /// The entity we want to query this for.
- /// </summary>
- public readonly Entity<TransformComponent> Entity;
- /// <summary>
- /// The mixture that the entity is exposed to. Output parameter.
- /// </summary>
- public GasMixture? Gas = null;
- /// <summary>
- /// Whether to excite the mixture, if possible.
- /// </summary>
- public readonly bool Excite = false;
- /// <summary>
- /// Whether this event has been handled or not.
- /// Check this before changing anything.
- /// </summary>
- public bool Handled = false;
- public AtmosExposedGetAirEvent(Entity<TransformComponent> entity, bool excite = false)
- {
- Entity = entity;
- Excite = excite;
- }
- }
- }
|