Fix some friend access violations by allowing others access. (#8594)
Rename Friend attribute to Access attribute. Updates submodule to v0.21.0.0 as well.
This commit is contained in:
committed by
GitHub
parent
379555e933
commit
c5f7c61041
@@ -4,7 +4,7 @@ using Content.Server.NodeContainer.Nodes;
|
||||
namespace Content.Server.DeviceNetwork.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ApcNetworkSystem))]
|
||||
[Access(typeof(ApcNetworkSystem))]
|
||||
[ComponentProtoName("ApcNetworkConnection")]
|
||||
public sealed class ApcNetworkComponent : Component
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
namespace Content.Server.DeviceNetwork.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(DeviceNetworkSystem), typeof(DeviceNet))]
|
||||
[Access(typeof(DeviceNetworkSystem), typeof(DeviceNet))]
|
||||
public sealed class DeviceNetworkComponent : Component
|
||||
{
|
||||
public enum DeviceNetIdDefaults
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace Content.Server.DeviceNetwork.Components.Devices
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ApcNetSwitchSystem))]
|
||||
[Access(typeof(ApcNetSwitchSystem))]
|
||||
public sealed class ApcNetSwitchComponent : Component
|
||||
{
|
||||
[ViewVariables] public bool State;
|
||||
|
||||
Reference in New Issue
Block a user