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;
}
}
///
/// Event that tries to query the mixture a certain entity is exposed to.
///
[ByRefEvent]
public struct AtmosExposedGetAirEvent
{
///
/// The entity we want to query this for.
///
public readonly EntityUid Entity;
///
/// The mixture that the entity is exposed to. Output parameter.
///
public GasMixture? Gas = null;
///
/// Whether to invalidate the mixture, if possible.
///
public bool Invalidate = false;
///
/// Whether this event has been handled or not.
/// Check this before changing anything.
///
public bool Handled = false;
public AtmosExposedGetAirEvent(EntityUid entity, bool invalidate = false)
{
Entity = entity;
Invalidate = invalidate;
}
}
}