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

@@ -7,7 +7,7 @@ namespace Content.Server.Fluids.Components;
/// <summary>
/// For entities that can clean up puddles
/// </summary>
[RegisterComponent, Access(typeof(MoppingSystem))]
[RegisterComponent, Friend(typeof(MoppingSystem))]
public sealed class AbsorbentComponent : Component
{
public const string SolutionName = "absorbed";

View File

@@ -4,7 +4,7 @@ using Content.Shared.FixedPoint;
namespace Content.Server.Fluids.Components
{
[RegisterComponent]
[Access(typeof(EvaporationSystem))]
[Friend(typeof(EvaporationSystem))]
public sealed class EvaporationComponent : Component
{
/// <summary>

View File

@@ -4,7 +4,7 @@ using Content.Shared.Chemistry.Components;
namespace Content.Server.Fluids.Components;
[RegisterComponent]
[Access(typeof(FluidSpreaderSystem))]
[Friend(typeof(FluidSpreaderSystem))]
public sealed class FluidSpreaderComponent : Component
{
[ViewVariables]

View File

@@ -8,7 +8,7 @@ namespace Content.Server.Fluids.Components
/// Puddle on a floor
/// </summary>
[RegisterComponent]
[Access(typeof(PuddleSystem))]
[Friend(typeof(PuddleSystem))]
public sealed class PuddleComponent : Component
{
public const string DefaultSolutionName = "puddle";

View File

@@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Server.Fluids.Components;
[RegisterComponent]
[Access(typeof(SpraySystem))]
[Friend(typeof(SpraySystem))]
public sealed class SprayComponent : Component
{
public const string SolutionName = "spray";
@@ -32,6 +32,5 @@ public sealed class SprayComponent : Component
[DataField("impulse")] public float Impulse;
[DataField("spraySound", required: true)]
[Access(typeof(SpraySystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
public SoundSpecifier SpraySound { get; } = default!;
}