Revert "Revert "Fix some friend access violations by allowing others access. (#8594) (#8703)" (working this time) (#8704)
This commit is contained in:
committed by
GitHub
parent
cecf87997b
commit
a323ba8223
@@ -3,7 +3,7 @@ using Content.Shared.DoAfter;
|
||||
|
||||
namespace Content.Client.DoAfter
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(DoAfterSystem))]
|
||||
[RegisterComponent, Access(typeof(DoAfterSystem))]
|
||||
public sealed class DoAfterComponent : SharedDoAfterComponent
|
||||
{
|
||||
public readonly Dictionary<byte, ClientDoAfter> DoAfters = new();
|
||||
|
||||
@@ -2,5 +2,5 @@ using Content.Shared.Explosion;
|
||||
|
||||
namespace Content.Client.Explosion;
|
||||
|
||||
[RegisterComponent, Friend(typeof(TriggerSystem))]
|
||||
[RegisterComponent, Access(typeof(TriggerSystem))]
|
||||
public sealed class TriggerOnProximityComponent : SharedTriggerOnProximityComponent {}
|
||||
|
||||
@@ -5,7 +5,7 @@ using Robust.Shared.GameObjects;
|
||||
namespace Content.Client.Flash
|
||||
{
|
||||
[ComponentReference(typeof(SharedFlashableComponent))]
|
||||
[RegisterComponent, Friend(typeof(FlashSystem))]
|
||||
[RegisterComponent, Access(typeof(FlashSystem))]
|
||||
public sealed class FlashableComponent : SharedFlashableComponent
|
||||
{
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Content.Client.Hands
|
||||
{
|
||||
[RegisterComponent]
|
||||
[ComponentReference(typeof(SharedHandsComponent))]
|
||||
[Friend(typeof(HandsSystem))]
|
||||
[Access(typeof(HandsSystem))]
|
||||
public sealed class HandsComponent : SharedHandsComponent
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Content.Client.Inventory
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[ComponentReference(typeof(InventoryComponent))]
|
||||
[Friend(typeof(ClientInventorySystem))]
|
||||
[Access(typeof(ClientInventorySystem))]
|
||||
public sealed class ClientInventoryComponent : InventoryComponent
|
||||
{
|
||||
public Control BottomLeftButtons = default!;
|
||||
@@ -34,6 +34,7 @@ namespace Content.Client.Inventory
|
||||
/// Data about the current layers that have been added to the players sprite due to the items in each equipment slot.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[Access(typeof(ClientInventorySystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends
|
||||
public readonly Dictionary<string, HashSet<string>> VisualLayerKeys = new();
|
||||
|
||||
public bool AttachedToGameHud;
|
||||
|
||||
@@ -9,7 +9,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer;
|
||||
namespace Content.Client.Light.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(HandheldLightSystem))]
|
||||
[Access(typeof(HandheldLightSystem))]
|
||||
public sealed class HandheldLightComponent : SharedHandheldLightComponent, IItemStatus
|
||||
{
|
||||
public byte? Level;
|
||||
|
||||
@@ -3,6 +3,6 @@ using Content.Shared.Climbing;
|
||||
namespace Content.Client.Movement.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ClimbSystem))]
|
||||
[Access(typeof(ClimbSystem))]
|
||||
[ComponentReference(typeof(SharedClimbableComponent))]
|
||||
public sealed class ClimbableComponent : SharedClimbableComponent { }
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
namespace Content.Client.Movement.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ClimbSystem))]
|
||||
[Access(typeof(ClimbSystem))]
|
||||
[ComponentReference(typeof(SharedClimbingComponent))]
|
||||
public sealed class ClimbingComponent : SharedClimbingComponent { }
|
||||
|
||||
@@ -8,7 +8,7 @@ using Robust.Shared.Timing;
|
||||
|
||||
namespace Content.Client.Stack
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(StackSystem), typeof(StatusControl))]
|
||||
[RegisterComponent, Access(typeof(StackSystem), typeof(StatusControl))]
|
||||
[ComponentReference(typeof(SharedStackComponent))]
|
||||
public sealed class StackComponent : SharedStackComponent, IItemStatus
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@ using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Client.Tools.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(ToolSystem), typeof(StatusControl))]
|
||||
[RegisterComponent, Access(typeof(ToolSystem), typeof(StatusControl))]
|
||||
public sealed class WelderComponent : SharedWelderComponent, IItemStatus
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Content.Client.Weapons.Ranged.Components;
|
||||
/// <summary>
|
||||
/// Visualizer for gun mag presence; can change states based on ammo count or toggle visibility entirely.
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(GunSystem))]
|
||||
[RegisterComponent, Access(typeof(GunSystem))]
|
||||
public sealed class MagazineVisualsComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -2,7 +2,7 @@ using Content.Client.Weapons.Ranged.Systems;
|
||||
|
||||
namespace Content.Client.Weapons.Ranged.Components;
|
||||
|
||||
[RegisterComponent, Friend(typeof(GunSystem))]
|
||||
[RegisterComponent, Access(typeof(GunSystem))]
|
||||
public sealed class SpentAmmoVisualsComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
namespace Content.Server.AI.Pathfinding;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(PathfindingSystem))]
|
||||
[Access(typeof(PathfindingSystem))]
|
||||
public sealed class GridPathfindingComponent : Component, IPathfindingGraph
|
||||
{
|
||||
public Dictionary<Vector2i, PathfindingChunk> Graph = new();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Content.Server.Administration.Components;
|
||||
|
||||
[RegisterComponent, Friend(typeof(BufferingSystem))]
|
||||
[RegisterComponent, Access(typeof(BufferingSystem))]
|
||||
public sealed class BufferingComponent : Component
|
||||
{
|
||||
[DataField("minBufferTime")]
|
||||
|
||||
@@ -3,7 +3,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
|
||||
namespace Content.Server.Advertise
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(AdvertiseSystem))]
|
||||
[RegisterComponent, Access(typeof(AdvertiseSystem))]
|
||||
public sealed class AdvertiseComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
|
||||
namespace Content.Server.Animals.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(UdderSystem))]
|
||||
[RegisterComponent, Access(typeof(UdderSystem))]
|
||||
internal sealed class UdderComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -4,7 +4,7 @@ using Content.Shared.Atmos;
|
||||
namespace Content.Server.Atmos.Piping.Trinary.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(GasMixerSystem))]
|
||||
[Access(typeof(GasMixerSystem))]
|
||||
public sealed class GasMixerComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
|
||||
@@ -4,7 +4,7 @@ using Content.Shared.Atmos;
|
||||
namespace Content.Server.Atmos.Piping.Unary.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(GasOutletInjectorSystem))]
|
||||
[Access(typeof(GasOutletInjectorSystem))]
|
||||
public sealed class GasOutletInjectorComponent : Component
|
||||
{
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ using Content.Shared.Atmos.Piping.Unary.Components;
|
||||
namespace Content.Server.Atmos.Piping.Unary.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(GasVentScrubberSystem))]
|
||||
[Access(typeof(GasVentScrubberSystem))]
|
||||
public sealed class GasVentScrubberComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
|
||||
@@ -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>
|
||||
[Friend(typeof(AtmosphereSystem))]
|
||||
[Access(typeof(AtmosphereSystem))]
|
||||
public sealed class TileAtmosphere : IGasMixtureHolder
|
||||
{
|
||||
[ViewVariables]
|
||||
@@ -48,7 +48,7 @@ namespace Content.Server.Atmos
|
||||
[ViewVariables]
|
||||
public AtmosDirection AdjacentBits = AtmosDirection.Invalid;
|
||||
|
||||
[ViewVariables]
|
||||
[ViewVariables, Access(typeof(AtmosphereSystem), Other = AccessPermissions.ReadExecute)]
|
||||
public MonstermosInfo MonstermosInfo;
|
||||
|
||||
[ViewVariables]
|
||||
@@ -78,6 +78,7 @@ 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
|
||||
|
||||
@@ -8,7 +8,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
|
||||
namespace Content.Server.Body.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(BloodstreamSystem))]
|
||||
[RegisterComponent, Access(typeof(BloodstreamSystem))]
|
||||
public sealed class BloodstreamComponent : Component
|
||||
{
|
||||
public static string DefaultChemicalsSolutionName = "chemicals";
|
||||
@@ -129,6 +129,7 @@ namespace Content.Server.Body.Components
|
||||
/// Internal solution for reagent storage
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[Access(typeof(BloodstreamSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
|
||||
public Solution ChemicalSolution = default!;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Content.Server.Body.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(BrainSystem))]
|
||||
[RegisterComponent, Access(typeof(BrainSystem))]
|
||||
public sealed class BrainComponent : Component
|
||||
{
|
||||
}
|
||||
|
||||
@@ -5,10 +5,11 @@ using Content.Shared.Chemistry.Components;
|
||||
|
||||
namespace Content.Server.Body.Components;
|
||||
|
||||
[RegisterComponent, Friend(typeof(LungSystem))]
|
||||
[RegisterComponent, Access(typeof(LungSystem))]
|
||||
public sealed class LungComponent : Component
|
||||
{
|
||||
[DataField("air")]
|
||||
[Access(typeof(LungSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
|
||||
public GasMixture Air { get; set; } = new()
|
||||
{
|
||||
Volume = 6,
|
||||
@@ -16,5 +17,6 @@ public sealed class LungComponent : Component
|
||||
};
|
||||
|
||||
[ViewVariables]
|
||||
[Access(typeof(LungSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
|
||||
public Solution LungSolution = default!;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Content.Server.Body.Components
|
||||
/// <summary>
|
||||
/// Handles metabolizing various reagents with given effects.
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(MetabolizerSystem))]
|
||||
[RegisterComponent, Access(typeof(MetabolizerSystem))]
|
||||
public sealed class MetabolizerComponent : Component
|
||||
{
|
||||
public float AccumulatedFrametime = 0.0f;
|
||||
@@ -40,6 +40,7 @@ namespace Content.Server.Body.Components
|
||||
/// List of metabolizer types that this organ is. ex. Human, Slime, Felinid, w/e.
|
||||
/// </summary>
|
||||
[DataField("metabolizerTypes", customTypeSerializer:typeof(PrototypeIdHashSetSerializer<MetabolizerTypePrototype>))]
|
||||
[Access(typeof(MetabolizerSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
|
||||
public HashSet<string>? MetabolizerTypes = null;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -3,7 +3,7 @@ using Content.Shared.Damage;
|
||||
|
||||
namespace Content.Server.Body.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(RespiratorSystem))]
|
||||
[RegisterComponent, Access(typeof(RespiratorSystem))]
|
||||
public sealed class RespiratorComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -3,7 +3,7 @@ using Content.Shared.FixedPoint;
|
||||
|
||||
namespace Content.Server.Body.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(StomachSystem))]
|
||||
[RegisterComponent, Access(typeof(StomachSystem))]
|
||||
public sealed class StomachComponent : Component
|
||||
{
|
||||
public float AccumulatedFrameTime;
|
||||
|
||||
@@ -3,7 +3,7 @@ using Content.Server.Body.Systems;
|
||||
namespace Content.Server.Body.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ThermalRegulatorSystem))]
|
||||
[Access(typeof(ThermalRegulatorSystem))]
|
||||
public sealed class ThermalRegulatorComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Content.Server.Botany.Components;
|
||||
// TODO: This should probably be merged with SliceableFood somehow or made into a more generic Choppable.
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(LogSystem))]
|
||||
[Access(typeof(LogSystem))]
|
||||
public sealed class LogComponent : Component
|
||||
{
|
||||
[DataField("spawnedPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
|
||||
@@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
namespace Content.Server.Botany.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(BotanySystem))]
|
||||
[Access(typeof(BotanySystem))]
|
||||
public sealed class ProduceComponent : Component
|
||||
{
|
||||
[DataField("targetSolution")] public string SolutionName { get; set; } = "food";
|
||||
|
||||
@@ -3,7 +3,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
|
||||
namespace Content.Server.Botany.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(BotanySystem))]
|
||||
[RegisterComponent, Access(typeof(BotanySystem))]
|
||||
public sealed class SeedComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -3,7 +3,7 @@ using Content.Server.Botany.Systems;
|
||||
namespace Content.Server.Botany.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(SeedExtractorSystem))]
|
||||
[Access(typeof(SeedExtractorSystem))]
|
||||
public sealed class SeedExtractorComponent : Component
|
||||
{
|
||||
// TODO: Upgradeable machines.
|
||||
|
||||
@@ -63,7 +63,7 @@ public struct SeedChemQuantity
|
||||
|
||||
// TODO reduce the number of friends to a reasonable level. Requires ECS-ing things like plant holder component.
|
||||
[Virtual, DataDefinition]
|
||||
[Friend(typeof(BotanySystem), typeof(PlantHolderSystem), typeof(SeedExtractorSystem), typeof(PlantHolderComponent))]
|
||||
[Access(typeof(BotanySystem), typeof(PlantHolderSystem), typeof(SeedExtractorSystem), typeof(PlantHolderComponent))]
|
||||
public class SeedData
|
||||
{
|
||||
#region Tracking
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Content.Server.Cargo.Components
|
||||
/// <summary>
|
||||
/// Handles teleporting in requested cargo after the specified delay.
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(CargoSystem))]
|
||||
[RegisterComponent, Access(typeof(CargoSystem))]
|
||||
public sealed class CargoTelepadComponent : SharedCargoTelepadComponent
|
||||
{
|
||||
[DataField("delay")]
|
||||
|
||||
@@ -4,11 +4,12 @@ using Content.Shared.Chemistry.Components;
|
||||
namespace Content.Server.Chemistry.Components.SolutionManager
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(SolutionContainerSystem))]
|
||||
[Access(typeof(SolutionContainerSystem))]
|
||||
public sealed class SolutionContainerManagerComponent : Component
|
||||
{
|
||||
[ViewVariables]
|
||||
[DataField("solutions")]
|
||||
[Access(typeof(SolutionContainerSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
|
||||
public readonly Dictionary<string, Solution> Solutions = new();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Content.Server.Climbing.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[ComponentReference(typeof(SharedClimbingComponent))]
|
||||
[Friend(typeof(ClimbSystem))]
|
||||
[Access(typeof(ClimbSystem))]
|
||||
public sealed class ClimbingComponent : SharedClimbingComponent
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.Climbing.Components;
|
||||
/// This is a really entity-specific behavior, so opted to make it
|
||||
/// not very generalized with regards to naming.
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(ClimbSystem))]
|
||||
[RegisterComponent, Access(typeof(ClimbSystem))]
|
||||
public sealed class GlassTableComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -3,7 +3,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
|
||||
namespace Content.Server.Construction.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(ConstructionSystem))]
|
||||
[RegisterComponent, Access(typeof(ConstructionSystem))]
|
||||
public sealed class ConstructionComponent : Component
|
||||
{
|
||||
[DataField("graph", required:true, customTypeSerializer:typeof(PrototypeIdSerializer<ConstructionGraphPrototype>))]
|
||||
|
||||
@@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
namespace Content.Server.Conveyor
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ConveyorSystem))]
|
||||
[Access(typeof(ConveyorSystem))]
|
||||
public sealed class ConveyorComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -3,7 +3,7 @@ using Content.Shared.Damage;
|
||||
|
||||
namespace Content.Server.Damage.Components
|
||||
{
|
||||
[Friend(typeof(DamageOtherOnHitSystem))]
|
||||
[Access(typeof(DamageOtherOnHitSystem))]
|
||||
[RegisterComponent]
|
||||
public sealed class DamageOtherOnHitComponent : Component
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -2,7 +2,7 @@ using Content.Shared.Sound;
|
||||
|
||||
namespace Content.Server.Dice
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(DiceSystem))]
|
||||
[RegisterComponent, Access(typeof(DiceSystem))]
|
||||
public sealed class DiceComponent : Component
|
||||
{
|
||||
[ViewVariables]
|
||||
|
||||
@@ -2,7 +2,7 @@ using Content.Shared.DoAfter;
|
||||
|
||||
namespace Content.Server.DoAfter
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(DoAfterSystem))]
|
||||
[RegisterComponent, Access(typeof(DoAfterSystem))]
|
||||
public sealed class DoAfterComponent : SharedDoAfterComponent
|
||||
{
|
||||
public readonly Dictionary<DoAfter, byte> DoAfters = new();
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/// Component for virtual electrocution entities (representing an in-progress shock).
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ElectrocutionSystem))]
|
||||
[Access(typeof(ElectrocutionSystem))]
|
||||
public sealed class ElectrocutionComponent : Component
|
||||
{
|
||||
[DataField("timeLeft")] public float TimeLeft { get; set; }
|
||||
|
||||
@@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
|
||||
namespace Content.Server.Explosion.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(ClusterGrenadeSystem))]
|
||||
[RegisterComponent, Access(typeof(ClusterGrenadeSystem))]
|
||||
public sealed class ClusterGrenadeComponent : Component
|
||||
{
|
||||
public Container GrenadesContainer = default!;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Content.Server.Explosion.Components;
|
||||
/// significantly reduce the damage, but shouldn't be silly overpowered in regular combat.
|
||||
/// </remarks>
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ExplosionSystem))]
|
||||
[Access(typeof(ExplosionSystem))]
|
||||
public sealed class ExplosionResistanceComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -3,7 +3,7 @@ using Content.Shared.Sound;
|
||||
namespace Content.Server.Extinguisher;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(FireExtinguisherSystem))]
|
||||
[Access(typeof(FireExtinguisherSystem))]
|
||||
public sealed class FireExtinguisherComponent : Component
|
||||
{
|
||||
[DataField("refillSound")] public SoundSpecifier RefillSound = new SoundPathSpecifier("/Audio/Effects/refill.ogg");
|
||||
|
||||
@@ -2,7 +2,7 @@ using Content.Shared.Sound;
|
||||
|
||||
namespace Content.Server.Flash.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(FlashSystem))]
|
||||
[RegisterComponent, Access(typeof(FlashSystem))]
|
||||
public sealed class FlashComponent : Component
|
||||
{
|
||||
[DataField("duration")]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace Content.Server.Flash.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(FlashSystem))]
|
||||
[RegisterComponent, Access(typeof(FlashSystem))]
|
||||
public sealed class FlashImmunityComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
|
||||
@@ -3,7 +3,7 @@ using Content.Shared.Flash;
|
||||
namespace Content.Server.Flash.Components
|
||||
{
|
||||
[ComponentReference(typeof(SharedFlashableComponent))]
|
||||
[RegisterComponent, Friend(typeof(FlashSystem))]
|
||||
[RegisterComponent, Access(typeof(FlashSystem))]
|
||||
public sealed class FlashableComponent : SharedFlashableComponent
|
||||
{
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.Fluids.Components;
|
||||
/// <summary>
|
||||
/// For entities that can clean up puddles
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(MoppingSystem))]
|
||||
[RegisterComponent, Access(typeof(MoppingSystem))]
|
||||
public sealed class AbsorbentComponent : Component
|
||||
{
|
||||
public const string SolutionName = "absorbed";
|
||||
|
||||
@@ -4,7 +4,7 @@ using Content.Shared.FixedPoint;
|
||||
namespace Content.Server.Fluids.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(EvaporationSystem))]
|
||||
[Access(typeof(EvaporationSystem))]
|
||||
public sealed class EvaporationComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -4,7 +4,7 @@ using Content.Shared.Chemistry.Components;
|
||||
namespace Content.Server.Fluids.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(FluidSpreaderSystem))]
|
||||
[Access(typeof(FluidSpreaderSystem))]
|
||||
public sealed class FluidSpreaderComponent : Component
|
||||
{
|
||||
[ViewVariables]
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Content.Server.Fluids.Components
|
||||
/// Puddle on a floor
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(PuddleSystem))]
|
||||
[Access(typeof(PuddleSystem))]
|
||||
public sealed class PuddleComponent : Component
|
||||
{
|
||||
public const string DefaultSolutionName = "puddle";
|
||||
|
||||
@@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
namespace Content.Server.Fluids.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(SpraySystem))]
|
||||
[Access(typeof(SpraySystem))]
|
||||
public sealed class SprayComponent : Component
|
||||
{
|
||||
public const string SolutionName = "spray";
|
||||
@@ -32,5 +32,6 @@ 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!;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ using Content.Shared.Whitelist;
|
||||
namespace Content.Server.Gatherable.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(GatherableSystem))]
|
||||
[Access(typeof(GatherableSystem))]
|
||||
public sealed class GatherableComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -3,7 +3,7 @@ using Robust.Server.Player;
|
||||
|
||||
namespace Content.Server.Ghost.Roles.Components
|
||||
{
|
||||
[Friend(typeof(GhostRoleSystem))]
|
||||
[Access(typeof(GhostRoleSystem))]
|
||||
public abstract class GhostRoleComponent : Component
|
||||
{
|
||||
[DataField("name")] public string _roleName = "Unknown";
|
||||
@@ -21,6 +21,7 @@ namespace Content.Server.Ghost.Roles.Components
|
||||
// We do this so updating RoleName and RoleDescription in VV updates the open EUIs.
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[Access(typeof(GhostRoleSystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends
|
||||
public string RoleName
|
||||
{
|
||||
get => _roleName;
|
||||
@@ -32,6 +33,7 @@ namespace Content.Server.Ghost.Roles.Components
|
||||
}
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[Access(typeof(GhostRoleSystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends
|
||||
public string RoleDescription
|
||||
{
|
||||
get => _roleDescription;
|
||||
@@ -43,6 +45,7 @@ namespace Content.Server.Ghost.Roles.Components
|
||||
}
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[Access(typeof(GhostRoleSystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends
|
||||
public string RoleRules
|
||||
{
|
||||
get => _roleRules;
|
||||
|
||||
@@ -4,7 +4,7 @@ using Content.Shared.Gravity;
|
||||
namespace Content.Server.Gravity
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(GravityGeneratorSystem))]
|
||||
[Access(typeof(GravityGeneratorSystem))]
|
||||
public sealed class GravityGeneratorComponent : SharedGravityGeneratorComponent
|
||||
{
|
||||
// 1% charge per second.
|
||||
|
||||
@@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
|
||||
namespace Content.Server.HealthExaminable;
|
||||
|
||||
[RegisterComponent, Friend(typeof(HealthExaminableSystem))]
|
||||
[RegisterComponent, Access(typeof(HealthExaminableSystem))]
|
||||
public sealed class HealthExaminableComponent : Component
|
||||
{
|
||||
public List<FixedPoint2> Thresholds = new()
|
||||
|
||||
@@ -2,7 +2,7 @@ using Content.Shared.Sound;
|
||||
|
||||
namespace Content.Server.Interaction.Components;
|
||||
|
||||
[RegisterComponent, Friend(typeof(InteractionPopupSystem))]
|
||||
[RegisterComponent, Access(typeof(InteractionPopupSystem))]
|
||||
public sealed class InteractionPopupComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Content.Server.Jobs
|
||||
var component = (Component) factory.GetComponent(name);
|
||||
component.Owner = mob;
|
||||
|
||||
var copied = (Component?) serializationManager.Copy(data, component, null);
|
||||
var copied = (Component?) serializationManager.Copy(data.Component, component, null);
|
||||
if (copied != null)
|
||||
entityManager.AddComponent(mob, copied);
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.Kitchen.Components
|
||||
/// Tag component that denotes an entity as Extractable
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ReagentGrinderSystem))]
|
||||
[Access(typeof(ReagentGrinderSystem))]
|
||||
public sealed class ExtractableComponent : Component
|
||||
{
|
||||
[ViewVariables]
|
||||
|
||||
@@ -4,7 +4,7 @@ using Content.Shared.Kitchen.Components;
|
||||
|
||||
namespace Content.Server.Kitchen.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(KitchenSpikeSystem))]
|
||||
[RegisterComponent, Access(typeof(KitchenSpikeSystem))]
|
||||
public sealed class KitchenSpikeComponent : SharedKitchenSpikeComponent
|
||||
{
|
||||
public List<string>? PrototypesToSpawn;
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Content.Server.Kudzu;
|
||||
/// ONLY USE THIS FOR ANCHORED OBJECTS. An error will be logged if not anchored/static.
|
||||
/// Currently does not support growing in space.
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(SpreaderSystem))]
|
||||
[RegisterComponent, Access(typeof(SpreaderSystem))]
|
||||
public sealed class SpreaderComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Content.Server.Light.Components
|
||||
/// <summary>
|
||||
/// Component that represents an emergency light, it has an internal battery that charges when the power is on.
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(EmergencyLightSystem))]
|
||||
[RegisterComponent, Access(typeof(EmergencyLightSystem))]
|
||||
public sealed class EmergencyLightComponent : SharedEmergencyLightComponent
|
||||
{
|
||||
[ViewVariables]
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Content.Server.Light.Components
|
||||
/// Component that represents a powered handheld light source which can be toggled on and off.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(HandheldLightSystem))]
|
||||
[Access(typeof(HandheldLightSystem))]
|
||||
public sealed class HandheldLightComponent : SharedHandheldLightComponent
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("wattage")] public float Wattage { get; set; } = .8f;
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.Light.Components
|
||||
/// <summary>
|
||||
/// Component that represents a light bulb. Can be broken, or burned, which turns them mostly useless.
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(LightBulbSystem))]
|
||||
[RegisterComponent, Access(typeof(LightBulbSystem))]
|
||||
public sealed class LightBulbComponent : Component
|
||||
{
|
||||
[DataField("color")]
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Content.Server.Light.Components
|
||||
/// Enables or disables a pointlight depending on the powered
|
||||
/// state of an entity.
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(PoweredLightSystem))]
|
||||
[RegisterComponent, Access(typeof(PoweredLightSystem))]
|
||||
public sealed class LitOnPoweredComponent : Component
|
||||
{
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ using Content.Server.Light.EntitySystems;
|
||||
namespace Content.Server.Light.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(MatchstickSystem))]
|
||||
[Access(typeof(MatchstickSystem))]
|
||||
public sealed class MatchstickComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Content.Server.Light.Components
|
||||
/// <summary>
|
||||
/// Component that represents a wall light. It has a light bulb that can be replaced when broken.
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(PoweredLightSystem))]
|
||||
[RegisterComponent, Access(typeof(PoweredLightSystem))]
|
||||
public sealed class PoweredLightComponent : Component
|
||||
{
|
||||
[DataField("burnHandSound")]
|
||||
|
||||
@@ -3,7 +3,7 @@ using Content.Server.MachineLinking.System;
|
||||
namespace Content.Server.MachineLinking.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(SignalLinkerSystem))]
|
||||
[Access(typeof(SignalLinkerSystem))]
|
||||
public sealed class SignalReceiverComponent : Component
|
||||
{
|
||||
[DataField("inputs")]
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Content.Server.MachineLinking.Components
|
||||
}
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(SignalLinkerSystem))]
|
||||
[Access(typeof(SignalLinkerSystem))]
|
||||
public sealed class SignalTransmitterComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
@@ -32,6 +32,7 @@ namespace Content.Server.MachineLinking.Components
|
||||
public float TransmissionRange = 30f;
|
||||
|
||||
[DataField("outputs")]
|
||||
[Access(typeof(SignalLinkerSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
|
||||
public Dictionary<string, List<PortIdentifier>> Outputs = new();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ using Content.Shared.Medical.SuitSensor;
|
||||
namespace Content.Server.Medical.CrewMonitoring
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(CrewMonitoringConsoleSystem))]
|
||||
[Access(typeof(CrewMonitoringConsoleSystem))]
|
||||
public sealed class CrewMonitoringConsoleComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.Medical.SuitSensors
|
||||
/// If enabled, will report to crew monitoring console owners position and status.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(SuitSensorSystem))]
|
||||
[Access(typeof(SuitSensorSystem))]
|
||||
public sealed class SuitSensorComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -3,13 +3,14 @@ namespace Content.Server.Mind.Components
|
||||
/// <summary>
|
||||
/// Stores a <see cref="Server.Mind.Mind"/> on a mob.
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(MindSystem))]
|
||||
[RegisterComponent, Access(typeof(MindSystem))]
|
||||
public sealed class MindComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The mind controlling this mob. Can be null.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[Access(typeof(MindSystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends
|
||||
public Mind? Mind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -72,7 +72,8 @@ namespace Content.Server.Mind
|
||||
/// The time of death for this Mind.
|
||||
/// Can be null - will be null if the Mind is not considered "dead".
|
||||
/// </summary>
|
||||
[ViewVariables] public TimeSpan? TimeOfDeath { get; set; } = null;
|
||||
[ViewVariables]
|
||||
public TimeSpan? TimeOfDeath { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// The component currently owned by this mind.
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Content.Server.Nuke
|
||||
/// To activate it, user needs to insert an authorization disk and enter a secret code.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(NukeSystem))]
|
||||
[Access(typeof(NukeSystem))]
|
||||
public sealed class NukeComponent : SharedNukeComponent
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Content.Server.Nutrition.Components
|
||||
/// <summary>
|
||||
/// A disposable, single-use smokable.
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(SmokingSystem))]
|
||||
[RegisterComponent, Access(typeof(SmokingSystem))]
|
||||
public sealed class CigarComponent : Component
|
||||
{
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ using System.Threading;
|
||||
namespace Content.Server.Nutrition.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(DrinkSystem))]
|
||||
[Access(typeof(DrinkSystem))]
|
||||
public sealed class DrinkComponent : Component
|
||||
{
|
||||
[DataField("solution")]
|
||||
|
||||
@@ -8,7 +8,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
|
||||
namespace Content.Server.Nutrition.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(FoodSystem))]
|
||||
[RegisterComponent, Access(typeof(FoodSystem))]
|
||||
public sealed class FoodComponent : Component
|
||||
{
|
||||
[DataField("solution")]
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Content.Server.Nutrition.Components
|
||||
/// <summary>
|
||||
/// A food item with this component will be forcefully fed to anyone
|
||||
/// </summary>
|
||||
[RegisterComponent, Friend(typeof(ForcefeedOnCollideSystem))]
|
||||
[RegisterComponent, Access(typeof(ForcefeedOnCollideSystem))]
|
||||
public sealed class ForcefeedOnCollideComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.Nutrition.EntitySystems;
|
||||
/// In the event that more head-wear & mask functionality is added (like identity systems, or raising/lowering of
|
||||
/// masks), then this component might become redundant.
|
||||
/// </remarks>
|
||||
[RegisterComponent, Friend(typeof(FoodSystem), typeof(DrinkSystem))]
|
||||
[RegisterComponent, Access(typeof(FoodSystem), typeof(DrinkSystem))]
|
||||
public sealed class IngestionBlockerComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -3,7 +3,7 @@ using Content.Shared.Sound;
|
||||
|
||||
namespace Content.Server.Nutrition.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(SliceableFoodSystem))]
|
||||
[RegisterComponent, Access(typeof(SliceableFoodSystem))]
|
||||
internal sealed class SliceableFoodComponent : Component
|
||||
{
|
||||
[DataField("slice")]
|
||||
|
||||
@@ -4,7 +4,7 @@ using Content.Shared.Smoking;
|
||||
|
||||
namespace Content.Server.Nutrition.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(SmokingSystem))]
|
||||
[RegisterComponent, Access(typeof(SmokingSystem))]
|
||||
public sealed class SmokableComponent : Component
|
||||
{
|
||||
[DataField("solution")]
|
||||
|
||||
@@ -3,7 +3,7 @@ using Content.Shared.Sound;
|
||||
|
||||
namespace Content.Server.Nutrition.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(UtensilSystem))]
|
||||
[RegisterComponent, Access(typeof(UtensilSystem))]
|
||||
public sealed class UtensilComponent : Component
|
||||
{
|
||||
[DataField("types")]
|
||||
|
||||
@@ -98,7 +98,7 @@ public sealed class PayloadSystem : EntitySystem
|
||||
|
||||
component.Owner = uid;
|
||||
|
||||
if (_serializationManager.Copy(data, component, null) is Component copied)
|
||||
if (_serializationManager.Copy(data.Component, component, null) is Component copied)
|
||||
EntityManager.AddComponent(uid, copied);
|
||||
|
||||
trigger.GrantedComponents.Add(registration.Type);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Content.Server.Plants.Components
|
||||
/// Gently rustle after each interaction with plant.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(PottedPlantHideSystem))]
|
||||
[Access(typeof(PottedPlantHideSystem))]
|
||||
public sealed class PottedPlantHideComponent : Component
|
||||
{
|
||||
[DataField("rustleSound")]
|
||||
|
||||
@@ -3,7 +3,7 @@ using Content.Server.Plants.Systems;
|
||||
namespace Content.Server.Plants.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(RandomPottedPlantSystem))]
|
||||
[Access(typeof(RandomPottedPlantSystem))]
|
||||
public sealed class RandomPottedPlantComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.PneumaticCannon
|
||||
{
|
||||
// TODO: ideally, this and most of the actual firing code doesn't need to exist, and guns can be flexible enough
|
||||
// to handle shooting things that aren't ammo (just firing any entity)
|
||||
[RegisterComponent, Friend(typeof(PneumaticCannonSystem))]
|
||||
[RegisterComponent, Access(typeof(PneumaticCannonSystem))]
|
||||
public sealed class PneumaticCannonComponent : Component
|
||||
{
|
||||
[ViewVariables]
|
||||
|
||||
@@ -4,7 +4,7 @@ using Content.Shared.Pointing.Components;
|
||||
namespace Content.Server.Pointing.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(RoguePointingSystem))]
|
||||
[Access(typeof(RoguePointingSystem))]
|
||||
public sealed class RoguePointingArrowComponent : SharedRoguePointingArrowComponent
|
||||
{
|
||||
[ViewVariables]
|
||||
|
||||
@@ -6,7 +6,7 @@ using Content.Shared.Sound;
|
||||
namespace Content.Server.Power.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ApcSystem))]
|
||||
[Access(typeof(ApcSystem))]
|
||||
public sealed class ApcComponent : BaseApcNetComponent
|
||||
{
|
||||
[DataField("onReceiveMessageSound")]
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Content.Server.Power.Components
|
||||
/// Allows the attached entity to be destroyed by a cutting tool, dropping a piece of cable.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(CableSystem))]
|
||||
[Access(typeof(CableSystem))]
|
||||
public sealed class CableComponent : Component
|
||||
{
|
||||
[DataField("cableDroppedOnCutPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace Content.Server.Power.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ExtensionCableSystem))]
|
||||
[Access(typeof(ExtensionCableSystem))]
|
||||
public sealed class ExtensionCableProviderComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace Content.Server.Power.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ExtensionCableSystem))]
|
||||
[Access(typeof(ExtensionCableSystem))]
|
||||
public sealed class ExtensionCableReceiverComponent : Component
|
||||
{
|
||||
[ViewVariables]
|
||||
|
||||
@@ -4,7 +4,7 @@ using Robust.Shared.Serialization;
|
||||
namespace Content.Server.RandomAppearance;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(RandomAppearanceSystem))]
|
||||
[Access(typeof(RandomAppearanceSystem))]
|
||||
public sealed class RandomAppearanceComponent : Component, ISerializationHooks
|
||||
{
|
||||
[DataField("spriteStates")]
|
||||
|
||||
@@ -3,7 +3,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
||||
|
||||
namespace Content.Server.Recycling.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(RecyclerSystem))]
|
||||
[RegisterComponent, Access(typeof(RecyclerSystem))]
|
||||
public sealed class RecyclableComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Content.Server.Recycling.Components
|
||||
{
|
||||
// TODO: Add sound and safe beep
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(RecyclerSystem))]
|
||||
[Access(typeof(RecyclerSystem))]
|
||||
public sealed class RecyclerComponent : Component
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
namespace Content.Server.Remotes
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(DoorRemoteSystem))]
|
||||
[Access(typeof(DoorRemoteSystem))]
|
||||
public sealed class DoorRemoteComponent : Component
|
||||
{
|
||||
public OperatingMode Mode = OperatingMode.OpenClose;
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Threading;
|
||||
namespace Content.Server.Resist;
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ResistLockerSystem))]
|
||||
[Access(typeof(ResistLockerSystem))]
|
||||
public sealed class ResistLockerComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user