Revert "Fix some friend access violations by allowing others access. (#8594) (#8703)

This commit is contained in:
Pieter-Jan Briers
2022-06-07 13:44:31 +02:00
committed by GitHub
parent c5f7c61041
commit cecf87997b
162 changed files with 169 additions and 197 deletions

View File

@@ -4,7 +4,7 @@ using Content.Shared.Atmos;
namespace Content.Server.Atmos.Piping.Trinary.Components
{
[RegisterComponent]
[Access(typeof(GasMixerSystem))]
[Friend(typeof(GasMixerSystem))]
public sealed class GasMixerComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]

View File

@@ -4,7 +4,7 @@ using Content.Shared.Atmos;
namespace Content.Server.Atmos.Piping.Unary.Components
{
[RegisterComponent]
[Access(typeof(GasOutletInjectorSystem))]
[Friend(typeof(GasOutletInjectorSystem))]
public sealed class GasOutletInjectorComponent : Component
{

View File

@@ -6,7 +6,7 @@ using Content.Shared.Atmos.Piping.Unary.Components;
namespace Content.Server.Atmos.Piping.Unary.Components
{
[RegisterComponent]
[Access(typeof(GasVentScrubberSystem))]
[Friend(typeof(GasVentScrubberSystem))]
public sealed class GasVentScrubberComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Atmos
/// Internal Atmos class that stores data about the atmosphere in a grid.
/// You shouldn't use this directly, use <see cref="AtmosphereSystem"/> instead.
/// </summary>
[Access(typeof(AtmosphereSystem))]
[Friend(typeof(AtmosphereSystem))]
public sealed class TileAtmosphere : IGasMixtureHolder
{
[ViewVariables]
@@ -48,7 +48,7 @@ namespace Content.Server.Atmos
[ViewVariables]
public AtmosDirection AdjacentBits = AtmosDirection.Invalid;
[ViewVariables, Access(typeof(AtmosphereSystem), Other = AccessPermissions.ReadExecute)]
[ViewVariables]
public MonstermosInfo MonstermosInfo;
[ViewVariables]
@@ -78,7 +78,6 @@ namespace Content.Server.Atmos
/// This can be immutable if the tile is spaced.
/// </summary>
[ViewVariables]
[Access(typeof(AtmosphereSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
public GasMixture? Air { get; set; }
GasMixture IGasMixtureHolder.Air