diff --git a/Content.Benchmarks/EntityManagerGetAllComponents.cs b/Content.Benchmarks/EntityManagerGetAllComponents.cs index eb9b2c6a71..14edf54643 100644 --- a/Content.Benchmarks/EntityManagerGetAllComponents.cs +++ b/Content.Benchmarks/EntityManagerGetAllComponents.cs @@ -11,7 +11,7 @@ using Robust.Shared.Reflection; namespace Content.Benchmarks { [Virtual] - public class EntityManagerGetAllComponents + public partial class EntityManagerGetAllComponents { private IEntityManager _entityManager; @@ -87,7 +87,7 @@ namespace Content.Benchmarks return count; } - private sealed class DummyComponent : Component + private sealed partial class DummyComponent : Component { } } diff --git a/Content.Client/Administration/Components/HeadstandComponent.cs b/Content.Client/Administration/Components/HeadstandComponent.cs index 403d326092..d95e74576b 100644 --- a/Content.Client/Administration/Components/HeadstandComponent.cs +++ b/Content.Client/Administration/Components/HeadstandComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameStates; namespace Content.Client.Administration.Components; [RegisterComponent, NetworkedComponent] -public sealed class HeadstandComponent : SharedHeadstandComponent +public sealed partial class HeadstandComponent : SharedHeadstandComponent { } diff --git a/Content.Client/Administration/Components/KillSignComponent.cs b/Content.Client/Administration/Components/KillSignComponent.cs index 88d7c266b1..1cf47b93ff 100644 --- a/Content.Client/Administration/Components/KillSignComponent.cs +++ b/Content.Client/Administration/Components/KillSignComponent.cs @@ -4,5 +4,5 @@ using Robust.Shared.GameStates; namespace Content.Client.Administration.Components; [NetworkedComponent, RegisterComponent] -public sealed class KillSignComponent : SharedKillSignComponent +public sealed partial class KillSignComponent : SharedKillSignComponent { } diff --git a/Content.Client/Atmos/Components/FireVisualsComponent.cs b/Content.Client/Atmos/Components/FireVisualsComponent.cs index 0eebb2040e..02278e9479 100644 --- a/Content.Client/Atmos/Components/FireVisualsComponent.cs +++ b/Content.Client/Atmos/Components/FireVisualsComponent.cs @@ -5,7 +5,7 @@ namespace Content.Client.Atmos.Components; /// accumulated. /// [RegisterComponent] -public sealed class FireVisualsComponent : Component +public sealed partial class FireVisualsComponent : Component { [DataField("fireStackAlternateState")] public int FireStackAlternateState = 3; diff --git a/Content.Client/Atmos/Components/MapAtmosphereComponent.cs b/Content.Client/Atmos/Components/MapAtmosphereComponent.cs index 2f59eae439..abad249134 100644 --- a/Content.Client/Atmos/Components/MapAtmosphereComponent.cs +++ b/Content.Client/Atmos/Components/MapAtmosphereComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Atmos.Components; namespace Content.Client.Atmos.Components; [RegisterComponent] -public sealed class MapAtmosphereComponent : SharedMapAtmosphereComponent +public sealed partial class MapAtmosphereComponent : SharedMapAtmosphereComponent { } diff --git a/Content.Client/Atmos/Components/PipeColorVisualsComponent.cs b/Content.Client/Atmos/Components/PipeColorVisualsComponent.cs index b6eb361553..355b10cb4a 100644 --- a/Content.Client/Atmos/Components/PipeColorVisualsComponent.cs +++ b/Content.Client/Atmos/Components/PipeColorVisualsComponent.cs @@ -3,6 +3,6 @@ using Robust.Shared.GameObjects; namespace Content.Client.Atmos.Components; [RegisterComponent] -public sealed class PipeColorVisualsComponent : Component +public sealed partial class PipeColorVisualsComponent : Component { } diff --git a/Content.Client/Atmos/Monitor/AtmosAlarmableVisualsComponent.cs b/Content.Client/Atmos/Monitor/AtmosAlarmableVisualsComponent.cs index 57b713e9b7..9b941822fd 100644 --- a/Content.Client/Atmos/Monitor/AtmosAlarmableVisualsComponent.cs +++ b/Content.Client/Atmos/Monitor/AtmosAlarmableVisualsComponent.cs @@ -3,18 +3,18 @@ using Content.Shared.Atmos.Monitor; namespace Content.Client.Atmos.Monitor; [RegisterComponent] -public sealed class AtmosAlarmableVisualsComponent : Component +public sealed partial class AtmosAlarmableVisualsComponent : Component { [DataField("layerMap")] - public string LayerMap { get; } = string.Empty; + public string LayerMap { get; private set; } = string.Empty; [DataField("alarmStates")] - public readonly Dictionary AlarmStates = new(); + public Dictionary AlarmStates = new(); [DataField("hideOnDepowered")] - public readonly List? HideOnDepowered; + public List? HideOnDepowered; // eh... [DataField("setOnDepowered")] - public readonly Dictionary? SetOnDepowered; + public Dictionary? SetOnDepowered; } diff --git a/Content.Client/Atmos/Visualizers/Components/PortableScrubberVisualsComponent.cs b/Content.Client/Atmos/Visualizers/Components/PortableScrubberVisualsComponent.cs index d829f6b17b..bfa04e1e8a 100644 --- a/Content.Client/Atmos/Visualizers/Components/PortableScrubberVisualsComponent.cs +++ b/Content.Client/Atmos/Visualizers/Components/PortableScrubberVisualsComponent.cs @@ -5,7 +5,7 @@ namespace Content.Client.Atmos.Visualizers; /// the ready / full pair controls the color of the light. /// [RegisterComponent] -public sealed class PortableScrubberVisualsComponent : Component +public sealed partial class PortableScrubberVisualsComponent : Component { [DataField("idleState", required: true)] public string IdleState = default!; diff --git a/Content.Client/Audio/AmbientSoundTreeComponent.cs b/Content.Client/Audio/AmbientSoundTreeComponent.cs index a256b9f0b3..8ae0619a45 100644 --- a/Content.Client/Audio/AmbientSoundTreeComponent.cs +++ b/Content.Client/Audio/AmbientSoundTreeComponent.cs @@ -8,7 +8,7 @@ namespace Content.Client.Audio; /// Samples nearby and plays audio. /// [RegisterComponent] -public sealed class AmbientSoundTreeComponent : Component, IComponentTreeComponent +public sealed partial class AmbientSoundTreeComponent : Component, IComponentTreeComponent { public DynamicTree> Tree { get; set; } = default!; } diff --git a/Content.Client/Beam/Components/BeamComponent.cs b/Content.Client/Beam/Components/BeamComponent.cs index eb10d32f53..58557b079c 100644 --- a/Content.Client/Beam/Components/BeamComponent.cs +++ b/Content.Client/Beam/Components/BeamComponent.cs @@ -2,7 +2,7 @@ namespace Content.Client.Beam.Components; [RegisterComponent] -public sealed class BeamComponent : SharedBeamComponent +public sealed partial class BeamComponent : SharedBeamComponent { } diff --git a/Content.Client/Bed/Components/StasisBedVisualsComponent.cs b/Content.Client/Bed/Components/StasisBedVisualsComponent.cs index 8233a32b6f..e0a8ed5796 100644 --- a/Content.Client/Bed/Components/StasisBedVisualsComponent.cs +++ b/Content.Client/Bed/Components/StasisBedVisualsComponent.cs @@ -1,5 +1,5 @@ namespace Content.Client.Bed; [RegisterComponent] -public sealed class StasisBedVisualsComponent : Component +public sealed partial class StasisBedVisualsComponent : Component {} diff --git a/Content.Client/Botany/Components/PlantHolderVisualsComponent.cs b/Content.Client/Botany/Components/PlantHolderVisualsComponent.cs index fd44c6ae2a..3cfb4cb081 100644 --- a/Content.Client/Botany/Components/PlantHolderVisualsComponent.cs +++ b/Content.Client/Botany/Components/PlantHolderVisualsComponent.cs @@ -1,6 +1,6 @@ namespace Content.Client.Botany.Components; [RegisterComponent] -public sealed class PlantHolderVisualsComponent : Component +public sealed partial class PlantHolderVisualsComponent : Component { } diff --git a/Content.Client/Botany/Components/PotencyVisualsComponent.cs b/Content.Client/Botany/Components/PotencyVisualsComponent.cs index 24f3c61fcf..2fdd3579db 100644 --- a/Content.Client/Botany/Components/PotencyVisualsComponent.cs +++ b/Content.Client/Botany/Components/PotencyVisualsComponent.cs @@ -1,7 +1,7 @@ namespace Content.Client.Botany.Components; [RegisterComponent] -public sealed class PotencyVisualsComponent : Component +public sealed partial class PotencyVisualsComponent : Component { [DataField("minimumScale")] public float MinimumScale = 1f; diff --git a/Content.Client/CartridgeLoader/Cartridges/CrewManifestUi.cs b/Content.Client/CartridgeLoader/Cartridges/CrewManifestUi.cs index c00e78c8d6..ed129dc9f6 100644 --- a/Content.Client/CartridgeLoader/Cartridges/CrewManifestUi.cs +++ b/Content.Client/CartridgeLoader/Cartridges/CrewManifestUi.cs @@ -5,7 +5,7 @@ using Robust.Client.UserInterface; namespace Content.Client.CartridgeLoader.Cartridges; -public sealed class CrewManifestUi : UIFragment +public sealed partial class CrewManifestUi : UIFragment { private CrewManifestUiFragment? _fragment; diff --git a/Content.Client/CartridgeLoader/Cartridges/NetProbeUi.cs b/Content.Client/CartridgeLoader/Cartridges/NetProbeUi.cs index 5112a61dc2..7ea6f46917 100644 --- a/Content.Client/CartridgeLoader/Cartridges/NetProbeUi.cs +++ b/Content.Client/CartridgeLoader/Cartridges/NetProbeUi.cs @@ -5,7 +5,7 @@ using Robust.Client.UserInterface; namespace Content.Client.CartridgeLoader.Cartridges; -public sealed class NetProbeUi : UIFragment +public sealed partial class NetProbeUi : UIFragment { private NetProbeUiFragment? _fragment; diff --git a/Content.Client/CartridgeLoader/Cartridges/NewsReadUi.cs b/Content.Client/CartridgeLoader/Cartridges/NewsReadUi.cs index ce240e53a0..6874e9644d 100644 --- a/Content.Client/CartridgeLoader/Cartridges/NewsReadUi.cs +++ b/Content.Client/CartridgeLoader/Cartridges/NewsReadUi.cs @@ -6,7 +6,7 @@ using Robust.Client.UserInterface; namespace Content.Client.CartridgeLoader.Cartridges; -public sealed class NewsReadUi : UIFragment +public sealed partial class NewsReadUi : UIFragment { private NewsReadUiFragment? _fragment; diff --git a/Content.Client/CartridgeLoader/Cartridges/NotekeeperUi.cs b/Content.Client/CartridgeLoader/Cartridges/NotekeeperUi.cs index 8f90cd45f7..1018d88cce 100644 --- a/Content.Client/CartridgeLoader/Cartridges/NotekeeperUi.cs +++ b/Content.Client/CartridgeLoader/Cartridges/NotekeeperUi.cs @@ -6,7 +6,7 @@ using Robust.Client.UserInterface; namespace Content.Client.CartridgeLoader.Cartridges; -public sealed class NotekeeperUi : UIFragment +public sealed partial class NotekeeperUi : UIFragment { private NotekeeperUiFragment? _fragment; diff --git a/Content.Client/Changelog/ChangelogManager.cs b/Content.Client/Changelog/ChangelogManager.cs index 0e27ec7f6a..249332c337 100644 --- a/Content.Client/Changelog/ChangelogManager.cs +++ b/Content.Client/Changelog/ChangelogManager.cs @@ -18,7 +18,7 @@ using Robust.Shared.Utility; namespace Content.Client.Changelog { - public sealed class ChangelogManager + public sealed partial class ChangelogManager { [Dependency] private readonly IResourceManager _resource = default!; [Dependency] private readonly ISerializationManager _serialization = default!; @@ -86,20 +86,20 @@ namespace Content.Client.Changelog } [DataDefinition] - public sealed class ChangelogEntry : ISerializationHooks + public sealed partial class ChangelogEntry : ISerializationHooks { [DataField("id")] public int Id { get; private set; } [DataField("author")] - public string Author { get; } = ""; + public string Author { get; private set; } = ""; [DataField("time")] private string _time = default!; public DateTime Time { get; private set; } [DataField("changes")] - public List Changes { get; } = default!; + public List Changes { get; private set; } = default!; void ISerializationHooks.AfterDeserialization() { @@ -108,7 +108,7 @@ namespace Content.Client.Changelog } [DataDefinition] - public sealed class ChangelogChange : ISerializationHooks + public sealed partial class ChangelogChange : ISerializationHooks { [DataField("type")] public ChangelogLineType Type { get; private set; } diff --git a/Content.Client/Chemistry/Components/HyposprayComponent.cs b/Content.Client/Chemistry/Components/HyposprayComponent.cs index 0010270b92..705b79ad84 100644 --- a/Content.Client/Chemistry/Components/HyposprayComponent.cs +++ b/Content.Client/Chemistry/Components/HyposprayComponent.cs @@ -4,7 +4,7 @@ using Content.Shared.FixedPoint; namespace Content.Client.Chemistry.Components { [RegisterComponent] - public sealed class HyposprayComponent : SharedHyposprayComponent + public sealed partial class HyposprayComponent : SharedHyposprayComponent { [ViewVariables] public FixedPoint2 CurrentVolume; diff --git a/Content.Client/Chemistry/Components/InjectorComponent.cs b/Content.Client/Chemistry/Components/InjectorComponent.cs index 5a7c07315e..46120c1b39 100644 --- a/Content.Client/Chemistry/Components/InjectorComponent.cs +++ b/Content.Client/Chemistry/Components/InjectorComponent.cs @@ -17,7 +17,7 @@ namespace Content.Client.Chemistry.Components /// Client behavior for injectors & syringes. Used for item status on injectors /// [RegisterComponent] - public sealed class InjectorComponent : SharedInjectorComponent + public sealed partial class InjectorComponent : SharedInjectorComponent { [ViewVariables] public FixedPoint2 CurrentVolume; diff --git a/Content.Client/Chemistry/Visualizers/FoamVisualsComponent.cs b/Content.Client/Chemistry/Visualizers/FoamVisualsComponent.cs index ac71bbb609..b09c74aa0f 100644 --- a/Content.Client/Chemistry/Visualizers/FoamVisualsComponent.cs +++ b/Content.Client/Chemistry/Visualizers/FoamVisualsComponent.cs @@ -8,7 +8,7 @@ namespace Content.Client.Chemistry.Visualizers; /// [RegisterComponent] [Access(typeof(FoamVisualizerSystem))] -public sealed class FoamVisualsComponent : Component +public sealed partial class FoamVisualsComponent : Component { /// /// The id of the animation used when the foam dissolves. diff --git a/Content.Client/Chemistry/Visualizers/SmokeVisualsComponent.cs b/Content.Client/Chemistry/Visualizers/SmokeVisualsComponent.cs index f2718f41c9..ecec078837 100644 --- a/Content.Client/Chemistry/Visualizers/SmokeVisualsComponent.cs +++ b/Content.Client/Chemistry/Visualizers/SmokeVisualsComponent.cs @@ -7,4 +7,4 @@ namespace Content.Client.Chemistry.Visualizers; /// [RegisterComponent] [Access(typeof(SmokeVisualizerSystem))] -public sealed class SmokeVisualsComponent : Component {} +public sealed partial class SmokeVisualsComponent : Component {} diff --git a/Content.Client/Chemistry/Visualizers/SolutionContainerVisualsComponent.cs b/Content.Client/Chemistry/Visualizers/SolutionContainerVisualsComponent.cs index 1608e2d013..5fd44fe285 100644 --- a/Content.Client/Chemistry/Visualizers/SolutionContainerVisualsComponent.cs +++ b/Content.Client/Chemistry/Visualizers/SolutionContainerVisualsComponent.cs @@ -11,7 +11,7 @@ using Robust.Shared.Utility; namespace Content.Client.Chemistry.Visualizers { [RegisterComponent] - public sealed class SolutionContainerVisualsComponent : Component + public sealed partial class SolutionContainerVisualsComponent : Component { [DataField("maxFillLevels")] public int MaxFillLevels = 0; diff --git a/Content.Client/Chemistry/Visualizers/VaporVisualsComponent.cs b/Content.Client/Chemistry/Visualizers/VaporVisualsComponent.cs index 82e004ee82..34891a46ea 100644 --- a/Content.Client/Chemistry/Visualizers/VaporVisualsComponent.cs +++ b/Content.Client/Chemistry/Visualizers/VaporVisualsComponent.cs @@ -7,7 +7,7 @@ namespace Content.Client.Chemistry.Visualizers; /// [RegisterComponent] [Access(typeof(VaporVisualizerSystem))] -public sealed class VaporVisualsComponent : Component +public sealed partial class VaporVisualsComponent : Component { /// /// The id of the animation played when the vapor spawns in. diff --git a/Content.Client/Clickable/ClickableComponent.cs b/Content.Client/Clickable/ClickableComponent.cs index a1cbc9a518..86b7a0c9f6 100644 --- a/Content.Client/Clickable/ClickableComponent.cs +++ b/Content.Client/Clickable/ClickableComponent.cs @@ -7,7 +7,7 @@ using static Robust.Client.GameObjects.SpriteComponent; namespace Content.Client.Clickable { [RegisterComponent] - public sealed class ClickableComponent : Component + public sealed partial class ClickableComponent : Component { [Dependency] private readonly IClickMapManager _clickMapManager = default!; @@ -131,7 +131,7 @@ namespace Content.Client.Clickable } [DataDefinition] - public sealed class DirBoundData + public sealed partial class DirBoundData { [DataField("all")] public Box2 All; [DataField("north")] public Box2 North; diff --git a/Content.Client/Construction/ConstructionGhostComponent.cs b/Content.Client/Construction/ConstructionGhostComponent.cs index 54bf4bfb66..3c983094f5 100644 --- a/Content.Client/Construction/ConstructionGhostComponent.cs +++ b/Content.Client/Construction/ConstructionGhostComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.Construction { [RegisterComponent] - public sealed class ConstructionGhostComponent : Component + public sealed partial class ConstructionGhostComponent : Component { [ViewVariables] public ConstructionPrototype? Prototype { get; set; } [ViewVariables] public int GhostId { get; set; } diff --git a/Content.Client/Crayon/CrayonComponent.cs b/Content.Client/Crayon/CrayonComponent.cs index 3f61961abc..5729c616c2 100644 --- a/Content.Client/Crayon/CrayonComponent.cs +++ b/Content.Client/Crayon/CrayonComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.Crayon { [RegisterComponent] - public sealed class CrayonComponent : SharedCrayonComponent + public sealed partial class CrayonComponent : SharedCrayonComponent { [ViewVariables(VVAccess.ReadWrite)] public bool UIUpdateNeeded; [ViewVariables] public int Charges { get; set; } diff --git a/Content.Client/Damage/DamageVisualsComponent.cs b/Content.Client/Damage/DamageVisualsComponent.cs index 1ccf7a5c11..90171e78f9 100644 --- a/Content.Client/Damage/DamageVisualsComponent.cs +++ b/Content.Client/Damage/DamageVisualsComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.FixedPoint; namespace Content.Client.Damage; [RegisterComponent] -public sealed class DamageVisualsComponent : Component +public sealed partial class DamageVisualsComponent : Component { /// /// Damage thresholds between damage state changes. @@ -55,7 +55,7 @@ public sealed class DamageVisualsComponent : Component /// (for example, Brute), and has a value /// of a DamageVisualizerSprite (see below) /// - [DataField("damageOverlayGroups")] public readonly Dictionary? DamageOverlayGroups; + [DataField("damageOverlayGroups")] public Dictionary? DamageOverlayGroups; /// /// Sets if you want sprites to overlay the @@ -68,7 +68,7 @@ public sealed class DamageVisualsComponent : Component /// - There are no target layers /// - There is no damage group /// - [DataField("overlay")] public readonly bool Overlay = true; + [DataField("overlay")] public bool Overlay = true; /// /// A single damage group to target. @@ -84,7 +84,7 @@ public sealed class DamageVisualsComponent : Component /// what kind of damage combination /// you would want, on which threshold. /// - [DataField("damageGroup")] public readonly string? DamageGroup; + [DataField("damageGroup")] public string? DamageGroup; /// /// Set this if you want incoming damage to be @@ -106,14 +106,14 @@ public sealed class DamageVisualsComponent : Component /// This will only work if you have damageOverlay /// defined - otherwise, it will not work. /// - [DataField("trackAllDamage")] public readonly bool TrackAllDamage; + [DataField("trackAllDamage")] public bool TrackAllDamage; /// /// This is the overlay sprite used, if _trackAllDamage is /// enabled. Supports no complex per-group layering, /// just an actually simple damage overlay. See /// DamageVisualizerSprite for more information. /// - [DataField("damageOverlay")] public readonly DamageVisualizerSprite? DamageOverlay; + [DataField("damageOverlay")] public DamageVisualizerSprite? DamageOverlay; public readonly List TargetLayerMapKeys = new(); public bool Disabled = false; @@ -128,7 +128,7 @@ public sealed class DamageVisualsComponent : Component // deals with the edge case of human damage visuals not // being in color without making a Dict /// The RSI path for the damage visualizer @@ -151,11 +151,11 @@ public sealed class DamageVisualizerSprite /// - DamageOverlay_{threshold} if not targeting /// a layer. /// - [DataField("sprite", required: true)] public readonly string Sprite = default!; + [DataField("sprite", required: true)] public string Sprite = default!; /// /// The color of this sprite overlay. /// Supports only hexadecimal format. /// - [DataField("color")] public readonly string? Color; + [DataField("color")] public string? Color; } diff --git a/Content.Client/DamageState/DamageStateVisualsComponent.cs b/Content.Client/DamageState/DamageStateVisualsComponent.cs index 8034fd8798..689e96afa5 100644 --- a/Content.Client/DamageState/DamageStateVisualsComponent.cs +++ b/Content.Client/DamageState/DamageStateVisualsComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Mobs; namespace Content.Client.DamageState; [RegisterComponent] -public sealed class DamageStateVisualsComponent : Component +public sealed partial class DamageStateVisualsComponent : Component { public int? OriginalDrawDepth; diff --git a/Content.Client/Decals/DecalPlacementSystem.cs b/Content.Client/Decals/DecalPlacementSystem.cs index 937e10ab4c..cf5f89ffd8 100644 --- a/Content.Client/Decals/DecalPlacementSystem.cs +++ b/Content.Client/Decals/DecalPlacementSystem.cs @@ -195,7 +195,7 @@ public sealed class DecalPlacementSystem : EntitySystem } } -public sealed class PlaceDecalActionEvent : WorldTargetActionEvent +public sealed partial class PlaceDecalActionEvent : WorldTargetActionEvent { [DataField("decalId", customTypeSerializer:typeof(PrototypeIdSerializer), required:true)] public string DecalId = string.Empty; diff --git a/Content.Client/Disposal/DisposalUnitComponent.cs b/Content.Client/Disposal/DisposalUnitComponent.cs index 5466ea59dd..b6bad6b717 100644 --- a/Content.Client/Disposal/DisposalUnitComponent.cs +++ b/Content.Client/Disposal/DisposalUnitComponent.cs @@ -4,7 +4,7 @@ namespace Content.Client.Disposal; [RegisterComponent] [ComponentReference(typeof(SharedDisposalUnitComponent))] -public sealed class DisposalUnitComponent : SharedDisposalUnitComponent +public sealed partial class DisposalUnitComponent : SharedDisposalUnitComponent { } diff --git a/Content.Client/Dragon/DragonRiftComponent.cs b/Content.Client/Dragon/DragonRiftComponent.cs index 6aa98a66c5..db86949de9 100644 --- a/Content.Client/Dragon/DragonRiftComponent.cs +++ b/Content.Client/Dragon/DragonRiftComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Dragon; namespace Content.Client.Dragon; [RegisterComponent] -public sealed class DragonRiftComponent : SharedDragonRiftComponent +public sealed partial class DragonRiftComponent : SharedDragonRiftComponent { } diff --git a/Content.Client/Effects/EffectVisualsComponent.cs b/Content.Client/Effects/EffectVisualsComponent.cs index 30662126a2..4ede4e7556 100644 --- a/Content.Client/Effects/EffectVisualsComponent.cs +++ b/Content.Client/Effects/EffectVisualsComponent.cs @@ -4,4 +4,4 @@ namespace Content.Client.Effects; /// Deletes the attached entity whenever any animation completes. Used for temporary client-side entities. /// [RegisterComponent] -public sealed class EffectVisualsComponent : Component {} +public sealed partial class EffectVisualsComponent : Component {} diff --git a/Content.Client/Explosion/ClusterGrenadeVisualsComponent.cs b/Content.Client/Explosion/ClusterGrenadeVisualsComponent.cs index df04358c58..3c97f557b6 100644 --- a/Content.Client/Explosion/ClusterGrenadeVisualsComponent.cs +++ b/Content.Client/Explosion/ClusterGrenadeVisualsComponent.cs @@ -2,7 +2,7 @@ namespace Content.Client.Explosion; [RegisterComponent] [Access(typeof(ClusterGrenadeVisualizerSystem))] -public sealed class ClusterGrenadeVisualsComponent : Component +public sealed partial class ClusterGrenadeVisualsComponent : Component { [DataField("state")] public string? State; diff --git a/Content.Client/Explosion/ExplosionVisualsTexturesComponent.cs b/Content.Client/Explosion/ExplosionVisualsTexturesComponent.cs index 4ac7087961..bbc7e66ef2 100644 --- a/Content.Client/Explosion/ExplosionVisualsTexturesComponent.cs +++ b/Content.Client/Explosion/ExplosionVisualsTexturesComponent.cs @@ -3,7 +3,7 @@ using Robust.Client.Graphics; namespace Content.Client.Explosion; [RegisterComponent] -public sealed class ExplosionVisualsTexturesComponent : Component +public sealed partial class ExplosionVisualsTexturesComponent : Component { /// /// Uid of the client-side point light entity for this explosion. diff --git a/Content.Client/Explosion/TriggerOnProximityComponent.cs b/Content.Client/Explosion/TriggerOnProximityComponent.cs index 888b8ec004..5d4714d19c 100644 --- a/Content.Client/Explosion/TriggerOnProximityComponent.cs +++ b/Content.Client/Explosion/TriggerOnProximityComponent.cs @@ -3,4 +3,4 @@ using Content.Shared.Explosion; namespace Content.Client.Explosion; [RegisterComponent, Access(typeof(TriggerSystem))] -public sealed class TriggerOnProximityComponent : SharedTriggerOnProximityComponent {} +public sealed partial class TriggerOnProximityComponent : SharedTriggerOnProximityComponent {} diff --git a/Content.Client/Extinguisher/FireExtinguisherComponent.cs b/Content.Client/Extinguisher/FireExtinguisherComponent.cs index b73c7cd811..126c172924 100644 --- a/Content.Client/Extinguisher/FireExtinguisherComponent.cs +++ b/Content.Client/Extinguisher/FireExtinguisherComponent.cs @@ -4,6 +4,6 @@ using Robust.Shared.GameStates; namespace Content.Client.Extinguisher; [NetworkedComponent, RegisterComponent] -public sealed class FireExtinguisherComponent : SharedFireExtinguisherComponent +public sealed partial class FireExtinguisherComponent : SharedFireExtinguisherComponent { } diff --git a/Content.Client/Eye/LerpingEyeComponent.cs b/Content.Client/Eye/LerpingEyeComponent.cs index e0c791196c..29389d1941 100644 --- a/Content.Client/Eye/LerpingEyeComponent.cs +++ b/Content.Client/Eye/LerpingEyeComponent.cs @@ -4,7 +4,7 @@ namespace Content.Client.Eye; /// Component for keeping track of client-side eye lerping. This component should only be added or removed via the . /// [RegisterComponent] -public sealed class LerpingEyeComponent : Component +public sealed partial class LerpingEyeComponent : Component { /// /// False if this eye was automatically added when a player was attached to this entity. diff --git a/Content.Client/GPS/Components/HandheldGPSComponent.cs b/Content.Client/GPS/Components/HandheldGPSComponent.cs index 987211ac34..0f5271fd80 100644 --- a/Content.Client/GPS/Components/HandheldGPSComponent.cs +++ b/Content.Client/GPS/Components/HandheldGPSComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.GPS; namespace Content.Client.GPS.Components { [RegisterComponent] - public sealed class HandheldGPSComponent : SharedHandheldGPSComponent + public sealed partial class HandheldGPSComponent : SharedHandheldGPSComponent { } } diff --git a/Content.Client/Ghost/GhostComponent.cs b/Content.Client/Ghost/GhostComponent.cs index d1b02362e7..5da997caf7 100644 --- a/Content.Client/Ghost/GhostComponent.cs +++ b/Content.Client/Ghost/GhostComponent.cs @@ -7,7 +7,7 @@ namespace Content.Client.Ghost { [RegisterComponent] [ComponentReference(typeof(SharedGhostComponent))] - public sealed class GhostComponent : SharedGhostComponent + public sealed partial class GhostComponent : SharedGhostComponent { public bool IsAttached { get; set; } @@ -42,9 +42,9 @@ namespace Content.Client.Ghost }; } - public sealed class ToggleLightingActionEvent : InstantActionEvent { }; + public sealed partial class ToggleLightingActionEvent : InstantActionEvent { }; - public sealed class ToggleFoVActionEvent : InstantActionEvent { }; + public sealed partial class ToggleFoVActionEvent : InstantActionEvent { }; - public sealed class ToggleGhostsActionEvent : InstantActionEvent { }; + public sealed partial class ToggleGhostsActionEvent : InstantActionEvent { }; } diff --git a/Content.Client/Guidebook/Components/GuideHelpComponent.cs b/Content.Client/Guidebook/Components/GuideHelpComponent.cs index f333c873d6..db19bb9dcc 100644 --- a/Content.Client/Guidebook/Components/GuideHelpComponent.cs +++ b/Content.Client/Guidebook/Components/GuideHelpComponent.cs @@ -7,7 +7,7 @@ namespace Content.Client.Guidebook.Components; /// [RegisterComponent] [Access(typeof(GuidebookSystem))] -public sealed class GuideHelpComponent : Component +public sealed partial class GuideHelpComponent : Component { /// /// What guides to include show when opening the guidebook. The first entry will be used to select the currently diff --git a/Content.Client/Guidebook/Components/GuidebookControlsTestComponent.cs b/Content.Client/Guidebook/Components/GuidebookControlsTestComponent.cs index 21c6c0365e..10330b292d 100644 --- a/Content.Client/Guidebook/Components/GuidebookControlsTestComponent.cs +++ b/Content.Client/Guidebook/Components/GuidebookControlsTestComponent.cs @@ -4,7 +4,7 @@ /// This is used for the guidebook monkey. /// [RegisterComponent] -public sealed class GuidebookControlsTestComponent : Component +public sealed partial class GuidebookControlsTestComponent : Component { } diff --git a/Content.Client/IconSmoothing/IconSmoothComponent.cs b/Content.Client/IconSmoothing/IconSmoothComponent.cs index 0ba7701890..88b1f613cb 100644 --- a/Content.Client/IconSmoothing/IconSmoothComponent.cs +++ b/Content.Client/IconSmoothing/IconSmoothComponent.cs @@ -13,7 +13,7 @@ namespace Content.Client.IconSmoothing /// Any objects with the same key will connect. /// [RegisterComponent] - public sealed class IconSmoothComponent : Component + public sealed partial class IconSmoothComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("enabled")] public bool Enabled = true; @@ -24,13 +24,13 @@ namespace Content.Client.IconSmoothing /// We will smooth with other objects with the same key. /// [ViewVariables(VVAccess.ReadWrite), DataField("key")] - public string? SmoothKey { get; } + public string? SmoothKey { get; private set; } /// /// Prepended to the RSI state. /// [ViewVariables(VVAccess.ReadWrite), DataField("base")] - public string StateBase { get; } = string.Empty; + public string StateBase { get; private set; } = string.Empty; [DataField("shader", customTypeSerializer:typeof(PrototypeIdSerializer))] public string? Shader; diff --git a/Content.Client/Instruments/InstrumentComponent.cs b/Content.Client/Instruments/InstrumentComponent.cs index aab27888f6..74218f802f 100644 --- a/Content.Client/Instruments/InstrumentComponent.cs +++ b/Content.Client/Instruments/InstrumentComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Audio.Midi; namespace Content.Client.Instruments; [RegisterComponent, ComponentReference(typeof(SharedInstrumentComponent))] -public sealed class InstrumentComponent : SharedInstrumentComponent +public sealed partial class InstrumentComponent : SharedInstrumentComponent { public event Action? OnMidiPlaybackEnded; diff --git a/Content.Client/Interactable/Components/InteractionOutlineComponent.cs b/Content.Client/Interactable/Components/InteractionOutlineComponent.cs index dd08e4ba09..9c72d763ff 100644 --- a/Content.Client/Interactable/Components/InteractionOutlineComponent.cs +++ b/Content.Client/Interactable/Components/InteractionOutlineComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.Interactable.Components { [RegisterComponent] - public sealed class InteractionOutlineComponent : Component + public sealed partial class InteractionOutlineComponent : Component { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Client/Inventory/InventorySlotsComponent.cs b/Content.Client/Inventory/InventorySlotsComponent.cs index 91d03dd715..d4667bcef3 100644 --- a/Content.Client/Inventory/InventorySlotsComponent.cs +++ b/Content.Client/Inventory/InventorySlotsComponent.cs @@ -5,7 +5,7 @@ namespace Content.Client.Inventory; /// [RegisterComponent] [Access(typeof(ClientInventorySystem))] -public sealed class InventorySlotsComponent : Component +public sealed partial class InventorySlotsComponent : Component { [ViewVariables] public readonly Dictionary SlotData = new (); diff --git a/Content.Client/Items/Components/ItemStatusComponent.cs b/Content.Client/Items/Components/ItemStatusComponent.cs index 6889ce31bc..34ab3bc9a0 100644 --- a/Content.Client/Items/Components/ItemStatusComponent.cs +++ b/Content.Client/Items/Components/ItemStatusComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Items.Components { [RegisterComponent] - public sealed class ItemStatusComponent : Component + public sealed partial class ItemStatusComponent : Component { } } diff --git a/Content.Client/Kudzu/KudzuVisualizerComponent.cs b/Content.Client/Kudzu/KudzuVisualizerComponent.cs index 11ff2965b5..868f2841f8 100644 --- a/Content.Client/Kudzu/KudzuVisualizerComponent.cs +++ b/Content.Client/Kudzu/KudzuVisualizerComponent.cs @@ -1,10 +1,10 @@ namespace Content.Client.Kudzu { [RegisterComponent] - public sealed class KudzuVisualsComponent : Component + public sealed partial class KudzuVisualsComponent : Component { [DataField("layer")] - public int Layer { get; } = 0; + public int Layer { get; private set; } = 0; } } diff --git a/Content.Client/Light/Components/EmergencyLightComponent.cs b/Content.Client/Light/Components/EmergencyLightComponent.cs index 47d28b8cde..17f14a62b5 100644 --- a/Content.Client/Light/Components/EmergencyLightComponent.cs +++ b/Content.Client/Light/Components/EmergencyLightComponent.cs @@ -6,7 +6,7 @@ namespace Content.Client.Light.Components; [RegisterComponent] [NetworkedComponent] -public sealed class EmergencyLightComponent : SharedEmergencyLightComponent +public sealed partial class EmergencyLightComponent : SharedEmergencyLightComponent { } diff --git a/Content.Client/Light/Components/ExpendableLightComponent.cs b/Content.Client/Light/Components/ExpendableLightComponent.cs index 6d22bdf161..a3771c101e 100644 --- a/Content.Client/Light/Components/ExpendableLightComponent.cs +++ b/Content.Client/Light/Components/ExpendableLightComponent.cs @@ -8,7 +8,7 @@ namespace Content.Client.Light.Components; /// Component that represents a handheld expendable light which can be activated and eventually dies over time. /// [RegisterComponent] -public sealed class ExpendableLightComponent : SharedExpendableLightComponent +public sealed partial class ExpendableLightComponent : SharedExpendableLightComponent { /// /// The icon state used by expendable lights when the they have been completely expended. diff --git a/Content.Client/Light/Components/LightBehaviourComponent.cs b/Content.Client/Light/Components/LightBehaviourComponent.cs index 6e4c26df53..443c893dfb 100644 --- a/Content.Client/Light/Components/LightBehaviourComponent.cs +++ b/Content.Client/Light/Components/LightBehaviourComponent.cs @@ -16,7 +16,7 @@ namespace Content.Client.Light.Components /// [Serializable] [ImplicitDataDefinitionForInheritors] - public abstract class LightBehaviourAnimationTrack : AnimationTrackProperty + public abstract partial class LightBehaviourAnimationTrack : AnimationTrackProperty { protected IEntityManager _entMan = default!; protected IRobustRandom _random = default!; @@ -111,7 +111,7 @@ namespace Content.Client.Light.Components /// A light behaviour that alternates between StartValue and EndValue /// [UsedImplicitly] - public sealed class PulseBehaviour : LightBehaviourAnimationTrack + public sealed partial class PulseBehaviour : LightBehaviourAnimationTrack { public override (int KeyFrameIndex, float FramePlayingTime) AdvancePlayback( object context, int prevKeyFrameIndex, float prevPlayingTime, float frameTime) @@ -166,7 +166,7 @@ namespace Content.Client.Light.Components /// A light behaviour that interpolates from StartValue to EndValue /// [UsedImplicitly] - public sealed class FadeBehaviour : LightBehaviourAnimationTrack + public sealed partial class FadeBehaviour : LightBehaviourAnimationTrack { /// /// Automatically reverse the animation when EndValue is reached. In this particular case, MaxTime specifies the @@ -229,7 +229,7 @@ namespace Content.Client.Light.Components /// A light behaviour that interpolates using random values chosen between StartValue and EndValue. /// [UsedImplicitly] - public sealed class RandomizeBehaviour : LightBehaviourAnimationTrack + public sealed partial class RandomizeBehaviour : LightBehaviourAnimationTrack { private float _randomValue1; private float _randomValue2; @@ -295,7 +295,7 @@ namespace Content.Client.Light.Components /// [UsedImplicitly] [DataDefinition] - public sealed class ColorCycleBehaviour : LightBehaviourAnimationTrack, ISerializationHooks + public sealed partial class ColorCycleBehaviour : LightBehaviourAnimationTrack, ISerializationHooks { [DataField("property")] public override string Property { get; protected set; } = "Color"; @@ -357,7 +357,7 @@ namespace Content.Client.Light.Components /// A component which applies a specific behaviour to a PointLightComponent on its owner. /// [RegisterComponent] - public sealed class LightBehaviourComponent : SharedLightBehaviourComponent, ISerializationHooks + public sealed partial class LightBehaviourComponent : SharedLightBehaviourComponent, ISerializationHooks { [Dependency] private readonly IEntityManager _entMan = default!; [Dependency] private readonly IRobustRandom _random = default!; @@ -381,7 +381,7 @@ namespace Content.Client.Light.Components [ViewVariables(VVAccess.ReadOnly)] [DataField("behaviours")] - public readonly List Behaviours = new(); + public List Behaviours = new(); [ViewVariables(VVAccess.ReadOnly)] public readonly List Animations = new(); diff --git a/Content.Client/Light/Components/LightFadeComponent.cs b/Content.Client/Light/Components/LightFadeComponent.cs index 3327c9432e..de31dd90e5 100644 --- a/Content.Client/Light/Components/LightFadeComponent.cs +++ b/Content.Client/Light/Components/LightFadeComponent.cs @@ -4,7 +4,7 @@ namespace Content.Client.Light.Components; /// Fades out the attached to this entity. /// [RegisterComponent] -public sealed class LightFadeComponent : Component +public sealed partial class LightFadeComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("duration")] public float Duration = 0.5f; diff --git a/Content.Client/Light/Visualizers/PoweredLightVisualsComponent.cs b/Content.Client/Light/Visualizers/PoweredLightVisualsComponent.cs index 6a1b4d713d..0d1e70735a 100644 --- a/Content.Client/Light/Visualizers/PoweredLightVisualsComponent.cs +++ b/Content.Client/Light/Visualizers/PoweredLightVisualsComponent.cs @@ -5,14 +5,14 @@ namespace Content.Client.Light.Visualizers; [RegisterComponent] [Access(typeof(PoweredLightVisualizerSystem))] -public sealed class PoweredLightVisualsComponent : Component +public sealed partial class PoweredLightVisualsComponent : Component { /// /// A map of the sprite states used by this visualizer indexed by the light state they correspond to. /// [DataField("spriteStateMap")] [ViewVariables(VVAccess.ReadOnly)] - public readonly Dictionary SpriteStateMap = new() + public Dictionary SpriteStateMap = new() { [PoweredLightState.Empty] = "empty", [PoweredLightState.Off] = "off", diff --git a/Content.Client/Lightning/Components/LightningComponent.cs b/Content.Client/Lightning/Components/LightningComponent.cs index 4edc97597f..521641c763 100644 --- a/Content.Client/Lightning/Components/LightningComponent.cs +++ b/Content.Client/Lightning/Components/LightningComponent.cs @@ -2,7 +2,7 @@ namespace Content.Client.Lightning.Components; [RegisterComponent] -public sealed class LightningComponent : SharedLightningComponent +public sealed partial class LightningComponent : SharedLightningComponent { } diff --git a/Content.Client/Mapping/MappingSystem.cs b/Content.Client/Mapping/MappingSystem.cs index 7f29f4e784..2d6db2bb46 100644 --- a/Content.Client/Mapping/MappingSystem.cs +++ b/Content.Client/Mapping/MappingSystem.cs @@ -141,7 +141,7 @@ public sealed partial class MappingSystem : EntitySystem } } -public sealed class StartPlacementActionEvent : InstantActionEvent +public sealed partial class StartPlacementActionEvent : InstantActionEvent { [DataField("entityType")] public string? EntityType; diff --git a/Content.Client/Markers/MarkerComponent.cs b/Content.Client/Markers/MarkerComponent.cs index 1af9f829c3..ac28f2ffd3 100644 --- a/Content.Client/Markers/MarkerComponent.cs +++ b/Content.Client/Markers/MarkerComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.IoC; namespace Content.Client.Markers { [RegisterComponent] - public sealed class MarkerComponent : Component + public sealed partial class MarkerComponent : Component { } } diff --git a/Content.Client/Mech/MechAssemblyVisualsComponent.cs b/Content.Client/Mech/MechAssemblyVisualsComponent.cs index 6d22db0cb5..c4cba0aa0a 100644 --- a/Content.Client/Mech/MechAssemblyVisualsComponent.cs +++ b/Content.Client/Mech/MechAssemblyVisualsComponent.cs @@ -4,7 +4,7 @@ /// This is used for visualizing mech constructions /// [RegisterComponent] -public sealed class MechAssemblyVisualsComponent : Component +public sealed partial class MechAssemblyVisualsComponent : Component { /// /// The prefix that is followed by the number which diff --git a/Content.Client/Mech/Ui/Equipment/MechGrabberUi.cs b/Content.Client/Mech/Ui/Equipment/MechGrabberUi.cs index 6cffba5163..49bac300e4 100644 --- a/Content.Client/Mech/Ui/Equipment/MechGrabberUi.cs +++ b/Content.Client/Mech/Ui/Equipment/MechGrabberUi.cs @@ -5,7 +5,7 @@ using Robust.Client.UserInterface; namespace Content.Client.Mech.Ui.Equipment; -public sealed class MechGrabberUi : UIFragment +public sealed partial class MechGrabberUi : UIFragment { private MechGrabberUiFragment? _fragment; diff --git a/Content.Client/Mech/Ui/Equipment/MechSoundboardUi.cs b/Content.Client/Mech/Ui/Equipment/MechSoundboardUi.cs index 67825318a4..d4f12db454 100644 --- a/Content.Client/Mech/Ui/Equipment/MechSoundboardUi.cs +++ b/Content.Client/Mech/Ui/Equipment/MechSoundboardUi.cs @@ -5,7 +5,7 @@ using Robust.Client.UserInterface; namespace Content.Client.Mech.Ui.Equipment; -public sealed class MechSoundboardUi : UIFragment +public sealed partial class MechSoundboardUi : UIFragment { private MechSoundboardUiFragment? _fragment; diff --git a/Content.Client/MedicalScanner/MedicalScannerComponent.cs b/Content.Client/MedicalScanner/MedicalScannerComponent.cs index 8ece8311b9..4b3318b49d 100644 --- a/Content.Client/MedicalScanner/MedicalScannerComponent.cs +++ b/Content.Client/MedicalScanner/MedicalScannerComponent.cs @@ -3,6 +3,6 @@ namespace Content.Client.MedicalScanner; [RegisterComponent] -public sealed class MedicalScannerComponent : SharedMedicalScannerComponent +public sealed partial class MedicalScannerComponent : SharedMedicalScannerComponent { } diff --git a/Content.Client/NPC/HTN/HTNComponent.cs b/Content.Client/NPC/HTN/HTNComponent.cs index 4e5d233e19..cef18e1a9f 100644 --- a/Content.Client/NPC/HTN/HTNComponent.cs +++ b/Content.Client/NPC/HTN/HTNComponent.cs @@ -1,7 +1,7 @@ namespace Content.Client.NPC.HTN; [RegisterComponent] -public sealed class HTNComponent : NPCComponent +public sealed partial class HTNComponent : NPCComponent { public string DebugText = string.Empty; } diff --git a/Content.Client/NPC/NPCComponent.cs b/Content.Client/NPC/NPCComponent.cs index 31bcb18bd2..11052b99cb 100644 --- a/Content.Client/NPC/NPCComponent.cs +++ b/Content.Client/NPC/NPCComponent.cs @@ -2,7 +2,7 @@ using Content.Shared.NPC; namespace Content.Client.NPC; -public abstract class NPCComponent : SharedNPCComponent +public abstract partial class NPCComponent : SharedNPCComponent { } diff --git a/Content.Client/NPC/NPCSteeringComponent.cs b/Content.Client/NPC/NPCSteeringComponent.cs index f7776ef5c8..8cd1b7fb04 100644 --- a/Content.Client/NPC/NPCSteeringComponent.cs +++ b/Content.Client/NPC/NPCSteeringComponent.cs @@ -3,7 +3,7 @@ using System.Numerics; namespace Content.Client.NPC; [RegisterComponent] -public sealed class NPCSteeringComponent : Component +public sealed partial class NPCSteeringComponent : Component { /* Not hooked up to the server component as it's used for debugging only. */ diff --git a/Content.Client/NetworkConfigurator/NetworkConfiguratorActiveLinkOverlayComponent.cs b/Content.Client/NetworkConfigurator/NetworkConfiguratorActiveLinkOverlayComponent.cs index b74f8f9af5..d8f2fac635 100644 --- a/Content.Client/NetworkConfigurator/NetworkConfiguratorActiveLinkOverlayComponent.cs +++ b/Content.Client/NetworkConfigurator/NetworkConfiguratorActiveLinkOverlayComponent.cs @@ -4,7 +4,7 @@ namespace Content.Client.NetworkConfigurator; /// This is used for... /// [RegisterComponent] -public sealed class NetworkConfiguratorActiveLinkOverlayComponent : Component +public sealed partial class NetworkConfiguratorActiveLinkOverlayComponent : Component { /// /// The entities linked to this network configurator. diff --git a/Content.Client/PDA/PdaBorderColorComponent.cs b/Content.Client/PDA/PdaBorderColorComponent.cs index fc0ba25963..f8e81962e4 100644 --- a/Content.Client/PDA/PdaBorderColorComponent.cs +++ b/Content.Client/PDA/PdaBorderColorComponent.cs @@ -4,7 +4,7 @@ /// Used for specifying the pda windows border colors /// [RegisterComponent] -public sealed class PdaBorderColorComponent : Component +public sealed partial class PdaBorderColorComponent : Component { [DataField("borderColor", required: true)] public string? BorderColor; diff --git a/Content.Client/Paper/PaperComponent.cs b/Content.Client/Paper/PaperComponent.cs index 3484df2ae7..d197cd3721 100644 --- a/Content.Client/Paper/PaperComponent.cs +++ b/Content.Client/Paper/PaperComponent.cs @@ -4,6 +4,6 @@ using Robust.Shared.GameStates; namespace Content.Client.Paper; [NetworkedComponent, RegisterComponent] -public sealed class PaperComponent : SharedPaperComponent +public sealed partial class PaperComponent : SharedPaperComponent { } diff --git a/Content.Client/Paper/UI/PaperVisualsComponent.cs b/Content.Client/Paper/UI/PaperVisualsComponent.cs index 9467af2544..95040e77e6 100644 --- a/Content.Client/Paper/UI/PaperVisualsComponent.cs +++ b/Content.Client/Paper/UI/PaperVisualsComponent.cs @@ -3,7 +3,7 @@ using System.Numerics; namespace Content.Client.Paper; [RegisterComponent] -public sealed class PaperVisualsComponent : Component +public sealed partial class PaperVisualsComponent : Component { /// /// The path to the image which will be used as a background for the paper itself diff --git a/Content.Client/Parallax/Data/GeneratedParallaxTextureSource.cs b/Content.Client/Parallax/Data/GeneratedParallaxTextureSource.cs index 15ec9d959b..72b5d0155b 100644 --- a/Content.Client/Parallax/Data/GeneratedParallaxTextureSource.cs +++ b/Content.Client/Parallax/Data/GeneratedParallaxTextureSource.cs @@ -16,14 +16,14 @@ namespace Content.Client.Parallax.Data; [UsedImplicitly] [DataDefinition] -public sealed class GeneratedParallaxTextureSource : IParallaxTextureSource +public sealed partial class GeneratedParallaxTextureSource : IParallaxTextureSource { /// /// Parallax config path (the TOML file). /// In client resources. /// [DataField("configPath")] - public ResPath ParallaxConfigPath { get; } = new("/parallax_config.toml"); + public ResPath ParallaxConfigPath { get; private set; } = new("/parallax_config.toml"); /// /// ID for debugging, caching, and so forth. @@ -31,7 +31,7 @@ public sealed class GeneratedParallaxTextureSource : IParallaxTextureSource /// It is advisible to provide a roughly unique ID for any unique config contents. /// [DataField("id")] - public string Identifier { get; } = "other"; + public string Identifier { get; private set; } = "other"; /// /// Cached path. diff --git a/Content.Client/Parallax/Data/IParallaxTextureSource.cs b/Content.Client/Parallax/Data/IParallaxTextureSource.cs index 99db736af1..a18d63fe76 100644 --- a/Content.Client/Parallax/Data/IParallaxTextureSource.cs +++ b/Content.Client/Parallax/Data/IParallaxTextureSource.cs @@ -5,7 +5,7 @@ using Robust.Client.Graphics; namespace Content.Client.Parallax.Data { [ImplicitDataDefinitionForInheritors] - public interface IParallaxTextureSource + public partial interface IParallaxTextureSource { /// /// Generates or loads the texture. diff --git a/Content.Client/Parallax/Data/ImageParallaxTextureSource.cs b/Content.Client/Parallax/Data/ImageParallaxTextureSource.cs index d4ac089236..4672559741 100644 --- a/Content.Client/Parallax/Data/ImageParallaxTextureSource.cs +++ b/Content.Client/Parallax/Data/ImageParallaxTextureSource.cs @@ -10,13 +10,13 @@ namespace Content.Client.Parallax.Data; [UsedImplicitly] [DataDefinition] -public sealed class ImageParallaxTextureSource : IParallaxTextureSource +public sealed partial class ImageParallaxTextureSource : IParallaxTextureSource { /// /// Texture path. /// [DataField("path", required: true)] - public ResPath Path { get; } = default!; + public ResPath Path { get; private set; } = default!; Task IParallaxTextureSource.GenerateTexture(CancellationToken cancel) { diff --git a/Content.Client/Parallax/Data/ParallaxLayerConfig.cs b/Content.Client/Parallax/Data/ParallaxLayerConfig.cs index 556a0a3a4a..cca8c6df15 100644 --- a/Content.Client/Parallax/Data/ParallaxLayerConfig.cs +++ b/Content.Client/Parallax/Data/ParallaxLayerConfig.cs @@ -6,7 +6,7 @@ namespace Content.Client.Parallax.Data; /// The configuration for a parallax layer. /// [DataDefinition] -public sealed class ParallaxLayerConfig +public sealed partial class ParallaxLayerConfig { /// /// The texture source for this layer. diff --git a/Content.Client/Parallax/Data/ParallaxPrototype.cs b/Content.Client/Parallax/Data/ParallaxPrototype.cs index cfba2bb826..32b79717c7 100644 --- a/Content.Client/Parallax/Data/ParallaxPrototype.cs +++ b/Content.Client/Parallax/Data/ParallaxPrototype.cs @@ -15,23 +15,23 @@ public sealed class ParallaxPrototype : IPrototype { /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Parallax layers. /// [DataField("layers")] - public List Layers { get; } = new(); + public List Layers { get; private set; } = new(); /// /// Parallax layers, low-quality. /// [DataField("layersLQ")] - public List LayersLQ { get; } = new(); + public List LayersLQ { get; private set; } = new(); /// /// If low-quality layers don't exist for this parallax and high-quality should be used instead. /// [DataField("layersLQUseHQ")] - public bool LayersLQUseHQ { get; } = true; + public bool LayersLQUseHQ { get; private set; } = true; } diff --git a/Content.Client/ParticleAccelerator/ParticleAcceleratorPartVisualizerComponent.cs b/Content.Client/ParticleAccelerator/ParticleAcceleratorPartVisualizerComponent.cs index 78fa4cf8fb..8b3a9f8b9b 100644 --- a/Content.Client/ParticleAccelerator/ParticleAcceleratorPartVisualizerComponent.cs +++ b/Content.Client/ParticleAccelerator/ParticleAcceleratorPartVisualizerComponent.cs @@ -4,7 +4,7 @@ namespace Content.Client.ParticleAccelerator; [RegisterComponent] [Access(typeof(ParticleAcceleratorPartVisualizerSystem))] -public sealed class ParticleAcceleratorPartVisualsComponent : Component +public sealed partial class ParticleAcceleratorPartVisualsComponent : Component { [DataField("stateBase", required: true)] [ViewVariables(VVAccess.ReadWrite)] @@ -12,7 +12,7 @@ public sealed class ParticleAcceleratorPartVisualsComponent : Component [DataField("stateSuffixes")] [ViewVariables(VVAccess.ReadWrite)] - public readonly Dictionary StatesSuffixes = new() + public Dictionary StatesSuffixes = new() { {ParticleAcceleratorVisualState.Powered, "p"}, {ParticleAcceleratorVisualState.Level0, "p0"}, diff --git a/Content.Client/Pointing/Components/PointingArrowComponent.cs b/Content.Client/Pointing/Components/PointingArrowComponent.cs index 223f48a48f..0d3bc4a5cc 100644 --- a/Content.Client/Pointing/Components/PointingArrowComponent.cs +++ b/Content.Client/Pointing/Components/PointingArrowComponent.cs @@ -3,21 +3,21 @@ using Content.Shared.Pointing.Components; namespace Content.Client.Pointing.Components; [RegisterComponent] -public sealed class PointingArrowComponent : SharedPointingArrowComponent +public sealed partial class PointingArrowComponent : SharedPointingArrowComponent { /// /// How long it takes to go from the bottom of the animation to the top. /// [ViewVariables(VVAccess.ReadWrite)] [DataField("animationTime")] - public readonly float AnimationTime = 0.5f; + public float AnimationTime = 0.5f; /// /// How far it goes in any direction. /// [ViewVariables(VVAccess.ReadWrite)] [DataField("offset")] - public readonly Vector2 Offset = new(0, 0.25f); + public Vector2 Offset = new(0, 0.25f); public readonly string AnimationKey = "pointingarrow"; } diff --git a/Content.Client/Pointing/Components/RoguePointingArrowComponent.cs b/Content.Client/Pointing/Components/RoguePointingArrowComponent.cs index 970d020bb5..2d1a101d9f 100644 --- a/Content.Client/Pointing/Components/RoguePointingArrowComponent.cs +++ b/Content.Client/Pointing/Components/RoguePointingArrowComponent.cs @@ -7,7 +7,7 @@ using DrawDepth = Content.Shared.DrawDepth.DrawDepth; namespace Content.Client.Pointing.Components { [RegisterComponent] - public sealed class RoguePointingArrowComponent : SharedRoguePointingArrowComponent + public sealed partial class RoguePointingArrowComponent : SharedRoguePointingArrowComponent { } } diff --git a/Content.Client/Power/APC/ApcVisualizerComponent.cs b/Content.Client/Power/APC/ApcVisualizerComponent.cs index d3f0b33b05..1f66a7791a 100644 --- a/Content.Client/Power/APC/ApcVisualizerComponent.cs +++ b/Content.Client/Power/APC/ApcVisualizerComponent.cs @@ -4,7 +4,7 @@ namespace Content.Client.Power.APC; [RegisterComponent] [Access(typeof(ApcVisualizerSystem))] -public sealed class ApcVisualsComponent : Component +public sealed partial class ApcVisualsComponent : Component { #region Indicators diff --git a/Content.Client/Power/Generation/Teg/TegCirculatorComponent.cs b/Content.Client/Power/Generation/Teg/TegCirculatorComponent.cs index 486f5505f9..f11af1d730 100644 --- a/Content.Client/Power/Generation/Teg/TegCirculatorComponent.cs +++ b/Content.Client/Power/Generation/Teg/TegCirculatorComponent.cs @@ -2,7 +2,7 @@ /// [RegisterComponent] -public sealed class TegCirculatorComponent : Component +public sealed partial class TegCirculatorComponent : Component { } diff --git a/Content.Client/Power/SMES/SmesComponent.cs b/Content.Client/Power/SMES/SmesComponent.cs index 155a40c8e2..c620b466e0 100644 --- a/Content.Client/Power/SMES/SmesComponent.cs +++ b/Content.Client/Power/SMES/SmesComponent.cs @@ -1,7 +1,7 @@ namespace Content.Client.Power.SMES; [RegisterComponent] -public sealed class SmesComponent : Component +public sealed partial class SmesComponent : Component { /// /// The prefix used for the RSI states of the sprite layers indicating the charge level of the SMES. @@ -9,7 +9,7 @@ public sealed class SmesComponent : Component [DataField("chargeOverlayPrefix")] [ViewVariables(VVAccess.ReadWrite)] public string ChargeOverlayPrefix = "smes-og"; - + /// /// The prefix used for the RSI states of the sprite layers indicating the input state of the SMES. /// Actually bundled together with the output indicator light. @@ -17,7 +17,7 @@ public sealed class SmesComponent : Component [DataField("inputOverlayPrefix")] [ViewVariables(VVAccess.ReadWrite)] public string InputOverlayPrefix = "smes-oc"; - + /// /// The prefix used for the RSI states of the sprite layers indicating the output state of the SMES. /// Actually bundled together with the input indicator light. diff --git a/Content.Client/Power/Visualizers/CableVisualizerComponent.cs b/Content.Client/Power/Visualizers/CableVisualizerComponent.cs index a03f49e97d..c88d92423b 100644 --- a/Content.Client/Power/Visualizers/CableVisualizerComponent.cs +++ b/Content.Client/Power/Visualizers/CableVisualizerComponent.cs @@ -1,7 +1,7 @@ namespace Content.Client.Power.Visualizers; [RegisterComponent] -public sealed class CableVisualizerComponent : Component +public sealed partial class CableVisualizerComponent : Component { [DataField("statePrefix")] public string? StatePrefix; diff --git a/Content.Client/PowerCell/PowerCellVisualsComponent.cs b/Content.Client/PowerCell/PowerCellVisualsComponent.cs index 7238ef6b93..37dfd78839 100644 --- a/Content.Client/PowerCell/PowerCellVisualsComponent.cs +++ b/Content.Client/PowerCell/PowerCellVisualsComponent.cs @@ -1,4 +1,4 @@ namespace Content.Client.PowerCell; [RegisterComponent] -public sealed class PowerCellVisualsComponent : Component {} +public sealed partial class PowerCellVisualsComponent : Component {} diff --git a/Content.Client/PowerCell/PowerChargerVisualizerComponent.cs b/Content.Client/PowerCell/PowerChargerVisualizerComponent.cs index bc86cf751c..d96830b5f8 100644 --- a/Content.Client/PowerCell/PowerChargerVisualizerComponent.cs +++ b/Content.Client/PowerCell/PowerChargerVisualizerComponent.cs @@ -4,7 +4,7 @@ namespace Content.Client.PowerCell; [RegisterComponent] [Access(typeof(PowerChargerVisualizerSystem))] -public sealed class PowerChargerVisualsComponent : Component +public sealed partial class PowerChargerVisualsComponent : Component { /// /// The base sprite state used if the power cell charger does not contain a power cell. @@ -12,14 +12,14 @@ public sealed class PowerChargerVisualsComponent : Component [DataField("emptyState")] [ViewVariables(VVAccess.ReadWrite)] public string EmptyState = "empty"; - + /// /// The base sprite state used if the power cell charger contains a power cell. /// [DataField("occupiedState")] [ViewVariables(VVAccess.ReadWrite)] public string OccupiedState = "full"; - + /// /// A mapping of the indicator light overlays for the power cell charger. /// Maps to the state used when the charger is out of power/disabled. @@ -29,7 +29,7 @@ public sealed class PowerChargerVisualsComponent : Component /// [DataField("lightStates")] [ViewVariables(VVAccess.ReadWrite)] - public readonly Dictionary LightStates = new() + public Dictionary LightStates = new() { [CellChargerStatus.Off] = "light-off", [CellChargerStatus.Empty] = "light-empty", diff --git a/Content.Client/Replay/Spectator/ReplaySpectatorComponent.cs b/Content.Client/Replay/Spectator/ReplaySpectatorComponent.cs index 509240a386..06db1904dd 100644 --- a/Content.Client/Replay/Spectator/ReplaySpectatorComponent.cs +++ b/Content.Client/Replay/Spectator/ReplaySpectatorComponent.cs @@ -4,6 +4,6 @@ namespace Content.Client.Replay.Spectator; /// This component indicates that this entity currently has a replay spectator/observer attached to it. /// [RegisterComponent] -public sealed class ReplaySpectatorComponent : Component +public sealed partial class ReplaySpectatorComponent : Component { } diff --git a/Content.Client/Rotation/RotationVisualsComponent.cs b/Content.Client/Rotation/RotationVisualsComponent.cs index 103ee6b5d3..1cb1118a84 100644 --- a/Content.Client/Rotation/RotationVisualsComponent.cs +++ b/Content.Client/Rotation/RotationVisualsComponent.cs @@ -1,11 +1,11 @@ namespace Content.Client.Rotation; [RegisterComponent] -public sealed class RotationVisualsComponent : Component +public sealed partial class RotationVisualsComponent : Component { [DataField("defaultRotation")] [ViewVariables(VVAccess.ReadOnly)] - public readonly Angle DefaultRotation = Angle.FromDegrees(90); + public Angle DefaultRotation = Angle.FromDegrees(90); [ViewVariables(VVAccess.ReadWrite)] public Angle VerticalRotation = 0; diff --git a/Content.Client/Salvage/SalvageExpeditionComponent.cs b/Content.Client/Salvage/SalvageExpeditionComponent.cs index 0c3bdd15a6..2df858e935 100644 --- a/Content.Client/Salvage/SalvageExpeditionComponent.cs +++ b/Content.Client/Salvage/SalvageExpeditionComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Salvage.Expeditions; namespace Content.Client.Salvage; [RegisterComponent] -public sealed class SalvageExpeditionComponent : SharedSalvageExpeditionComponent +public sealed partial class SalvageExpeditionComponent : SharedSalvageExpeditionComponent { } diff --git a/Content.Client/Salvage/SalvageMagnetComponent.cs b/Content.Client/Salvage/SalvageMagnetComponent.cs index a681c00d7b..83b765583d 100644 --- a/Content.Client/Salvage/SalvageMagnetComponent.cs +++ b/Content.Client/Salvage/SalvageMagnetComponent.cs @@ -4,4 +4,4 @@ using Robust.Shared.GameStates; namespace Content.Client.Salvage; [NetworkedComponent, RegisterComponent] -public sealed class SalvageMagnetComponent : SharedSalvageMagnetComponent {} +public sealed partial class SalvageMagnetComponent : SharedSalvageMagnetComponent {} diff --git a/Content.Client/Shuttles/ShuttleConsoleComponent.cs b/Content.Client/Shuttles/ShuttleConsoleComponent.cs index da6b914794..53b0dee848 100644 --- a/Content.Client/Shuttles/ShuttleConsoleComponent.cs +++ b/Content.Client/Shuttles/ShuttleConsoleComponent.cs @@ -3,5 +3,5 @@ using Content.Shared.Shuttles.Components; namespace Content.Client.Shuttles { [RegisterComponent] - public sealed class ShuttleConsoleComponent : SharedShuttleConsoleComponent {} + public sealed partial class ShuttleConsoleComponent : SharedShuttleConsoleComponent {} } diff --git a/Content.Client/Shuttles/ThrusterComponent.cs b/Content.Client/Shuttles/ThrusterComponent.cs index 85795b24a8..5fbeaf8a14 100644 --- a/Content.Client/Shuttles/ThrusterComponent.cs +++ b/Content.Client/Shuttles/ThrusterComponent.cs @@ -7,6 +7,6 @@ namespace Content.Client.Shuttles; /// Managed by /// [RegisterComponent, NetworkedComponent, Access(typeof(ThrusterSystem))] -public sealed class ThrusterComponent : Component +public sealed partial class ThrusterComponent : Component { } diff --git a/Content.Client/Singularity/Visualizers/RadiationCollectorComponent.cs b/Content.Client/Singularity/Visualizers/RadiationCollectorComponent.cs index 218e10ceca..4564e789eb 100644 --- a/Content.Client/Singularity/Visualizers/RadiationCollectorComponent.cs +++ b/Content.Client/Singularity/Visualizers/RadiationCollectorComponent.cs @@ -8,7 +8,7 @@ namespace Content.Client.Singularity.Visualizers; /// [RegisterComponent] [Access(typeof(RadiationCollectorSystem))] -public sealed class RadiationCollectorComponent : Component +public sealed partial class RadiationCollectorComponent : Component { /// /// The key used to index the (de)activation animations played when turning a radiation collector on/off. diff --git a/Content.Client/Smoking/BurnStateVisualsComponent.cs b/Content.Client/Smoking/BurnStateVisualsComponent.cs index 42eb026785..c32e04e520 100644 --- a/Content.Client/Smoking/BurnStateVisualsComponent.cs +++ b/Content.Client/Smoking/BurnStateVisualsComponent.cs @@ -1,7 +1,7 @@ namespace Content.Client.Smoking; [RegisterComponent] -public sealed class BurnStateVisualsComponent : Component +public sealed partial class BurnStateVisualsComponent : Component { [DataField("burntIcon")] public string BurntIcon = "burnt-icon"; diff --git a/Content.Client/Sprite/FadingSpriteComponent.cs b/Content.Client/Sprite/FadingSpriteComponent.cs index ea211df2bb..23161dc15f 100644 --- a/Content.Client/Sprite/FadingSpriteComponent.cs +++ b/Content.Client/Sprite/FadingSpriteComponent.cs @@ -6,7 +6,7 @@ namespace Content.Client.Sprite; /// The non-networked client-only component to track active /// [RegisterComponent, Access(typeof(SpriteFadeSystem))] -public sealed class FadingSpriteComponent : Component +public sealed partial class FadingSpriteComponent : Component { [ViewVariables] public float OriginalAlpha; diff --git a/Content.Client/Storage/ClientStorageComponent.cs b/Content.Client/Storage/ClientStorageComponent.cs index 8f1697510a..19fa84b24f 100644 --- a/Content.Client/Storage/ClientStorageComponent.cs +++ b/Content.Client/Storage/ClientStorageComponent.cs @@ -9,7 +9,7 @@ namespace Content.Client.Storage /// [RegisterComponent] [ComponentReference(typeof(SharedStorageComponent))] - public sealed class ClientStorageComponent : SharedStorageComponent + public sealed partial class ClientStorageComponent : SharedStorageComponent { private List _storedEntities = new(); public override IReadOnlyList StoredEntities => _storedEntities; diff --git a/Content.Client/Storage/Components/EntityStorageComponent.cs b/Content.Client/Storage/Components/EntityStorageComponent.cs index 65b510cf6f..048cf8b54a 100644 --- a/Content.Client/Storage/Components/EntityStorageComponent.cs +++ b/Content.Client/Storage/Components/EntityStorageComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameStates; namespace Content.Client.Storage.Components; [RegisterComponent, ComponentReference(typeof(SharedEntityStorageComponent))] -public sealed class EntityStorageComponent : SharedEntityStorageComponent +public sealed partial class EntityStorageComponent : SharedEntityStorageComponent { } diff --git a/Content.Client/Storage/Visualizers/EntityStorageVisualsComponent.cs b/Content.Client/Storage/Visualizers/EntityStorageVisualsComponent.cs index c3e8e5da9f..2635608421 100644 --- a/Content.Client/Storage/Visualizers/EntityStorageVisualsComponent.cs +++ b/Content.Client/Storage/Visualizers/EntityStorageVisualsComponent.cs @@ -2,7 +2,7 @@ namespace Content.Client.Storage.Visualizers; [RegisterComponent] [Access(typeof(EntityStorageVisualizerSystem))] -public sealed class EntityStorageVisualsComponent : Component +public sealed partial class EntityStorageVisualsComponent : Component { /// /// The RSI state used for the base layer of the storage entity sprite while the storage is closed. diff --git a/Content.Client/SubFloor/TrayRevealedComponent.cs b/Content.Client/SubFloor/TrayRevealedComponent.cs index e1a8b0caf3..5c2f9f596d 100644 --- a/Content.Client/SubFloor/TrayRevealedComponent.cs +++ b/Content.Client/SubFloor/TrayRevealedComponent.cs @@ -4,7 +4,7 @@ namespace Content.Client.SubFloor; /// Added clientside if an entity is revealed for TRay. /// [RegisterComponent] -public sealed class TrayRevealedComponent : Component +public sealed partial class TrayRevealedComponent : Component { } diff --git a/Content.Client/SurveillanceCamera/ActiveSurveillanceCameraMonitor.cs b/Content.Client/SurveillanceCamera/ActiveSurveillanceCameraMonitor.cs index 37df3df0a9..6b038a3a4a 100644 --- a/Content.Client/SurveillanceCamera/ActiveSurveillanceCameraMonitor.cs +++ b/Content.Client/SurveillanceCamera/ActiveSurveillanceCameraMonitor.cs @@ -1,7 +1,7 @@ namespace Content.Client.SurveillanceCamera; [RegisterComponent] -public sealed class ActiveSurveillanceCameraMonitorVisualsComponent : Component +public sealed partial class ActiveSurveillanceCameraMonitorVisualsComponent : Component { public float TimeLeft = 10f; diff --git a/Content.Client/SurveillanceCamera/SurveillanceCameraVisualsComponent.cs b/Content.Client/SurveillanceCamera/SurveillanceCameraVisualsComponent.cs index 3883b2e48f..a4f7316a87 100644 --- a/Content.Client/SurveillanceCamera/SurveillanceCameraVisualsComponent.cs +++ b/Content.Client/SurveillanceCamera/SurveillanceCameraVisualsComponent.cs @@ -5,8 +5,8 @@ namespace Content.Client.SurveillanceCamera; // Dummy component so that targetted events work on client for // appearance events. [RegisterComponent] -public sealed class SurveillanceCameraVisualsComponent : Component +public sealed partial class SurveillanceCameraVisualsComponent : Component { [DataField("sprites")] - public readonly Dictionary CameraSprites = new(); + public Dictionary CameraSprites = new(); } diff --git a/Content.Client/TextScreen/TextScreenTimerComponent.cs b/Content.Client/TextScreen/TextScreenTimerComponent.cs index c87f103519..9034f763d1 100644 --- a/Content.Client/TextScreen/TextScreenTimerComponent.cs +++ b/Content.Client/TextScreen/TextScreenTimerComponent.cs @@ -4,7 +4,7 @@ /// This is an active component for tracking /// [RegisterComponent] -public sealed class TextScreenTimerComponent : Component +public sealed partial class TextScreenTimerComponent : Component { } diff --git a/Content.Client/TextScreen/TextScreenVisualsComponent.cs b/Content.Client/TextScreen/TextScreenVisualsComponent.cs index 4a5338cba9..c3ee23928c 100644 --- a/Content.Client/TextScreen/TextScreenVisualsComponent.cs +++ b/Content.Client/TextScreen/TextScreenVisualsComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Client.TextScreen; [RegisterComponent] -public sealed class TextScreenVisualsComponent : Component +public sealed partial class TextScreenVisualsComponent : Component { /// /// 1/32 - the size of a pixel diff --git a/Content.Client/Toggleable/ToggleableLightVisualsComponent.cs b/Content.Client/Toggleable/ToggleableLightVisualsComponent.cs index 628726c3c1..8acdef1e05 100644 --- a/Content.Client/Toggleable/ToggleableLightVisualsComponent.cs +++ b/Content.Client/Toggleable/ToggleableLightVisualsComponent.cs @@ -10,7 +10,7 @@ namespace Content.Client.Toggleable; /// visuals. This will modify the color of any attached point lights. /// [RegisterComponent] -public sealed class ToggleableLightVisualsComponent : Component +public sealed partial class ToggleableLightVisualsComponent : Component { /// /// Sprite layer that will have its visibility toggled when this item is toggled. @@ -28,5 +28,5 @@ public sealed class ToggleableLightVisualsComponent : Component /// Layers to add to the sprite of the player that is wearing this entity (while the component is toggled on). /// [DataField("clothingVisuals")] - public readonly Dictionary> ClothingVisuals = new(); + public Dictionary> ClothingVisuals = new(); } diff --git a/Content.Client/Tools/Components/WeldableComponent.cs b/Content.Client/Tools/Components/WeldableComponent.cs index 36fd9bc911..6e98327768 100644 --- a/Content.Client/Tools/Components/WeldableComponent.cs +++ b/Content.Client/Tools/Components/WeldableComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Tools.Components; namespace Content.Client.Tools.Components; [RegisterComponent] -public sealed class WeldableComponent : SharedWeldableComponent +public sealed partial class WeldableComponent : SharedWeldableComponent { } diff --git a/Content.Client/Tools/Components/WelderComponent.cs b/Content.Client/Tools/Components/WelderComponent.cs index e69814a9d1..a83a78a5a4 100644 --- a/Content.Client/Tools/Components/WelderComponent.cs +++ b/Content.Client/Tools/Components/WelderComponent.cs @@ -4,7 +4,7 @@ using Content.Shared.Tools.Components; namespace Content.Client.Tools.Components { [RegisterComponent, Access(typeof(ToolSystem), typeof(WelderStatusControl))] - public sealed class WelderComponent : SharedWelderComponent + public sealed partial class WelderComponent : SharedWelderComponent { [ViewVariables(VVAccess.ReadWrite)] public bool UiUpdateNeeded { get; set; } diff --git a/Content.Client/Trigger/TimerTriggerVisualizerComponent.cs b/Content.Client/Trigger/TimerTriggerVisualizerComponent.cs index ab8da38abf..0e5a74b83b 100644 --- a/Content.Client/Trigger/TimerTriggerVisualizerComponent.cs +++ b/Content.Client/Trigger/TimerTriggerVisualizerComponent.cs @@ -5,7 +5,7 @@ namespace Content.Client.Trigger; [RegisterComponent] [Access(typeof(TimerTriggerVisualizerSystem))] -public sealed class TimerTriggerVisualsComponent : Component +public sealed partial class TimerTriggerVisualsComponent : Component { /// /// The key used to index the priming animation. diff --git a/Content.Client/UserInterface/Fragments/UIFragment.cs b/Content.Client/UserInterface/Fragments/UIFragment.cs index afdb105783..cadedb38c9 100644 --- a/Content.Client/UserInterface/Fragments/UIFragment.cs +++ b/Content.Client/UserInterface/Fragments/UIFragment.cs @@ -14,7 +14,7 @@ namespace Content.Client.UserInterface.Fragments; /// /// [ImplicitDataDefinitionForInheritors] -public abstract class UIFragment +public abstract partial class UIFragment { public abstract Control GetUIFragmentRoot(); diff --git a/Content.Client/UserInterface/Fragments/UiFragmentComponent.cs b/Content.Client/UserInterface/Fragments/UiFragmentComponent.cs index 4b7f5fcebd..ba2f80d98f 100644 --- a/Content.Client/UserInterface/Fragments/UiFragmentComponent.cs +++ b/Content.Client/UserInterface/Fragments/UiFragmentComponent.cs @@ -8,7 +8,7 @@ /// /// [RegisterComponent] -public sealed class UIFragmentComponent : Component +public sealed partial class UIFragmentComponent : Component { [DataField("ui", true)] public UIFragment? Ui; diff --git a/Content.Client/Weapons/Melee/Components/WeaponArcVisualsComponent.cs b/Content.Client/Weapons/Melee/Components/WeaponArcVisualsComponent.cs index 9c6d55b062..d0f95f7069 100644 --- a/Content.Client/Weapons/Melee/Components/WeaponArcVisualsComponent.cs +++ b/Content.Client/Weapons/Melee/Components/WeaponArcVisualsComponent.cs @@ -4,7 +4,7 @@ namespace Content.Client.Weapons.Melee.Components; /// Used for melee attack animations. Typically just has a fadeout. /// [RegisterComponent] -public sealed class WeaponArcVisualsComponent : Component +public sealed partial class WeaponArcVisualsComponent : Component { [DataField("animation")] public WeaponArcAnimation Animation = WeaponArcAnimation.None; diff --git a/Content.Client/Weapons/Ranged/Components/AmmoCounterComponent.cs b/Content.Client/Weapons/Ranged/Components/AmmoCounterComponent.cs index 22742219c0..2c1dbb1aa1 100644 --- a/Content.Client/Weapons/Ranged/Components/AmmoCounterComponent.cs +++ b/Content.Client/Weapons/Ranged/Components/AmmoCounterComponent.cs @@ -4,7 +4,7 @@ using Robust.Client.UserInterface; namespace Content.Client.Weapons.Ranged.Components; [RegisterComponent] -public sealed class AmmoCounterComponent : SharedAmmoCounterComponent +public sealed partial class AmmoCounterComponent : SharedAmmoCounterComponent { public Control? Control; } diff --git a/Content.Client/Weapons/Ranged/Components/MagazineVisualsComponent.cs b/Content.Client/Weapons/Ranged/Components/MagazineVisualsComponent.cs index 8f8ac3e0cc..373be94a38 100644 --- a/Content.Client/Weapons/Ranged/Components/MagazineVisualsComponent.cs +++ b/Content.Client/Weapons/Ranged/Components/MagazineVisualsComponent.cs @@ -6,7 +6,7 @@ namespace Content.Client.Weapons.Ranged.Components; /// Visualizer for gun mag presence; can change states based on ammo count or toggle visibility entirely. /// [RegisterComponent, Access(typeof(GunSystem))] -public sealed class MagazineVisualsComponent : Component +public sealed partial class MagazineVisualsComponent : Component { /// /// What RsiState we use. diff --git a/Content.Client/Weapons/Ranged/Components/SpentAmmoVisualsComponent.cs b/Content.Client/Weapons/Ranged/Components/SpentAmmoVisualsComponent.cs index 6e16f40fa3..665ebf7145 100644 --- a/Content.Client/Weapons/Ranged/Components/SpentAmmoVisualsComponent.cs +++ b/Content.Client/Weapons/Ranged/Components/SpentAmmoVisualsComponent.cs @@ -3,7 +3,7 @@ using Content.Client.Weapons.Ranged.Systems; namespace Content.Client.Weapons.Ranged.Components; [RegisterComponent, Access(typeof(GunSystem))] -public sealed class SpentAmmoVisualsComponent : Component +public sealed partial class SpentAmmoVisualsComponent : Component { /// /// Should we do "{_state}-spent" or just "spent" diff --git a/Content.Client/Wires/WiresVisualsComponent.cs b/Content.Client/Wires/WiresVisualsComponent.cs index f2c7e47740..c58c121c10 100644 --- a/Content.Client/Wires/WiresVisualsComponent.cs +++ b/Content.Client/Wires/WiresVisualsComponent.cs @@ -1,7 +1,7 @@ namespace Content.Client.Wires { [RegisterComponent] - public sealed class WiresVisualsComponent : Component + public sealed partial class WiresVisualsComponent : Component { } } diff --git a/Content.IntegrationTests/Tests/Chemistry/FixedPoint2SerializationTest.cs b/Content.IntegrationTests/Tests/Chemistry/FixedPoint2SerializationTest.cs index 66918e3a49..8e3b89bff1 100644 --- a/Content.IntegrationTests/Tests/Chemistry/FixedPoint2SerializationTest.cs +++ b/Content.IntegrationTests/Tests/Chemistry/FixedPoint2SerializationTest.cs @@ -51,7 +51,7 @@ namespace Content.IntegrationTests.Tests.Chemistry } [DataDefinition] - public sealed class FixedPoint2TestDefinition + public sealed partial class FixedPoint2TestDefinition { [DataField("unit")] public FixedPoint2? Unit { get; set; } = FixedPoint2.New(5); } diff --git a/Content.IntegrationTests/Tests/DoAfter/DoAfterServerTest.cs b/Content.IntegrationTests/Tests/DoAfter/DoAfterServerTest.cs index 034e264eda..dabfd68853 100644 --- a/Content.IntegrationTests/Tests/DoAfter/DoAfterServerTest.cs +++ b/Content.IntegrationTests/Tests/DoAfter/DoAfterServerTest.cs @@ -10,7 +10,7 @@ namespace Content.IntegrationTests.Tests.DoAfter { [TestFixture] [TestOf(typeof(DoAfterComponent))] - public sealed class DoAfterServerTest + public sealed partial class DoAfterServerTest { [TestPrototypes] private const string Prototypes = @" @@ -21,7 +21,7 @@ namespace Content.IntegrationTests.Tests.DoAfter - type: DoAfter "; - private sealed class TestDoAfterEvent : DoAfterEvent + private sealed partial class TestDoAfterEvent : DoAfterEvent { public override DoAfterEvent Clone() { diff --git a/Content.IntegrationTests/Tests/Serialization/SerializationTest.cs b/Content.IntegrationTests/Tests/Serialization/SerializationTest.cs index bdf68a1161..4d06e4240b 100644 --- a/Content.IntegrationTests/Tests/Serialization/SerializationTest.cs +++ b/Content.IntegrationTests/Tests/Serialization/SerializationTest.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Markdown.Value; namespace Content.IntegrationTests.Tests.Serialization; [TestFixture] -public sealed class SerializationTest +public sealed partial class SerializationTest { /// /// Check that serializing generic enums works as intended. This should really be in engine, but engine @@ -74,7 +74,7 @@ public sealed class SerializationTest private enum TestEnum : byte { Aa, Bb, Cc, Dd } [DataDefinition] - private sealed class TestData + private sealed partial class TestData { [DataField("value")] public Enum Value = default!; [DataField("sequence")] public List Sequence = default!; diff --git a/Content.Server/Abilities/Mime/MimePowersComponent.cs b/Content.Server/Abilities/Mime/MimePowersComponent.cs index 15db6b7709..8d2205cdb6 100644 --- a/Content.Server/Abilities/Mime/MimePowersComponent.cs +++ b/Content.Server/Abilities/Mime/MimePowersComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Abilities.Mime /// Lets its owner entity use mime powers, like placing invisible walls. /// [RegisterComponent] - public sealed class MimePowersComponent : Component + public sealed partial class MimePowersComponent : Component { /// /// Whether this component is active or not. diff --git a/Content.Server/Abilities/Mime/MimePowersSystem.cs b/Content.Server/Abilities/Mime/MimePowersSystem.cs index dc47c8fbc2..1e32bc09c5 100644 --- a/Content.Server/Abilities/Mime/MimePowersSystem.cs +++ b/Content.Server/Abilities/Mime/MimePowersSystem.cs @@ -143,7 +143,7 @@ namespace Content.Server.Abilities.Mime } } - public sealed class InvisibleWallActionEvent : InstantActionEvent + public sealed partial class InvisibleWallActionEvent : InstantActionEvent { } } diff --git a/Content.Server/Access/AccessWireAction.cs b/Content.Server/Access/AccessWireAction.cs index 739e908ee5..4ed9871c40 100644 --- a/Content.Server/Access/AccessWireAction.cs +++ b/Content.Server/Access/AccessWireAction.cs @@ -6,7 +6,7 @@ using Content.Shared.Wires; namespace Content.Server.Access; -public sealed class AccessWireAction : ComponentWireAction +public sealed partial class AccessWireAction : ComponentWireAction { public override Color Color { get; set; } = Color.Green; public override string Name { get; set; } = "wire-name-access"; diff --git a/Content.Server/Access/Components/AgentIDCardComponent.cs b/Content.Server/Access/Components/AgentIDCardComponent.cs index 37b6b25229..4b92b43ea9 100644 --- a/Content.Server/Access/Components/AgentIDCardComponent.cs +++ b/Content.Server/Access/Components/AgentIDCardComponent.cs @@ -4,12 +4,12 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Access.Components { [RegisterComponent] - public sealed class AgentIDCardComponent : Component + public sealed partial class AgentIDCardComponent : Component { /// /// Set of job icons that the agent ID card can show. /// [DataField("icons", customTypeSerializer: typeof(PrototypeIdHashSetSerializer))] - public readonly HashSet Icons = new(); + public HashSet Icons = new(); } } diff --git a/Content.Server/Access/Components/IdExaminableComponent.cs b/Content.Server/Access/Components/IdExaminableComponent.cs index f1b641b6dd..2def517f40 100644 --- a/Content.Server/Access/Components/IdExaminableComponent.cs +++ b/Content.Server/Access/Components/IdExaminableComponent.cs @@ -3,6 +3,6 @@ namespace Content.Server.Access.Components; [RegisterComponent, Access(typeof(IdExaminableSystem))] -public sealed class IdExaminableComponent : Component +public sealed partial class IdExaminableComponent : Component { } diff --git a/Content.Server/Access/Components/PresetIdCardComponent.cs b/Content.Server/Access/Components/PresetIdCardComponent.cs index 76c650995b..89850866d6 100644 --- a/Content.Server/Access/Components/PresetIdCardComponent.cs +++ b/Content.Server/Access/Components/PresetIdCardComponent.cs @@ -1,9 +1,9 @@ namespace Content.Server.Access.Components { [RegisterComponent] - public sealed class PresetIdCardComponent : Component + public sealed partial class PresetIdCardComponent : Component { [DataField("job")] - public readonly string? JobName; + public string? JobName; } } diff --git a/Content.Server/Actions/ActionOnInteractComponent.cs b/Content.Server/Actions/ActionOnInteractComponent.cs index 5158130cb8..a668ee43f3 100644 --- a/Content.Server/Actions/ActionOnInteractComponent.cs +++ b/Content.Server/Actions/ActionOnInteractComponent.cs @@ -17,7 +17,7 @@ namespace Content.Server.Actions; /// This component mainly exists as a lazy way to add utility entities that can do things like cast "spells". /// [RegisterComponent] -public sealed class ActionOnInteractComponent : Component +public sealed partial class ActionOnInteractComponent : Component { [DataField("activateActions")] public List? ActivateActions; diff --git a/Content.Server/Administration/Components/BufferingComponent.cs b/Content.Server/Administration/Components/BufferingComponent.cs index 1bdefe021d..1f80376596 100644 --- a/Content.Server/Administration/Components/BufferingComponent.cs +++ b/Content.Server/Administration/Components/BufferingComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.Administration.Components; [RegisterComponent, Access(typeof(BufferingSystem))] -public sealed class BufferingComponent : Component +public sealed partial class BufferingComponent : Component { [DataField("minBufferTime")] public float MinimumBufferTime = 0.5f; diff --git a/Content.Server/Administration/Components/HeadstandComponent.cs b/Content.Server/Administration/Components/HeadstandComponent.cs index 0b71311281..8472b5ad36 100644 --- a/Content.Server/Administration/Components/HeadstandComponent.cs +++ b/Content.Server/Administration/Components/HeadstandComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameStates; namespace Content.Server.Administration.Components; [RegisterComponent, NetworkedComponent] -public sealed class HeadstandComponent : SharedHeadstandComponent +public sealed partial class HeadstandComponent : SharedHeadstandComponent { } diff --git a/Content.Server/Administration/Components/KillSignComponent.cs b/Content.Server/Administration/Components/KillSignComponent.cs index 97ae88994f..e29ce202dd 100644 --- a/Content.Server/Administration/Components/KillSignComponent.cs +++ b/Content.Server/Administration/Components/KillSignComponent.cs @@ -4,5 +4,5 @@ using Robust.Shared.GameStates; namespace Content.Server.Administration.Components; [NetworkedComponent, RegisterComponent] -public sealed class KillSignComponent : SharedKillSignComponent +public sealed partial class KillSignComponent : SharedKillSignComponent { } diff --git a/Content.Server/Administration/Components/StationInfiniteBatteryTargetComponent.cs b/Content.Server/Administration/Components/StationInfiniteBatteryTargetComponent.cs index 2ef7c26c79..5543d5ed8c 100644 --- a/Content.Server/Administration/Components/StationInfiniteBatteryTargetComponent.cs +++ b/Content.Server/Administration/Components/StationInfiniteBatteryTargetComponent.cs @@ -4,7 +4,7 @@ /// This is used for the admin map-wide/station-wide/grid-wide infinite power trick. /// [RegisterComponent] -public sealed class StationInfiniteBatteryTargetComponent : Component +public sealed partial class StationInfiniteBatteryTargetComponent : Component { } diff --git a/Content.Server/Advertise/AdvertiseComponent.cs b/Content.Server/Advertise/AdvertiseComponent.cs index 027c90f7e5..f36cc7ae1e 100644 --- a/Content.Server/Advertise/AdvertiseComponent.cs +++ b/Content.Server/Advertise/AdvertiseComponent.cs @@ -4,14 +4,14 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Advertise { [RegisterComponent, Access(typeof(AdvertiseSystem))] - public sealed class AdvertiseComponent : Component + public sealed partial class AdvertiseComponent : Component { /// /// Minimum time in seconds to wait before saying a new ad, in seconds. Has to be larger than or equal to 1. /// [ViewVariables(VVAccess.ReadWrite)] [DataField("minWait")] - public int MinimumWait { get; } = 8 * 60; + public int MinimumWait { get; private set; } = 8 * 60; /// /// Maximum time in seconds to wait before saying a new ad, in seconds. Has to be larger than or equal @@ -19,13 +19,13 @@ namespace Content.Server.Advertise /// [ViewVariables(VVAccess.ReadWrite)] [DataField("maxWait")] - public int MaximumWait { get; } = 10 * 60; + public int MaximumWait { get; private set; } = 10 * 60; /// /// The identifier for the advertisements pack prototype. /// [DataField("pack", customTypeSerializer:typeof(PrototypeIdSerializer), required: true)] - public string PackPrototypeId { get; } = string.Empty; + public string PackPrototypeId { get; private set; } = string.Empty; /// /// The next time an advertisement will be said. diff --git a/Content.Server/Advertisements/AdvertisementsPackPrototype.cs b/Content.Server/Advertisements/AdvertisementsPackPrototype.cs index f6cf8256a9..31443573d3 100644 --- a/Content.Server/Advertisements/AdvertisementsPackPrototype.cs +++ b/Content.Server/Advertisements/AdvertisementsPackPrototype.cs @@ -7,9 +7,9 @@ namespace Content.Server.Advertisements { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("advertisements")] - public List Advertisements { get; } = new(); + public List Advertisements { get; private set; } = new(); } } diff --git a/Content.Server/Alert/Click/BreakVow.cs b/Content.Server/Alert/Click/BreakVow.cs index 5956973991..93cf42726a 100644 --- a/Content.Server/Alert/Click/BreakVow.cs +++ b/Content.Server/Alert/Click/BreakVow.cs @@ -7,7 +7,7 @@ namespace Content.Server.Alert.Click /// Break your mime vows /// [DataDefinition] - public sealed class BreakVow : IAlertClick + public sealed partial class BreakVow : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/Alert/Click/RemoveCuffs.cs b/Content.Server/Alert/Click/RemoveCuffs.cs index f46ba3c106..b55484283a 100644 --- a/Content.Server/Alert/Click/RemoveCuffs.cs +++ b/Content.Server/Alert/Click/RemoveCuffs.cs @@ -9,7 +9,7 @@ namespace Content.Server.Alert.Click /// [UsedImplicitly] [DataDefinition] - public sealed class RemoveCuffs : IAlertClick + public sealed partial class RemoveCuffs : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/Alert/Click/RemoveEnsnare.cs b/Content.Server/Alert/Click/RemoveEnsnare.cs index f821ca3ca9..c33f4ae341 100644 --- a/Content.Server/Alert/Click/RemoveEnsnare.cs +++ b/Content.Server/Alert/Click/RemoveEnsnare.cs @@ -6,7 +6,7 @@ using JetBrains.Annotations; namespace Content.Server.Alert.Click; [UsedImplicitly] [DataDefinition] -public sealed class RemoveEnsnare : IAlertClick +public sealed partial class RemoveEnsnare : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/Alert/Click/ResistFire.cs b/Content.Server/Alert/Click/ResistFire.cs index 9ce89ab48b..9ae49c3f45 100644 --- a/Content.Server/Alert/Click/ResistFire.cs +++ b/Content.Server/Alert/Click/ResistFire.cs @@ -10,7 +10,7 @@ namespace Content.Server.Alert.Click /// [UsedImplicitly] [DataDefinition] - public sealed class ResistFire : IAlertClick + public sealed partial class ResistFire : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/Alert/Click/RetakeVow.cs b/Content.Server/Alert/Click/RetakeVow.cs index 1996461c47..e3787180d5 100644 --- a/Content.Server/Alert/Click/RetakeVow.cs +++ b/Content.Server/Alert/Click/RetakeVow.cs @@ -7,7 +7,7 @@ namespace Content.Server.Alert.Click /// Retake your mime vows /// [DataDefinition] - public sealed class RetakeVow : IAlertClick + public sealed partial class RetakeVow : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/Alert/Click/StopBeingPulled.cs b/Content.Server/Alert/Click/StopBeingPulled.cs index de0f39d27a..5ea3e29e3e 100644 --- a/Content.Server/Alert/Click/StopBeingPulled.cs +++ b/Content.Server/Alert/Click/StopBeingPulled.cs @@ -11,7 +11,7 @@ namespace Content.Server.Alert.Click /// [UsedImplicitly] [DataDefinition] - public sealed class StopBeingPulled : IAlertClick + public sealed partial class StopBeingPulled : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/Alert/Click/StopPiloting.cs b/Content.Server/Alert/Click/StopPiloting.cs index 391ec7de91..cd4e333c0a 100644 --- a/Content.Server/Alert/Click/StopPiloting.cs +++ b/Content.Server/Alert/Click/StopPiloting.cs @@ -10,7 +10,7 @@ namespace Content.Server.Alert.Click /// [UsedImplicitly] [DataDefinition] - public sealed class StopPiloting : IAlertClick + public sealed partial class StopPiloting : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/Alert/Click/StopPulling.cs b/Content.Server/Alert/Click/StopPulling.cs index 45ae14172f..00a4149598 100644 --- a/Content.Server/Alert/Click/StopPulling.cs +++ b/Content.Server/Alert/Click/StopPulling.cs @@ -10,7 +10,7 @@ namespace Content.Server.Alert.Click /// [UsedImplicitly] [DataDefinition] - public sealed class StopPulling : IAlertClick + public sealed partial class StopPulling : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/Alert/Click/ToggleInternals.cs b/Content.Server/Alert/Click/ToggleInternals.cs index 7772b704d6..523db04df3 100644 --- a/Content.Server/Alert/Click/ToggleInternals.cs +++ b/Content.Server/Alert/Click/ToggleInternals.cs @@ -9,7 +9,7 @@ namespace Content.Server.Alert.Click; /// [UsedImplicitly] [DataDefinition] -public sealed class ToggleInternals : IAlertClick +public sealed partial class ToggleInternals : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/Alert/Click/Unbuckle.cs b/Content.Server/Alert/Click/Unbuckle.cs index b0a4e19099..3e53955d8c 100644 --- a/Content.Server/Alert/Click/Unbuckle.cs +++ b/Content.Server/Alert/Click/Unbuckle.cs @@ -9,7 +9,7 @@ namespace Content.Server.Alert.Click /// [UsedImplicitly] [DataDefinition] - public sealed class Unbuckle : IAlertClick + public sealed partial class Unbuckle : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/AlertLevel/AlertLevelComponent.cs b/Content.Server/AlertLevel/AlertLevelComponent.cs index f25e8aafc5..cb45c6b40e 100644 --- a/Content.Server/AlertLevel/AlertLevelComponent.cs +++ b/Content.Server/AlertLevel/AlertLevelComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.AlertLevel; /// signify its alert level state. /// [RegisterComponent] -public sealed class AlertLevelComponent : Component +public sealed partial class AlertLevelComponent : Component { /// /// The current set of alert levels on the station. diff --git a/Content.Server/AlertLevel/AlertLevelPrototype.cs b/Content.Server/AlertLevel/AlertLevelPrototype.cs index a048a9d9f0..6716203b25 100644 --- a/Content.Server/AlertLevel/AlertLevelPrototype.cs +++ b/Content.Server/AlertLevel/AlertLevelPrototype.cs @@ -19,7 +19,7 @@ public sealed class AlertLevelPrototype : IPrototype /// Default level that the station is on upon initialization. /// If this isn't in the dictionary, this will default to whatever .First() gives. /// - [DataField("defaultLevel")] public string DefaultLevel { get; } = default!; + [DataField("defaultLevel")] public string DefaultLevel { get; private set; } = default!; } /// @@ -27,17 +27,17 @@ public sealed class AlertLevelPrototype : IPrototype /// the Levels field in AlertLevelPrototype. /// [DataDefinition] -public sealed class AlertLevelDetail +public sealed partial class AlertLevelDetail { /// /// What is announced upon this alert level change. Can be a localized string. /// - [DataField("announcement")] public string Announcement { get; } = string.Empty; + [DataField("announcement")] public string Announcement { get; private set; } = string.Empty; /// /// Whether this alert level is selectable from a communications console. /// - [DataField("selectable")] public bool Selectable { get; } = true; + [DataField("selectable")] public bool Selectable { get; private set; } = true; /// /// If this alert level disables user selection while it is active. Beware - @@ -45,31 +45,31 @@ public sealed class AlertLevelDetail /// This should only apply to entities or gamemodes that auto-select an alert level, /// such as a nuclear bomb being set to active. /// - [DataField("disableSelection")] public bool DisableSelection { get; } + [DataField("disableSelection")] public bool DisableSelection { get; private set; } /// /// The sound that this alert level will play in-game once selected. /// - [DataField("sound")] public SoundSpecifier? Sound { get; } + [DataField("sound")] public SoundSpecifier? Sound { get; private set; } /// /// The color that this alert level will show in-game in chat. /// - [DataField("color")] public Color Color { get; } = Color.White; + [DataField("color")] public Color Color { get; private set; } = Color.White; /// /// The color to turn emergency lights on this station when they are active. /// - [DataField("emergencyLightColor")] public Color EmergencyLightColor { get; } = Color.FromHex("#FF4020"); + [DataField("emergencyLightColor")] public Color EmergencyLightColor { get; private set; } = Color.FromHex("#FF4020"); /// /// Will this alert level force emergency lights on for the station that's active? /// - [DataField("forceEnableEmergencyLights")] public bool ForceEnableEmergencyLights { get; } = false; + [DataField("forceEnableEmergencyLights")] public bool ForceEnableEmergencyLights { get; private set; } = false; /// /// How long it takes for the shuttle to arrive when called. /// - [DataField("shuttleTime")] public TimeSpan ShuttleTime { get; } = TimeSpan.FromMinutes(5); + [DataField("shuttleTime")] public TimeSpan ShuttleTime { get; private set; } = TimeSpan.FromMinutes(5); } diff --git a/Content.Server/Ame/Components/AmeControllerComponent.cs b/Content.Server/Ame/Components/AmeControllerComponent.cs index e9e8e48b6c..42bfa5303d 100644 --- a/Content.Server/Ame/Components/AmeControllerComponent.cs +++ b/Content.Server/Ame/Components/AmeControllerComponent.cs @@ -6,12 +6,12 @@ using Robust.Shared.Containers; namespace Content.Server.Ame.Components; /// -/// The component used to make an entity the controller/fuel injector port of an AntiMatter Engine. +/// The component used to make an entity the controller/fuel injector port of an AntiMatter Engine. /// Connects to adjacent entities with this component or to make an AME. /// [Access(typeof(AmeControllerSystem), typeof(AmeNodeGroup))] [RegisterComponent] -public sealed class AmeControllerComponent : SharedAmeControllerComponent +public sealed partial class AmeControllerComponent : SharedAmeControllerComponent { /// /// The id of the container used to store the current fuel container for the AME. diff --git a/Content.Server/Ame/Components/AmeFuelContainerComponent.cs b/Content.Server/Ame/Components/AmeFuelContainerComponent.cs index 70f3d55c7d..b69f1d452f 100644 --- a/Content.Server/Ame/Components/AmeFuelContainerComponent.cs +++ b/Content.Server/Ame/Components/AmeFuelContainerComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Ame.Components; /// TODO: network and put in shared /// [RegisterComponent] -public sealed class AmeFuelContainerComponent : Component +public sealed partial class AmeFuelContainerComponent : Component { /// /// The amount of fuel in the jar. diff --git a/Content.Server/Ame/Components/AmePartComponent.cs b/Content.Server/Ame/Components/AmePartComponent.cs index 9c9af18544..2d294747d7 100644 --- a/Content.Server/Ame/Components/AmePartComponent.cs +++ b/Content.Server/Ame/Components/AmePartComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Ame.Components; /// Packaged AME machinery that can be deployed to construct an AME. /// [RegisterComponent] -public sealed class AmePartComponent : Component +public sealed partial class AmePartComponent : Component { /// /// The sound played when the AME shielding is unpacked. diff --git a/Content.Server/Ame/Components/AmeShieldComponent.cs b/Content.Server/Ame/Components/AmeShieldComponent.cs index 83dd1e2fad..322c5218dd 100644 --- a/Content.Server/Ame/Components/AmeShieldComponent.cs +++ b/Content.Server/Ame/Components/AmeShieldComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Ame.Components; /// [Access(typeof(AmeShieldingSystem), typeof(AmeNodeGroup))] [RegisterComponent] -public sealed class AmeShieldComponent : SharedAmeShieldComponent +public sealed partial class AmeShieldComponent : SharedAmeShieldComponent { /// /// Whether or not this AME shield counts as a core for the AME or not. diff --git a/Content.Server/Animals/Components/EggLayerComponent.cs b/Content.Server/Animals/Components/EggLayerComponent.cs index a900c96947..980bcbf72b 100644 --- a/Content.Server/Animals/Components/EggLayerComponent.cs +++ b/Content.Server/Animals/Components/EggLayerComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Animals.Components; /// It also grants an action to players who are controlling these entities, allowing them to do it manually. /// [RegisterComponent] -public sealed class EggLayerComponent : Component +public sealed partial class EggLayerComponent : Component { [DataField("eggLayAction", customTypeSerializer: typeof(PrototypeIdSerializer))] public string EggLayAction = "AnimalLayEgg"; @@ -52,4 +52,4 @@ public sealed class EggLayerComponent : Component public float AccumulatedFrametime; } -public sealed class EggLayInstantActionEvent : InstantActionEvent {} +public sealed partial class EggLayInstantActionEvent : InstantActionEvent {} diff --git a/Content.Server/Animals/Components/UdderComponent.cs b/Content.Server/Animals/Components/UdderComponent.cs index ad591022c1..1c71fcb7c5 100644 --- a/Content.Server/Animals/Components/UdderComponent.cs +++ b/Content.Server/Animals/Components/UdderComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Animals.Components { [RegisterComponent, Access(typeof(UdderSystem))] - internal sealed class UdderComponent : Component + internal sealed partial class UdderComponent : Component { /// /// The reagent to produce. diff --git a/Content.Server/Announcements/RoundAnnouncementPrototype.cs b/Content.Server/Announcements/RoundAnnouncementPrototype.cs index 039acf41f5..928c279a87 100644 --- a/Content.Server/Announcements/RoundAnnouncementPrototype.cs +++ b/Content.Server/Announcements/RoundAnnouncementPrototype.cs @@ -12,7 +12,7 @@ namespace Content.Server.Announcements; public sealed class RoundAnnouncementPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("sound")] public SoundSpecifier? Sound; diff --git a/Content.Server/Anomaly/Components/AnomalousParticleComponent.cs b/Content.Server/Anomaly/Components/AnomalousParticleComponent.cs index 6c018c4f31..9141ca6529 100644 --- a/Content.Server/Anomaly/Components/AnomalousParticleComponent.cs +++ b/Content.Server/Anomaly/Components/AnomalousParticleComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Anomaly.Components; /// This is used for projectiles which affect anomalies through colliding with them. /// [RegisterComponent, Access(typeof(SharedAnomalySystem))] -public sealed class AnomalousParticleComponent : Component +public sealed partial class AnomalousParticleComponent : Component { /// /// The type of particle that the projectile diff --git a/Content.Server/Anomaly/Components/AnomalyGeneratorComponent.cs b/Content.Server/Anomaly/Components/AnomalyGeneratorComponent.cs index fdb9d2e721..1ff0290fc9 100644 --- a/Content.Server/Anomaly/Components/AnomalyGeneratorComponent.cs +++ b/Content.Server/Anomaly/Components/AnomalyGeneratorComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Anomaly.Components; /// anomalies randomly on the station. /// [RegisterComponent, Access(typeof(SharedAnomalySystem))] -public sealed class AnomalyGeneratorComponent : Component +public sealed partial class AnomalyGeneratorComponent : Component { /// /// The time at which the cooldown for generating another anomaly will be over diff --git a/Content.Server/Anomaly/Components/AnomalyScannerComponent.cs b/Content.Server/Anomaly/Components/AnomalyScannerComponent.cs index c7259ee468..1bc3070494 100644 --- a/Content.Server/Anomaly/Components/AnomalyScannerComponent.cs +++ b/Content.Server/Anomaly/Components/AnomalyScannerComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Anomaly.Components; /// displaying information about them in the ui /// [RegisterComponent, Access(typeof(SharedAnomalySystem))] -public sealed class AnomalyScannerComponent : Component +public sealed partial class AnomalyScannerComponent : Component { /// /// The anomaly that was last scanned by this scanner. diff --git a/Content.Server/Anomaly/Components/AnomalyVesselComponent.cs b/Content.Server/Anomaly/Components/AnomalyVesselComponent.cs index 1dd6cbb254..426e1d97d5 100644 --- a/Content.Server/Anomaly/Components/AnomalyVesselComponent.cs +++ b/Content.Server/Anomaly/Components/AnomalyVesselComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Anomaly.Components; /// the anomaly's stability and severity. /// [RegisterComponent, Access(typeof(SharedAnomalySystem))] -public sealed class AnomalyVesselComponent : Component +public sealed partial class AnomalyVesselComponent : Component { /// /// The anomaly that the vessel is storing. diff --git a/Content.Server/Anomaly/Components/BluespaceAnomalyComponent.cs b/Content.Server/Anomaly/Components/BluespaceAnomalyComponent.cs index d1e9e783b9..6c6692cfff 100644 --- a/Content.Server/Anomaly/Components/BluespaceAnomalyComponent.cs +++ b/Content.Server/Anomaly/Components/BluespaceAnomalyComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Audio; namespace Content.Server.Anomaly.Components; [RegisterComponent, Access(typeof(BluespaceAnomalySystem))] -public sealed class BluespaceAnomalyComponent : Component +public sealed partial class BluespaceAnomalyComponent : Component { /// /// The maximum radius that the shuffle effect will extend for diff --git a/Content.Server/Anomaly/Components/ExplosionAnomalyComponent.cs b/Content.Server/Anomaly/Components/ExplosionAnomalyComponent.cs index 0c9f71bb2d..05befaf13c 100644 --- a/Content.Server/Anomaly/Components/ExplosionAnomalyComponent.cs +++ b/Content.Server/Anomaly/Components/ExplosionAnomalyComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Anomaly.Components; [RegisterComponent] -public sealed class ExplosionAnomalyComponent : Component +public sealed partial class ExplosionAnomalyComponent : Component { /// /// The explosion prototype to spawn diff --git a/Content.Server/Anomaly/Components/GasProducerAnomalyComponent.cs b/Content.Server/Anomaly/Components/GasProducerAnomalyComponent.cs index 5df429be46..240eeddaa8 100644 --- a/Content.Server/Anomaly/Components/GasProducerAnomalyComponent.cs +++ b/Content.Server/Anomaly/Components/GasProducerAnomalyComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Anomaly.Components; /// This component is used for handling gas producing anomalies. Will always spawn one on the tile with the anomaly, and in a random radius around it. /// [RegisterComponent] -public sealed class GasProducerAnomalyComponent : Component +public sealed partial class GasProducerAnomalyComponent : Component { /// /// Should this gas be released when an anomaly reaches max severity? @@ -45,11 +45,11 @@ public sealed class GasProducerAnomalyComponent : Component public float spawnRadius = 3; /// - /// The number of tiles which will be modified. + /// The number of tiles which will be modified. /// [DataField("tileCount")] public int tileCount = 1; - + /// /// The the amount the tempurature should be modified by (negative for decreasing temp) /// diff --git a/Content.Server/Anomaly/Components/GeneratingAnomalyGeneratorComponent.cs b/Content.Server/Anomaly/Components/GeneratingAnomalyGeneratorComponent.cs index 8e4eb60399..d768f905ce 100644 --- a/Content.Server/Anomaly/Components/GeneratingAnomalyGeneratorComponent.cs +++ b/Content.Server/Anomaly/Components/GeneratingAnomalyGeneratorComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Server.Anomaly.Components; [RegisterComponent, Access(typeof(SharedAnomalySystem))] -public sealed class GeneratingAnomalyGeneratorComponent : Component +public sealed partial class GeneratingAnomalyGeneratorComponent : Component { /// /// When the generating period will end. diff --git a/Content.Server/Anomaly/Components/ProjectileAnomalyComponent.cs b/Content.Server/Anomaly/Components/ProjectileAnomalyComponent.cs index af395fd817..860b24a894 100644 --- a/Content.Server/Anomaly/Components/ProjectileAnomalyComponent.cs +++ b/Content.Server/Anomaly/Components/ProjectileAnomalyComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Anomaly.Components; [RegisterComponent] -public sealed class ProjectileAnomalyComponent : Component +public sealed partial class ProjectileAnomalyComponent : Component { /// /// The prototype of the projectile that will be shot when the anomaly pulses diff --git a/Content.Server/Anomaly/Components/TempAffectingAnomalyComponent.cs b/Content.Server/Anomaly/Components/TempAffectingAnomalyComponent.cs index af97694857..cd74e0c81f 100644 --- a/Content.Server/Anomaly/Components/TempAffectingAnomalyComponent.cs +++ b/Content.Server/Anomaly/Components/TempAffectingAnomalyComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Anomaly.Components; /// This component is used for handling anomalies that affect the temperature /// [RegisterComponent] -public sealed class TempAffectingAnomalyComponent : Component +public sealed partial class TempAffectingAnomalyComponent : Component { /// diff --git a/Content.Server/Arcade/BlockGame/BlockGameArcadeComponent.cs b/Content.Server/Arcade/BlockGame/BlockGameArcadeComponent.cs index 8f168dd8d5..268d5be4d2 100644 --- a/Content.Server/Arcade/BlockGame/BlockGameArcadeComponent.cs +++ b/Content.Server/Arcade/BlockGame/BlockGameArcadeComponent.cs @@ -3,7 +3,7 @@ using Robust.Server.Player; namespace Content.Server.Arcade.BlockGame; [RegisterComponent] -public sealed class BlockGameArcadeComponent : Component +public sealed partial class BlockGameArcadeComponent : Component { /// /// The currently active session of NT-BG. diff --git a/Content.Server/Arcade/SpaceVillainGame/SpaceVillainArcadeComponent.cs b/Content.Server/Arcade/SpaceVillainGame/SpaceVillainArcadeComponent.cs index db55284b1f..e93fcc6e8f 100644 --- a/Content.Server/Arcade/SpaceVillainGame/SpaceVillainArcadeComponent.cs +++ b/Content.Server/Arcade/SpaceVillainGame/SpaceVillainArcadeComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Arcade.SpaceVillain; [RegisterComponent] -public sealed class SpaceVillainArcadeComponent : SharedSpaceVillainArcadeComponent +public sealed partial class SpaceVillainArcadeComponent : SharedSpaceVillainArcadeComponent { /// /// Unused flag that can be hacked via wires. diff --git a/Content.Server/Arcade/WireActions/ArcadeInvincibilityWireActions.cs b/Content.Server/Arcade/WireActions/ArcadeInvincibilityWireActions.cs index 84d7a15480..9c3f78c898 100644 --- a/Content.Server/Arcade/WireActions/ArcadeInvincibilityWireActions.cs +++ b/Content.Server/Arcade/WireActions/ArcadeInvincibilityWireActions.cs @@ -5,7 +5,7 @@ using Content.Shared.Wires; namespace Content.Server.Arcade; -public sealed class ArcadePlayerInvincibleWireAction : BaseToggleWireAction +public sealed partial class ArcadePlayerInvincibleWireAction : BaseToggleWireAction { public override string Name { get; set; } = "wire-name-arcade-invincible"; @@ -43,7 +43,7 @@ public sealed class ArcadePlayerInvincibleWireAction : BaseToggleWireAction } } -public sealed class ArcadeEnemyInvincibleWireAction : BaseToggleWireAction +public sealed partial class ArcadeEnemyInvincibleWireAction : BaseToggleWireAction { public override string Name { get; set; } = "wire-name-player-invincible"; public override Color Color { get; set; } = Color.Purple; diff --git a/Content.Server/Arcade/WireActions/ArcadeOverflowWireAction.cs b/Content.Server/Arcade/WireActions/ArcadeOverflowWireAction.cs index 1d15e03e64..6028dac53e 100644 --- a/Content.Server/Arcade/WireActions/ArcadeOverflowWireAction.cs +++ b/Content.Server/Arcade/WireActions/ArcadeOverflowWireAction.cs @@ -5,7 +5,7 @@ using Content.Shared.Wires; namespace Content.Server.Arcade; -public sealed class ArcadeOverflowWireAction : BaseToggleWireAction +public sealed partial class ArcadeOverflowWireAction : BaseToggleWireAction { public override Color Color { get; set; } = Color.Red; public override string Name { get; set; } = "wire-name-arcade-overflow"; diff --git a/Content.Server/Armor/ArmorComponent.cs b/Content.Server/Armor/ArmorComponent.cs index debf1feab8..09be3bf240 100644 --- a/Content.Server/Armor/ArmorComponent.cs +++ b/Content.Server/Armor/ArmorComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.Armor { [RegisterComponent] - public sealed class ArmorComponent : Component + public sealed partial class ArmorComponent : Component { [DataField("modifiers", required: true)] public DamageModifierSet Modifiers = default!; diff --git a/Content.Server/Atmos/Components/AirtightComponent.cs b/Content.Server/Atmos/Components/AirtightComponent.cs index bd18971b95..897981724c 100644 --- a/Content.Server/Atmos/Components/AirtightComponent.cs +++ b/Content.Server/Atmos/Components/AirtightComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Server.Atmos.Components { [RegisterComponent] - public sealed class AirtightComponent : Component + public sealed partial class AirtightComponent : Component { public (EntityUid Grid, Vector2i Tile) LastPosition { get; set; } diff --git a/Content.Server/Atmos/Components/AtmosExposedComponent.cs b/Content.Server/Atmos/Components/AtmosExposedComponent.cs index 6a2840c288..721aae8f4f 100644 --- a/Content.Server/Atmos/Components/AtmosExposedComponent.cs +++ b/Content.Server/Atmos/Components/AtmosExposedComponent.cs @@ -5,7 +5,7 @@ /// Represents that entity can be exposed to Atmos /// [RegisterComponent] - public sealed class AtmosExposedComponent : Component + public sealed partial class AtmosExposedComponent : Component { } } diff --git a/Content.Server/Atmos/Components/AtmosFixMarkerComponent.cs b/Content.Server/Atmos/Components/AtmosFixMarkerComponent.cs index 4cc3619695..5123500239 100644 --- a/Content.Server/Atmos/Components/AtmosFixMarkerComponent.cs +++ b/Content.Server/Atmos/Components/AtmosFixMarkerComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Atmos.Components /// Used by FixGridAtmos. Entities with this may get magically auto-deleted on map initialization in future. /// [RegisterComponent] - public sealed class AtmosFixMarkerComponent : Component + public sealed partial class AtmosFixMarkerComponent : Component { // See FixGridAtmos for more details [DataField("mode")] diff --git a/Content.Server/Atmos/Components/AtmosPlaqueComponent.cs b/Content.Server/Atmos/Components/AtmosPlaqueComponent.cs index 43a0c17efa..d86cbe1d2f 100644 --- a/Content.Server/Atmos/Components/AtmosPlaqueComponent.cs +++ b/Content.Server/Atmos/Components/AtmosPlaqueComponent.cs @@ -3,7 +3,7 @@ using Content.Server.Atmos.EntitySystems; namespace Content.Server.Atmos.Components { [RegisterComponent] - public sealed class AtmosPlaqueComponent : Component + public sealed partial class AtmosPlaqueComponent : Component { [DataField("plaqueType")] public PlaqueType Type = PlaqueType.Unset; diff --git a/Content.Server/Atmos/Components/BarotraumaComponent.cs b/Content.Server/Atmos/Components/BarotraumaComponent.cs index 1a9f8c04f7..1e421f0a12 100644 --- a/Content.Server/Atmos/Components/BarotraumaComponent.cs +++ b/Content.Server/Atmos/Components/BarotraumaComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Atmos.Components /// Barotrauma: injury because of changes in air pressure. /// [RegisterComponent] - public sealed class BarotraumaComponent : Component + public sealed partial class BarotraumaComponent : Component { [DataField("damage", required: true)] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Atmos/Components/BreathToolComponent.cs b/Content.Server/Atmos/Components/BreathToolComponent.cs index edc494bb36..6e50dc71ea 100644 --- a/Content.Server/Atmos/Components/BreathToolComponent.cs +++ b/Content.Server/Atmos/Components/BreathToolComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Atmos.Components /// [RegisterComponent] [ComponentProtoName("BreathMask")] - public sealed class BreathToolComponent : Component + public sealed partial class BreathToolComponent : Component { /// /// Tool is functional only in allowed slots diff --git a/Content.Server/Atmos/Components/FlammableComponent.cs b/Content.Server/Atmos/Components/FlammableComponent.cs index badd494cc3..9891c55d4a 100644 --- a/Content.Server/Atmos/Components/FlammableComponent.cs +++ b/Content.Server/Atmos/Components/FlammableComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Physics.Collision.Shapes; namespace Content.Server.Atmos.Components { [RegisterComponent] - public sealed class FlammableComponent : Component + public sealed partial class FlammableComponent : Component { [ViewVariables] public bool Resisting = false; diff --git a/Content.Server/Atmos/Components/GasAnalyzerComponent.cs b/Content.Server/Atmos/Components/GasAnalyzerComponent.cs index b2d10400cb..238cf33dc8 100644 --- a/Content.Server/Atmos/Components/GasAnalyzerComponent.cs +++ b/Content.Server/Atmos/Components/GasAnalyzerComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Atmos.Components; /// Used to keep track of which analyzers are active for update purposes /// [RegisterComponent] -public sealed class ActiveGasAnalyzerComponent : Component +public sealed partial class ActiveGasAnalyzerComponent : Component { // Set to a tiny bit after the default because otherwise the user often gets a blank window when first using [DataField("accumulatedFrameTime"), ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Atmos/Components/GasMixtureHolderComponent.cs b/Content.Server/Atmos/Components/GasMixtureHolderComponent.cs index 819c096482..9d533f6ec4 100644 --- a/Content.Server/Atmos/Components/GasMixtureHolderComponent.cs +++ b/Content.Server/Atmos/Components/GasMixtureHolderComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Atmos.Components { [RegisterComponent] - public sealed class GasMixtureHolderComponent : Component, IGasMixtureHolder + public sealed partial class GasMixtureHolderComponent : Component, IGasMixtureHolder { [DataField("air")] public GasMixture Air { get; set; } = new GasMixture(); } diff --git a/Content.Server/Atmos/Components/GasTankComponent.cs b/Content.Server/Atmos/Components/GasTankComponent.cs index ce9f4f3e79..23c9703820 100644 --- a/Content.Server/Atmos/Components/GasTankComponent.cs +++ b/Content.Server/Atmos/Components/GasTankComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Audio; namespace Content.Server.Atmos.Components { [RegisterComponent] - public sealed class GasTankComponent : Component, IGasMixtureHolder + public sealed partial class GasTankComponent : Component, IGasMixtureHolder { public const float MaxExplosionRange = 80f; private const float DefaultLowPressure = 0f; diff --git a/Content.Server/Atmos/Components/GridAtmosphereComponent.cs b/Content.Server/Atmos/Components/GridAtmosphereComponent.cs index f633152e32..ab24daa716 100644 --- a/Content.Server/Atmos/Components/GridAtmosphereComponent.cs +++ b/Content.Server/Atmos/Components/GridAtmosphereComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Atmos.Components /// [RegisterComponent, Serializable, Access(typeof(AtmosphereSystem), typeof(GasTileOverlaySystem), typeof(AtmosDebugOverlaySystem))] - public sealed class GridAtmosphereComponent : Component + public sealed partial class GridAtmosphereComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public bool Simulated { get; set; } = true; @@ -26,7 +26,7 @@ namespace Content.Server.Atmos.Components [ViewVariables] [IncludeDataField(customTypeSerializer:typeof(TileAtmosCollectionSerializer))] - public readonly Dictionary Tiles = new(1000); + public Dictionary Tiles = new(1000); [ViewVariables] public readonly HashSet ActiveTiles = new(1000); diff --git a/Content.Server/Atmos/Components/HeatExchangerComponent.cs b/Content.Server/Atmos/Components/HeatExchangerComponent.cs index 10819387cf..86a053b478 100644 --- a/Content.Server/Atmos/Components/HeatExchangerComponent.cs +++ b/Content.Server/Atmos/Components/HeatExchangerComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Atmos.Components; [RegisterComponent] -public sealed class HeatExchangerComponent : Component +public sealed partial class HeatExchangerComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("inlet")] diff --git a/Content.Server/Atmos/Components/IgniteOnCollideComponent.cs b/Content.Server/Atmos/Components/IgniteOnCollideComponent.cs index 212caba54b..a4f0f34842 100644 --- a/Content.Server/Atmos/Components/IgniteOnCollideComponent.cs +++ b/Content.Server/Atmos/Components/IgniteOnCollideComponent.cs @@ -3,7 +3,7 @@ using Content.Server.Atmos.EntitySystems; namespace Content.Server.Atmos.Components; [RegisterComponent, Access(typeof(FlammableSystem))] -public sealed class IgniteOnCollideComponent : Component +public sealed partial class IgniteOnCollideComponent : Component { /// /// How many more times the ignition can be applied. diff --git a/Content.Server/Atmos/Components/IgniteOnMeleeHitComponent.cs b/Content.Server/Atmos/Components/IgniteOnMeleeHitComponent.cs index f2f59b3be4..26dd9ad24d 100644 --- a/Content.Server/Atmos/Components/IgniteOnMeleeHitComponent.cs +++ b/Content.Server/Atmos/Components/IgniteOnMeleeHitComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Atmos.Components; [RegisterComponent] -public sealed class IgniteOnMeleeHitComponent : Component +public sealed partial class IgniteOnMeleeHitComponent : Component { [DataField("fireStacks")] public float FireStacks { get; set; } diff --git a/Content.Server/Atmos/Components/MapAtmosphereComponent.cs b/Content.Server/Atmos/Components/MapAtmosphereComponent.cs index 798dd6cba0..bbf5ea6403 100644 --- a/Content.Server/Atmos/Components/MapAtmosphereComponent.cs +++ b/Content.Server/Atmos/Components/MapAtmosphereComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Atmos.Components; /// Component that defines the default GasMixture for a map. /// [RegisterComponent, Access(typeof(SharedAtmosphereSystem))] -public sealed class MapAtmosphereComponent : SharedMapAtmosphereComponent +public sealed partial class MapAtmosphereComponent : SharedMapAtmosphereComponent { /// /// The default GasMixture a map will have. Space mixture by default. diff --git a/Content.Server/Atmos/Components/MovedByPressureComponent.cs b/Content.Server/Atmos/Components/MovedByPressureComponent.cs index 7fcdb85b62..ca830767bd 100644 --- a/Content.Server/Atmos/Components/MovedByPressureComponent.cs +++ b/Content.Server/Atmos/Components/MovedByPressureComponent.cs @@ -2,7 +2,7 @@ namespace Content.Server.Atmos.Components { // Unfortunately can't be friends yet due to magboots. [RegisterComponent] - public sealed class MovedByPressureComponent : Component + public sealed partial class MovedByPressureComponent : Component { public const float MoveForcePushRatio = 1f; public const float MoveForceForcePushRatio = 1f; diff --git a/Content.Server/Atmos/Components/PressureImmunityComponent.cs b/Content.Server/Atmos/Components/PressureImmunityComponent.cs index c25b2bd2a7..3aae08458a 100644 --- a/Content.Server/Atmos/Components/PressureImmunityComponent.cs +++ b/Content.Server/Atmos/Components/PressureImmunityComponent.cs @@ -1,6 +1,6 @@ namespace Content.Server.Atmos.Components; [RegisterComponent] -public sealed class PressureImmunityComponent : Component +public sealed partial class PressureImmunityComponent : Component { } diff --git a/Content.Server/Atmos/Components/PressureProtectionComponent.cs b/Content.Server/Atmos/Components/PressureProtectionComponent.cs index e288cd10d9..a3a2842159 100644 --- a/Content.Server/Atmos/Components/PressureProtectionComponent.cs +++ b/Content.Server/Atmos/Components/PressureProtectionComponent.cs @@ -1,18 +1,18 @@ namespace Content.Server.Atmos.Components { [RegisterComponent] - public sealed class PressureProtectionComponent : Component + public sealed partial class PressureProtectionComponent : Component { [DataField("highPressureMultiplier")] - public float HighPressureMultiplier { get; } = 1f; + public float HighPressureMultiplier { get; private set; } = 1f; [DataField("highPressureModifier")] - public float HighPressureModifier { get; } = 0f; + public float HighPressureModifier { get; private set; } = 0f; [DataField("lowPressureMultiplier")] - public float LowPressureMultiplier { get; } = 1f; + public float LowPressureMultiplier { get; private set; } = 1f; [DataField("lowPressureModifier")] - public float LowPressureModifier { get; } = 0f; + public float LowPressureModifier { get; private set; } = 0f; } } diff --git a/Content.Server/Atmos/Components/TemperatureProtectionComponent.cs b/Content.Server/Atmos/Components/TemperatureProtectionComponent.cs index b0e2d3b36b..3f9d7bc771 100644 --- a/Content.Server/Atmos/Components/TemperatureProtectionComponent.cs +++ b/Content.Server/Atmos/Components/TemperatureProtectionComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Atmos.Components; [RegisterComponent] -public sealed class TemperatureProtectionComponent : Component +public sealed partial class TemperatureProtectionComponent : Component { /// /// How much to multiply temperature deltas by. diff --git a/Content.Server/Atmos/GasMixture.cs b/Content.Server/Atmos/GasMixture.cs index cca2e0c4f8..1547c259e6 100644 --- a/Content.Server/Atmos/GasMixture.cs +++ b/Content.Server/Atmos/GasMixture.cs @@ -12,7 +12,7 @@ namespace Content.Server.Atmos /// [Serializable] [DataDefinition] - public sealed class GasMixture : IEquatable, ISerializationHooks + public sealed partial class GasMixture : IEquatable, ISerializationHooks { public static GasMixture SpaceGas => new() {Volume = Atmospherics.CellVolume, Temperature = Atmospherics.TCMB, Immutable = true}; diff --git a/Content.Server/Atmos/IGasReactionEffect.cs b/Content.Server/Atmos/IGasReactionEffect.cs index cc0798100b..acaef2a071 100644 --- a/Content.Server/Atmos/IGasReactionEffect.cs +++ b/Content.Server/Atmos/IGasReactionEffect.cs @@ -4,7 +4,7 @@ using Content.Server.Atmos.Reactions; namespace Content.Server.Atmos { [ImplicitDataDefinitionForInheritors] - public interface IGasReactionEffect + public partial interface IGasReactionEffect { ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, AtmosphereSystem atmosphereSystem); } diff --git a/Content.Server/Atmos/Monitor/Components/AirAlarmComponent.cs b/Content.Server/Atmos/Monitor/Components/AirAlarmComponent.cs index 7684f04bbc..7030d607a6 100644 --- a/Content.Server/Atmos/Monitor/Components/AirAlarmComponent.cs +++ b/Content.Server/Atmos/Monitor/Components/AirAlarmComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Atmos.Monitor.Components; [RegisterComponent] -public sealed class AirAlarmComponent : Component +public sealed partial class AirAlarmComponent : Component { [ViewVariables] public AirAlarmMode CurrentMode { get; set; } = AirAlarmMode.Filtering; [ViewVariables] public bool AutoMode { get; set; } = true; diff --git a/Content.Server/Atmos/Monitor/Components/AtmosAlarmableComponent.cs b/Content.Server/Atmos/Monitor/Components/AtmosAlarmableComponent.cs index 4d4b5e0d9c..e291334ad0 100644 --- a/Content.Server/Atmos/Monitor/Components/AtmosAlarmableComponent.cs +++ b/Content.Server/Atmos/Monitor/Components/AtmosAlarmableComponent.cs @@ -26,7 +26,7 @@ namespace Content.Server.Atmos.Monitor.Components; /// calculate the highest network alert. /// [RegisterComponent] -public sealed class AtmosAlarmableComponent : Component +public sealed partial class AtmosAlarmableComponent : Component { [ViewVariables] public readonly Dictionary NetworkAlarmStates = new(); @@ -45,10 +45,10 @@ public sealed class AtmosAlarmableComponent : Component /// List of tags to check for when synchronizing alarms. /// [DataField("syncWith", customTypeSerializer: typeof(PrototypeIdHashSetSerializer))] - public HashSet SyncWithTags { get; } = new(); + public HashSet SyncWithTags { get; private set; } = new(); [DataField("monitorAlertTypes")] - public HashSet? MonitorAlertTypes { get; } + public HashSet? MonitorAlertTypes { get; private set; } /// /// If this device should receive only. If it can only @@ -56,5 +56,5 @@ public sealed class AtmosAlarmableComponent : Component /// will result in nothing happening. /// [DataField("receiveOnly")] - public bool ReceiveOnly { get; } + public bool ReceiveOnly { get; private set; } } diff --git a/Content.Server/Atmos/Monitor/Components/AtmosMonitorComponent.cs b/Content.Server/Atmos/Monitor/Components/AtmosMonitorComponent.cs index d5055e19e8..cb6d4d1630 100644 --- a/Content.Server/Atmos/Monitor/Components/AtmosMonitorComponent.cs +++ b/Content.Server/Atmos/Monitor/Components/AtmosMonitorComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Atmos.Monitor.Components; [RegisterComponent] -public sealed class AtmosMonitorComponent : Component +public sealed partial class AtmosMonitorComponent : Component { // Whether this monitor can send alarms, // or recieve atmos command events. @@ -23,13 +23,13 @@ public sealed class AtmosMonitorComponent : Component public bool NetEnabled = true; [DataField("temperatureThresholdId", customTypeSerializer: (typeof(PrototypeIdSerializer)))] - public readonly string? TemperatureThresholdId; + public string? TemperatureThresholdId; [DataField("temperatureThreshold")] public AtmosAlarmThreshold? TemperatureThreshold; [DataField("pressureThresholdId", customTypeSerializer: (typeof(PrototypeIdSerializer)))] - public readonly string? PressureThresholdId; + public string? PressureThresholdId; [DataField("pressureThreshold")] public AtmosAlarmThreshold? PressureThreshold; diff --git a/Content.Server/Atmos/Monitor/Components/FireAlarmComponent.cs b/Content.Server/Atmos/Monitor/Components/FireAlarmComponent.cs index d04b79a79c..55b1a6f21c 100644 --- a/Content.Server/Atmos/Monitor/Components/FireAlarmComponent.cs +++ b/Content.Server/Atmos/Monitor/Components/FireAlarmComponent.cs @@ -1,6 +1,6 @@ namespace Content.Server.Atmos.Monitor.Components; [RegisterComponent] -public sealed class FireAlarmComponent : Component +public sealed partial class FireAlarmComponent : Component { -} \ No newline at end of file +} diff --git a/Content.Server/Atmos/Monitor/WireActions/AirAlarmPanicWire.cs b/Content.Server/Atmos/Monitor/WireActions/AirAlarmPanicWire.cs index 22cbadb485..1171b36fb9 100644 --- a/Content.Server/Atmos/Monitor/WireActions/AirAlarmPanicWire.cs +++ b/Content.Server/Atmos/Monitor/WireActions/AirAlarmPanicWire.cs @@ -7,7 +7,7 @@ using Content.Shared.Wires; namespace Content.Server.Atmos.Monitor; -public sealed class AirAlarmPanicWire : ComponentWireAction +public sealed partial class AirAlarmPanicWire : ComponentWireAction { public override string Name { get; set; } = "wire-name-air-alarm-panic"; public override Color Color { get; set; } = Color.Red; diff --git a/Content.Server/Atmos/Monitor/WireActions/AtmosAlarmableAlarmWire.cs b/Content.Server/Atmos/Monitor/WireActions/AtmosAlarmableAlarmWire.cs index 496600ee1e..7dcb4427ca 100644 --- a/Content.Server/Atmos/Monitor/WireActions/AtmosAlarmableAlarmWire.cs +++ b/Content.Server/Atmos/Monitor/WireActions/AtmosAlarmableAlarmWire.cs @@ -6,7 +6,7 @@ using Content.Shared.Wires; namespace Content.Server.Atmos.Monitor; -public sealed class AtmosMonitorDeviceNetWire : ComponentWireAction +public sealed partial class AtmosMonitorDeviceNetWire : ComponentWireAction { // whether or not this wire will send out an alarm upon // being pulsed diff --git a/Content.Server/Atmos/Piping/Binary/Components/GasPassiveGateComponent.cs b/Content.Server/Atmos/Piping/Binary/Components/GasPassiveGateComponent.cs index f770a25652..57d48b64e9 100644 --- a/Content.Server/Atmos/Piping/Binary/Components/GasPassiveGateComponent.cs +++ b/Content.Server/Atmos/Piping/Binary/Components/GasPassiveGateComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Atmos; namespace Content.Server.Atmos.Piping.Binary.Components { [RegisterComponent] - public sealed class GasPassiveGateComponent : Component + public sealed partial class GasPassiveGateComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("inlet")] diff --git a/Content.Server/Atmos/Piping/Binary/Components/GasPortComponent.cs b/Content.Server/Atmos/Piping/Binary/Components/GasPortComponent.cs index fe5d62c6ab..fb7ee6d5cf 100644 --- a/Content.Server/Atmos/Piping/Binary/Components/GasPortComponent.cs +++ b/Content.Server/Atmos/Piping/Binary/Components/GasPortComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Atmos.Piping.Binary.Components { [RegisterComponent] - public sealed class GasPortComponent : Component + public sealed partial class GasPortComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("pipe")] diff --git a/Content.Server/Atmos/Piping/Binary/Components/GasPressurePumpComponent.cs b/Content.Server/Atmos/Piping/Binary/Components/GasPressurePumpComponent.cs index 40bb842cdb..8816e1af22 100644 --- a/Content.Server/Atmos/Piping/Binary/Components/GasPressurePumpComponent.cs +++ b/Content.Server/Atmos/Piping/Binary/Components/GasPressurePumpComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Atmos; namespace Content.Server.Atmos.Piping.Binary.Components { [RegisterComponent] - public sealed class GasPressurePumpComponent : Component + public sealed partial class GasPressurePumpComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("enabled")] diff --git a/Content.Server/Atmos/Piping/Binary/Components/GasRecyclerComponent.cs b/Content.Server/Atmos/Piping/Binary/Components/GasRecyclerComponent.cs index 28a1abaa23..9129557c22 100644 --- a/Content.Server/Atmos/Piping/Binary/Components/GasRecyclerComponent.cs +++ b/Content.Server/Atmos/Piping/Binary/Components/GasRecyclerComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Atmos.Piping.Binary.Components { [RegisterComponent] - public sealed class GasRecyclerComponent : Component + public sealed partial class GasRecyclerComponent : Component { [ViewVariables(VVAccess.ReadOnly)] [DataField("reacting")] diff --git a/Content.Server/Atmos/Piping/Binary/Components/GasValveComponent.cs b/Content.Server/Atmos/Piping/Binary/Components/GasValveComponent.cs index abb0becfde..1f09f07072 100644 --- a/Content.Server/Atmos/Piping/Binary/Components/GasValveComponent.cs +++ b/Content.Server/Atmos/Piping/Binary/Components/GasValveComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Audio; namespace Content.Server.Atmos.Piping.Binary.Components { [RegisterComponent] - public sealed class GasValveComponent : Component + public sealed partial class GasValveComponent : Component { [DataField("open")] public bool Open { get; set; } = true; @@ -15,6 +15,6 @@ namespace Content.Server.Atmos.Piping.Binary.Components public string OutletName { get; set; } = "outlet"; [DataField("valveSound")] - public SoundSpecifier ValveSound { get; } = new SoundCollectionSpecifier("valveSqueak"); + public SoundSpecifier ValveSound { get; private set; } = new SoundCollectionSpecifier("valveSqueak"); } } diff --git a/Content.Server/Atmos/Piping/Binary/Components/GasVolumePumpComponent.cs b/Content.Server/Atmos/Piping/Binary/Components/GasVolumePumpComponent.cs index b79fb3b254..bdd85524a8 100644 --- a/Content.Server/Atmos/Piping/Binary/Components/GasVolumePumpComponent.cs +++ b/Content.Server/Atmos/Piping/Binary/Components/GasVolumePumpComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Atmos; namespace Content.Server.Atmos.Piping.Binary.Components { [RegisterComponent] - public sealed class GasVolumePumpComponent : Component + public sealed partial class GasVolumePumpComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("enabled")] diff --git a/Content.Server/Atmos/Piping/Binary/Components/SignalControlledValveComponent.cs b/Content.Server/Atmos/Piping/Binary/Components/SignalControlledValveComponent.cs index 4284a01dfa..9c8860e849 100644 --- a/Content.Server/Atmos/Piping/Binary/Components/SignalControlledValveComponent.cs +++ b/Content.Server/Atmos/Piping/Binary/Components/SignalControlledValveComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Atmos.Piping.Binary.Components; [RegisterComponent, Access(typeof(SignalControlledValveSystem))] -public sealed class SignalControlledValveComponent : Component +public sealed partial class SignalControlledValveComponent : Component { [DataField("openPort", customTypeSerializer: typeof(PrototypeIdSerializer))] public string OpenPort = "Open"; diff --git a/Content.Server/Atmos/Piping/Components/AtmosDeviceComponent.cs b/Content.Server/Atmos/Piping/Components/AtmosDeviceComponent.cs index 5afcf2705e..cf53bb8b6e 100644 --- a/Content.Server/Atmos/Piping/Components/AtmosDeviceComponent.cs +++ b/Content.Server/Atmos/Piping/Components/AtmosDeviceComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Atmos.Piping.Components /// Adds itself to a to be updated by. /// [RegisterComponent] - public sealed class AtmosDeviceComponent : Component + public sealed partial class AtmosDeviceComponent : Component { /// /// If true, this device must be anchored before it will receive any AtmosDeviceUpdateEvents. @@ -21,7 +21,7 @@ namespace Content.Server.Atmos.Piping.Components /// a grid atmosphere. /// [DataField("joinSystem")] - public bool JoinSystem { get; } = false; + public bool JoinSystem { get; private set; } = false; /// /// If non-null, the grid that this device is part of. diff --git a/Content.Server/Atmos/Piping/Components/AtmosPipeColorComponent.cs b/Content.Server/Atmos/Piping/Components/AtmosPipeColorComponent.cs index 36d6bc0f3f..455d125e44 100644 --- a/Content.Server/Atmos/Piping/Components/AtmosPipeColorComponent.cs +++ b/Content.Server/Atmos/Piping/Components/AtmosPipeColorComponent.cs @@ -4,7 +4,7 @@ using JetBrains.Annotations; namespace Content.Server.Atmos.Piping.Components { [RegisterComponent] - public sealed class AtmosPipeColorComponent : Component + public sealed partial class AtmosPipeColorComponent : Component { [DataField("color")] public Color Color { get; set; } = Color.White; diff --git a/Content.Server/Atmos/Piping/Components/AtmosUnsafeUnanchorComponent.cs b/Content.Server/Atmos/Piping/Components/AtmosUnsafeUnanchorComponent.cs index 388cd9f644..abafd02bdb 100644 --- a/Content.Server/Atmos/Piping/Components/AtmosUnsafeUnanchorComponent.cs +++ b/Content.Server/Atmos/Piping/Components/AtmosUnsafeUnanchorComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Atmos.Piping.Components { [RegisterComponent] - public sealed class AtmosUnsafeUnanchorComponent : Component + public sealed partial class AtmosUnsafeUnanchorComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("enabled")] diff --git a/Content.Server/Atmos/Piping/Other/Components/GasMinerComponent.cs b/Content.Server/Atmos/Piping/Other/Components/GasMinerComponent.cs index 01d89cf2d1..e6d8ec790d 100644 --- a/Content.Server/Atmos/Piping/Other/Components/GasMinerComponent.cs +++ b/Content.Server/Atmos/Piping/Other/Components/GasMinerComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Atmos; namespace Content.Server.Atmos.Piping.Other.Components { [RegisterComponent] - public sealed class GasMinerComponent : Component + public sealed partial class GasMinerComponent : Component { public bool Enabled { get; set; } = true; diff --git a/Content.Server/Atmos/Piping/Trinary/Components/GasFilterComponent.cs b/Content.Server/Atmos/Piping/Trinary/Components/GasFilterComponent.cs index d7b408f369..eac8dc8312 100644 --- a/Content.Server/Atmos/Piping/Trinary/Components/GasFilterComponent.cs +++ b/Content.Server/Atmos/Piping/Trinary/Components/GasFilterComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Atmos; namespace Content.Server.Atmos.Piping.Trinary.Components { [RegisterComponent] - public sealed class GasFilterComponent : Component + public sealed partial class GasFilterComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("enabled")] diff --git a/Content.Server/Atmos/Piping/Trinary/Components/GasMixerComponent.cs b/Content.Server/Atmos/Piping/Trinary/Components/GasMixerComponent.cs index 4b72168dc2..fc219923c1 100644 --- a/Content.Server/Atmos/Piping/Trinary/Components/GasMixerComponent.cs +++ b/Content.Server/Atmos/Piping/Trinary/Components/GasMixerComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Atmos.Piping.Trinary.Components { [RegisterComponent] [Access(typeof(GasMixerSystem))] - public sealed class GasMixerComponent : Component + public sealed partial class GasMixerComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("enabled")] diff --git a/Content.Server/Atmos/Piping/Trinary/Components/PressureControlledValveComponent.cs b/Content.Server/Atmos/Piping/Trinary/Components/PressureControlledValveComponent.cs index 5df77ed9fd..c0b496fae8 100644 --- a/Content.Server/Atmos/Piping/Trinary/Components/PressureControlledValveComponent.cs +++ b/Content.Server/Atmos/Piping/Trinary/Components/PressureControlledValveComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Atmos; namespace Content.Server.Atmos.Piping.Trinary.Components { [RegisterComponent] - public sealed class PressureControlledValveComponent : Component + public sealed partial class PressureControlledValveComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("inlet")] diff --git a/Content.Server/Atmos/Piping/Unary/Components/GasCanisterComponent.cs b/Content.Server/Atmos/Piping/Unary/Components/GasCanisterComponent.cs index 37748780a8..178e169888 100644 --- a/Content.Server/Atmos/Piping/Unary/Components/GasCanisterComponent.cs +++ b/Content.Server/Atmos/Piping/Unary/Components/GasCanisterComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Audio; namespace Content.Server.Atmos.Piping.Unary.Components { [RegisterComponent] - public sealed class GasCanisterComponent : Component, IGasMixtureHolder + public sealed partial class GasCanisterComponent : Component, IGasMixtureHolder { [ViewVariables(VVAccess.ReadWrite)] [DataField("port")] diff --git a/Content.Server/Atmos/Piping/Unary/Components/GasOutletInjectorComponent.cs b/Content.Server/Atmos/Piping/Unary/Components/GasOutletInjectorComponent.cs index adac9d8b05..7e082024a8 100644 --- a/Content.Server/Atmos/Piping/Unary/Components/GasOutletInjectorComponent.cs +++ b/Content.Server/Atmos/Piping/Unary/Components/GasOutletInjectorComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Atmos.Piping.Unary.Components { [RegisterComponent] [Access(typeof(GasOutletInjectorSystem))] - public sealed class GasOutletInjectorComponent : Component + public sealed partial class GasOutletInjectorComponent : Component { [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Atmos/Piping/Unary/Components/GasPassiveVentComponent.cs b/Content.Server/Atmos/Piping/Unary/Components/GasPassiveVentComponent.cs index 6e232f06e0..7d890832ec 100644 --- a/Content.Server/Atmos/Piping/Unary/Components/GasPassiveVentComponent.cs +++ b/Content.Server/Atmos/Piping/Unary/Components/GasPassiveVentComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Atmos.Piping.Unary.Components { [RegisterComponent] - public sealed class GasPassiveVentComponent : Component + public sealed partial class GasPassiveVentComponent : Component { [DataField("inlet")] public string InletName = "pipe"; diff --git a/Content.Server/Atmos/Piping/Unary/Components/GasPortableComponent.cs b/Content.Server/Atmos/Piping/Unary/Components/GasPortableComponent.cs index d12a71e704..01d044e1eb 100644 --- a/Content.Server/Atmos/Piping/Unary/Components/GasPortableComponent.cs +++ b/Content.Server/Atmos/Piping/Unary/Components/GasPortableComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Atmos.Piping.Unary.Components { [RegisterComponent] - public sealed class GasPortableComponent : Component + public sealed partial class GasPortableComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("port")] diff --git a/Content.Server/Atmos/Piping/Unary/Components/GasThermoMachineComponent.cs b/Content.Server/Atmos/Piping/Unary/Components/GasThermoMachineComponent.cs index 8cfc3044a6..e8d0f0f30f 100644 --- a/Content.Server/Atmos/Piping/Unary/Components/GasThermoMachineComponent.cs +++ b/Content.Server/Atmos/Piping/Unary/Components/GasThermoMachineComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Atmos.Piping.Unary.Components { [RegisterComponent] - public sealed class GasThermoMachineComponent : Component + public sealed partial class GasThermoMachineComponent : Component { [DataField("inlet")] public string InletName = "pipe"; diff --git a/Content.Server/Atmos/Piping/Unary/Components/GasVentPumpComponent.cs b/Content.Server/Atmos/Piping/Unary/Components/GasVentPumpComponent.cs index 311c24c620..8a7f2dbe59 100644 --- a/Content.Server/Atmos/Piping/Unary/Components/GasVentPumpComponent.cs +++ b/Content.Server/Atmos/Piping/Unary/Components/GasVentPumpComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Atmos.Piping.Unary.Components { [RegisterComponent] - public sealed class GasVentPumpComponent : Component + public sealed partial class GasVentPumpComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public bool Enabled { get; set; } = true; @@ -122,7 +122,7 @@ namespace Content.Server.Atmos.Piping.Unary.Components /// Whether or not machine linking is enabled for this component. /// [DataField("canLink")] - public readonly bool CanLink = false; + public bool CanLink = false; [DataField("pressurizePort", customTypeSerializer: typeof(PrototypeIdSerializer))] public string PressurizePort = "Pressurize"; diff --git a/Content.Server/Atmos/Piping/Unary/Components/GasVentScrubberComponent.cs b/Content.Server/Atmos/Piping/Unary/Components/GasVentScrubberComponent.cs index 88be051713..64f916bf96 100644 --- a/Content.Server/Atmos/Piping/Unary/Components/GasVentScrubberComponent.cs +++ b/Content.Server/Atmos/Piping/Unary/Components/GasVentScrubberComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Atmos.Piping.Unary.Components { [RegisterComponent] [Access(typeof(GasVentScrubberSystem))] - public sealed class GasVentScrubberComponent : Component + public sealed partial class GasVentScrubberComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public bool Enabled { get; set; } = true; diff --git a/Content.Server/Atmos/Portable/PortableScrubberComponent.cs b/Content.Server/Atmos/Portable/PortableScrubberComponent.cs index 4dab51e734..5cb84439b5 100644 --- a/Content.Server/Atmos/Portable/PortableScrubberComponent.cs +++ b/Content.Server/Atmos/Portable/PortableScrubberComponent.cs @@ -5,13 +5,13 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Atmos.Portable { [RegisterComponent] - public sealed class PortableScrubberComponent : Component + public sealed partial class PortableScrubberComponent : Component { /// /// The air inside this machine. /// [DataField("gasMixture"), ViewVariables(VVAccess.ReadWrite)] - public GasMixture Air { get; } = new(); + public GasMixture Air { get; private set; } = new(); [DataField("port"), ViewVariables(VVAccess.ReadWrite)] public string PortName { get; set; } = "port"; diff --git a/Content.Server/Atmos/Reactions/FrezonCoolantReaction.cs b/Content.Server/Atmos/Reactions/FrezonCoolantReaction.cs index b300a839c4..36a0f28686 100644 --- a/Content.Server/Atmos/Reactions/FrezonCoolantReaction.cs +++ b/Content.Server/Atmos/Reactions/FrezonCoolantReaction.cs @@ -8,7 +8,7 @@ namespace Content.Server.Atmos.Reactions; /// Takes in nitrogen and frezon and cools down the surrounding area. /// [UsedImplicitly] -public sealed class FrezonCoolantReaction : IGasReactionEffect +public sealed partial class FrezonCoolantReaction : IGasReactionEffect { public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, AtmosphereSystem atmosphereSystem) { diff --git a/Content.Server/Atmos/Reactions/FrezonProductionReaction.cs b/Content.Server/Atmos/Reactions/FrezonProductionReaction.cs index 8abba18f55..084d939e4e 100644 --- a/Content.Server/Atmos/Reactions/FrezonProductionReaction.cs +++ b/Content.Server/Atmos/Reactions/FrezonProductionReaction.cs @@ -9,7 +9,7 @@ namespace Content.Server.Atmos.Reactions; /// Has a max temperature, but paradoxically gets more efficient the hotter it is. /// [UsedImplicitly] -public sealed class FrezonProductionReaction : IGasReactionEffect +public sealed partial class FrezonProductionReaction : IGasReactionEffect { public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, AtmosphereSystem atmosphereSystem) { diff --git a/Content.Server/Atmos/Reactions/GasReactionPrototype.cs b/Content.Server/Atmos/Reactions/GasReactionPrototype.cs index 8fc30b36b2..6db99d80d8 100644 --- a/Content.Server/Atmos/Reactions/GasReactionPrototype.cs +++ b/Content.Server/Atmos/Reactions/GasReactionPrototype.cs @@ -22,38 +22,38 @@ namespace Content.Server.Atmos.Reactions { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Minimum gas amount requirements. /// [DataField("minimumRequirements")] - public float[] MinimumRequirements { get; } = new float[Atmospherics.TotalNumberOfGases]; + public float[] MinimumRequirements { get; private set; } = new float[Atmospherics.TotalNumberOfGases]; /// /// Maximum temperature requirement. /// [DataField("maximumTemperature")] - public float MaximumTemperatureRequirement { get; } = float.MaxValue; + public float MaximumTemperatureRequirement { get; private set; } = float.MaxValue; /// /// Minimum temperature requirement. /// [DataField("minimumTemperature")] - public float MinimumTemperatureRequirement { get; } = Atmospherics.TCMB; + public float MinimumTemperatureRequirement { get; private set; } = Atmospherics.TCMB; /// /// Minimum energy requirement. /// [DataField("minimumEnergy")] - public float MinimumEnergyRequirement { get; } = 0f; + public float MinimumEnergyRequirement { get; private set; } = 0f; /// /// Lower numbers are checked/react later than higher numbers. /// If two reactions have the same priority, they may happen in either order. /// [DataField("priority")] - public int Priority { get; } = int.MinValue; + public int Priority { get; private set; } = int.MinValue; /// /// A list of effects this will produce. diff --git a/Content.Server/Atmos/Reactions/MiasmicSubsumationReaction.cs b/Content.Server/Atmos/Reactions/MiasmicSubsumationReaction.cs index 6d0c8b01fe..b7dd5b7eb8 100644 --- a/Content.Server/Atmos/Reactions/MiasmicSubsumationReaction.cs +++ b/Content.Server/Atmos/Reactions/MiasmicSubsumationReaction.cs @@ -8,7 +8,7 @@ namespace Content.Server.Atmos.Reactions; /// Converts frezon into miasma when the two come into contact. Does not occur at very high temperatures. /// [UsedImplicitly] -public sealed class MiasmicSubsumationReaction : IGasReactionEffect +public sealed partial class MiasmicSubsumationReaction : IGasReactionEffect { public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, AtmosphereSystem atmosphereSystem) { diff --git a/Content.Server/Atmos/Reactions/PlasmaFireReaction.cs b/Content.Server/Atmos/Reactions/PlasmaFireReaction.cs index cd8a773344..6aae69b2f2 100644 --- a/Content.Server/Atmos/Reactions/PlasmaFireReaction.cs +++ b/Content.Server/Atmos/Reactions/PlasmaFireReaction.cs @@ -6,7 +6,7 @@ namespace Content.Server.Atmos.Reactions { [UsedImplicitly] [DataDefinition] - public sealed class PlasmaFireReaction : IGasReactionEffect + public sealed partial class PlasmaFireReaction : IGasReactionEffect { public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, AtmosphereSystem atmosphereSystem) { diff --git a/Content.Server/Atmos/Reactions/TritiumFireReaction.cs b/Content.Server/Atmos/Reactions/TritiumFireReaction.cs index c66a005915..cc58f0cf7d 100644 --- a/Content.Server/Atmos/Reactions/TritiumFireReaction.cs +++ b/Content.Server/Atmos/Reactions/TritiumFireReaction.cs @@ -6,7 +6,7 @@ namespace Content.Server.Atmos.Reactions { [UsedImplicitly] [DataDefinition] - public sealed class TritiumFireReaction : IGasReactionEffect + public sealed partial class TritiumFireReaction : IGasReactionEffect { public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, AtmosphereSystem atmosphereSystem) { diff --git a/Content.Server/Atmos/Reactions/WaterVaporReaction.cs b/Content.Server/Atmos/Reactions/WaterVaporReaction.cs index 57ffcac28a..75eb0291df 100644 --- a/Content.Server/Atmos/Reactions/WaterVaporReaction.cs +++ b/Content.Server/Atmos/Reactions/WaterVaporReaction.cs @@ -9,13 +9,13 @@ namespace Content.Server.Atmos.Reactions { [UsedImplicitly] [DataDefinition] - public sealed class WaterVaporReaction : IGasReactionEffect + public sealed partial class WaterVaporReaction : IGasReactionEffect { - [DataField("reagent")] public string? Reagent { get; } = null; + [DataField("reagent")] public string? Reagent { get; private set; } = null; - [DataField("gas")] public int GasId { get; } = 0; + [DataField("gas")] public int GasId { get; private set; } = 0; - [DataField("molesPerUnit")] public float MolesPerUnit { get; } = 1; + [DataField("molesPerUnit")] public float MolesPerUnit { get; private set; } = 1; public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, AtmosphereSystem atmosphereSystem) { diff --git a/Content.Server/Atmos/Serialization/TileAtmosCollectionSerializer.cs b/Content.Server/Atmos/Serialization/TileAtmosCollectionSerializer.cs index c3a6aec3e9..7d385c530a 100644 --- a/Content.Server/Atmos/Serialization/TileAtmosCollectionSerializer.cs +++ b/Content.Server/Atmos/Serialization/TileAtmosCollectionSerializer.cs @@ -11,7 +11,7 @@ using Robust.Shared.Utility; namespace Content.Server.Atmos.Serialization; -public sealed class TileAtmosCollectionSerializer : ITypeSerializer, MappingDataNode>, ITypeCopier> +public sealed partial class TileAtmosCollectionSerializer : ITypeSerializer, MappingDataNode>, ITypeCopier> { public ValidationNode Validate(ISerializationManager serializationManager, MappingDataNode node, IDependencyCollection dependencies, ISerializationContext? context = null) @@ -156,7 +156,7 @@ public sealed class TileAtmosCollectionSerializer : ITypeSerializer /// Key is unique mix and value is bitflag of the affected tiles. /// [IncludeDataField(customTypeSerializer: typeof(DictionarySerializer))] - public readonly Dictionary Data = new(); + public Dictionary Data = new(); } public void CopyTo(ISerializationManager serializationManager, Dictionary source, ref Dictionary target, diff --git a/Content.Server/Audio/AmbientOnPoweredComponent.cs b/Content.Server/Audio/AmbientOnPoweredComponent.cs index 4c603d8ce1..39e2f93ff9 100644 --- a/Content.Server/Audio/AmbientOnPoweredComponent.cs +++ b/Content.Server/Audio/AmbientOnPoweredComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Audio /// Toggles on when powered and off when not powered. /// [RegisterComponent] - public sealed class AmbientOnPoweredComponent : Component + public sealed partial class AmbientOnPoweredComponent : Component { } } diff --git a/Content.Server/Beam/Components/BeamComponent.cs b/Content.Server/Beam/Components/BeamComponent.cs index 960b59f9a4..175782e634 100644 --- a/Content.Server/Beam/Components/BeamComponent.cs +++ b/Content.Server/Beam/Components/BeamComponent.cs @@ -2,7 +2,7 @@ namespace Content.Server.Beam.Components; [RegisterComponent] -public sealed class BeamComponent : SharedBeamComponent +public sealed partial class BeamComponent : SharedBeamComponent { } diff --git a/Content.Server/Bed/Components/HealOnBuckleComponent.cs b/Content.Server/Bed/Components/HealOnBuckleComponent.cs index bab5d20282..f02a30535d 100644 --- a/Content.Server/Bed/Components/HealOnBuckleComponent.cs +++ b/Content.Server/Bed/Components/HealOnBuckleComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Damage; namespace Content.Server.Bed.Components { [RegisterComponent] - public sealed class HealOnBuckleComponent : Component + public sealed partial class HealOnBuckleComponent : Component { [DataField("damage", required: true)] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Bed/Components/HealOnBuckleHealing.cs b/Content.Server/Bed/Components/HealOnBuckleHealing.cs index 47e76c49ae..a944e67e12 100644 --- a/Content.Server/Bed/Components/HealOnBuckleHealing.cs +++ b/Content.Server/Bed/Components/HealOnBuckleHealing.cs @@ -1,6 +1,6 @@ namespace Content.Server.Bed.Components { [RegisterComponent] - public sealed class HealOnBuckleHealingComponent : Component + public sealed partial class HealOnBuckleHealingComponent : Component {} } diff --git a/Content.Server/Bed/Components/StasisBedComponent.cs b/Content.Server/Bed/Components/StasisBedComponent.cs index b70087b470..f658d01c9f 100644 --- a/Content.Server/Bed/Components/StasisBedComponent.cs +++ b/Content.Server/Bed/Components/StasisBedComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Bed.Components { [RegisterComponent] - public sealed class StasisBedComponent : Component + public sealed partial class StasisBedComponent : Component { [DataField("baseMultiplier", required: true), ViewVariables(VVAccess.ReadWrite)] public float BaseMultiplier = 10f; diff --git a/Content.Server/Bible/BibleSystem.cs b/Content.Server/Bible/BibleSystem.cs index 62d092c6a1..8186db5a49 100644 --- a/Content.Server/Bible/BibleSystem.cs +++ b/Content.Server/Bible/BibleSystem.cs @@ -242,7 +242,7 @@ namespace Content.Server.Bible } } - public sealed class SummonActionEvent : InstantActionEvent + public sealed partial class SummonActionEvent : InstantActionEvent { } diff --git a/Content.Server/Bible/Components/BibleComponent.cs b/Content.Server/Bible/Components/BibleComponent.cs index d4acbd8732..b7dc3db8e3 100644 --- a/Content.Server/Bible/Components/BibleComponent.cs +++ b/Content.Server/Bible/Components/BibleComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Audio; namespace Content.Server.Bible.Components { [RegisterComponent] - public sealed class BibleComponent : Component + public sealed partial class BibleComponent : Component { /// /// Damage that will be healed on a success diff --git a/Content.Server/Bible/Components/BibleUserComponent.cs b/Content.Server/Bible/Components/BibleUserComponent.cs index 6ca89013ff..5948b8a42b 100644 --- a/Content.Server/Bible/Components/BibleUserComponent.cs +++ b/Content.Server/Bible/Components/BibleUserComponent.cs @@ -1,5 +1,5 @@ namespace Content.Server.Bible.Components { [RegisterComponent] - public sealed class BibleUserComponent : Component {} + public sealed partial class BibleUserComponent : Component {} } diff --git a/Content.Server/Bible/Components/FamiliarComponent.cs b/Content.Server/Bible/Components/FamiliarComponent.cs index f733fced70..2811e77b86 100644 --- a/Content.Server/Bible/Components/FamiliarComponent.cs +++ b/Content.Server/Bible/Components/FamiliarComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Bible.Components /// if any special behavior is needed. /// [RegisterComponent] - public sealed class FamiliarComponent : Component + public sealed partial class FamiliarComponent : Component { /// /// The entity this familiar was summoned from. diff --git a/Content.Server/Bible/Components/SummonableComponent.cs b/Content.Server/Bible/Components/SummonableComponent.cs index 7b4ee11d99..821f25bb80 100644 --- a/Content.Server/Bible/Components/SummonableComponent.cs +++ b/Content.Server/Bible/Components/SummonableComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Bible.Components /// This lets you summon a mob or item with an alternative verb on the item /// [RegisterComponent] - public sealed class SummonableComponent : Component + public sealed partial class SummonableComponent : Component { /// /// Used for a special item only the Chaplain can summon. Usually a mob, but supports regular items too. diff --git a/Content.Server/Bible/Components/SummonableRespawningComponent.cs b/Content.Server/Bible/Components/SummonableRespawningComponent.cs index 0e526e3ee4..e8ac0a6a81 100644 --- a/Content.Server/Bible/Components/SummonableRespawningComponent.cs +++ b/Content.Server/Bible/Components/SummonableRespawningComponent.cs @@ -4,6 +4,6 @@ namespace Content.Server.Bible.Components /// EntityQuery Tracking Component for Summonables that are counting up a respawn. /// [RegisterComponent] - public sealed class SummonableRespawningComponent : Component + public sealed partial class SummonableRespawningComponent : Component {} } diff --git a/Content.Server/Body/Components/BloodstreamComponent.cs b/Content.Server/Body/Components/BloodstreamComponent.cs index 00d8a7b42d..33db12157e 100644 --- a/Content.Server/Body/Components/BloodstreamComponent.cs +++ b/Content.Server/Body/Components/BloodstreamComponent.cs @@ -10,7 +10,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Body.Components { [RegisterComponent, Access(typeof(BloodstreamSystem), (typeof(ChemistrySystem)))] - public sealed class BloodstreamComponent : Component + public sealed partial class BloodstreamComponent : Component { public static string DefaultChemicalsSolutionName = "chemicals"; public static string DefaultBloodSolutionName = "bloodstream"; diff --git a/Content.Server/Body/Components/BrainComponent.cs b/Content.Server/Body/Components/BrainComponent.cs index 44167118c3..004ff24eaf 100644 --- a/Content.Server/Body/Components/BrainComponent.cs +++ b/Content.Server/Body/Components/BrainComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.Body.Components { [RegisterComponent, Access(typeof(BrainSystem))] - public sealed class BrainComponent : Component + public sealed partial class BrainComponent : Component { } } diff --git a/Content.Server/Body/Components/InternalsComponent.cs b/Content.Server/Body/Components/InternalsComponent.cs index 6fa1732127..4eda008b0f 100644 --- a/Content.Server/Body/Components/InternalsComponent.cs +++ b/Content.Server/Body/Components/InternalsComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Body.Components /// Handles hooking up a mask (breathing tool) / gas tank together and allowing the Owner to breathe through it. /// [RegisterComponent] - public sealed class InternalsComponent : Component + public sealed partial class InternalsComponent : Component { [ViewVariables] public EntityUid? GasTankEntity { get; set; } [ViewVariables] public EntityUid? BreathToolEntity { get; set; } diff --git a/Content.Server/Body/Components/LungComponent.cs b/Content.Server/Body/Components/LungComponent.cs index 0ed4ce0dae..434286a5c6 100644 --- a/Content.Server/Body/Components/LungComponent.cs +++ b/Content.Server/Body/Components/LungComponent.cs @@ -6,7 +6,7 @@ using Content.Shared.Chemistry.Components; namespace Content.Server.Body.Components; [RegisterComponent, Access(typeof(LungSystem))] -public sealed class LungComponent : Component +public sealed partial class LungComponent : Component { [DataField("air")] [Access(typeof(LungSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends diff --git a/Content.Server/Body/Components/MetabolizerComponent.cs b/Content.Server/Body/Components/MetabolizerComponent.cs index bc1355fc7e..21a0be25d2 100644 --- a/Content.Server/Body/Components/MetabolizerComponent.cs +++ b/Content.Server/Body/Components/MetabolizerComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Body.Components /// Handles metabolizing various reagents with given effects. /// [RegisterComponent, Access(typeof(MetabolizerSystem))] - public sealed class MetabolizerComponent : Component + public sealed partial class MetabolizerComponent : Component { public float AccumulatedFrametime = 0.0f; @@ -70,7 +70,7 @@ namespace Content.Server.Body.Components /// This allows metabolizers to remove certain groups much faster, or not at all. /// [DataDefinition] - public sealed class MetabolismGroupEntry + public sealed partial class MetabolismGroupEntry { [DataField("id", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Id = default!; diff --git a/Content.Server/Body/Components/RespiratorComponent.cs b/Content.Server/Body/Components/RespiratorComponent.cs index 52ae4e9414..9f080a3dd9 100644 --- a/Content.Server/Body/Components/RespiratorComponent.cs +++ b/Content.Server/Body/Components/RespiratorComponent.cs @@ -4,7 +4,7 @@ using Content.Shared.Damage; namespace Content.Server.Body.Components { [RegisterComponent, Access(typeof(RespiratorSystem))] - public sealed class RespiratorComponent : Component + public sealed partial class RespiratorComponent : Component { /// /// Saturation level. Reduced by CycleDelay each tick. diff --git a/Content.Server/Body/Components/StomachComponent.cs b/Content.Server/Body/Components/StomachComponent.cs index a22b11ffa9..b476e298a6 100644 --- a/Content.Server/Body/Components/StomachComponent.cs +++ b/Content.Server/Body/Components/StomachComponent.cs @@ -6,7 +6,7 @@ using Content.Shared.Whitelist; namespace Content.Server.Body.Components { [RegisterComponent, Access(typeof(StomachSystem), typeof(FoodSystem))] - public sealed class StomachComponent : Component + public sealed partial class StomachComponent : Component { public float AccumulatedFrameTime; diff --git a/Content.Server/Body/Components/ThermalRegulatorComponent.cs b/Content.Server/Body/Components/ThermalRegulatorComponent.cs index a600468545..4acdccf1ba 100644 --- a/Content.Server/Body/Components/ThermalRegulatorComponent.cs +++ b/Content.Server/Body/Components/ThermalRegulatorComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Body.Components; [RegisterComponent] [Access(typeof(ThermalRegulatorSystem))] -public sealed class ThermalRegulatorComponent : Component +public sealed partial class ThermalRegulatorComponent : Component { /// /// Heat generated due to metabolism. It's generated via metabolism diff --git a/Content.Server/Botany/Components/BotanySwabComponent.cs b/Content.Server/Botany/Components/BotanySwabComponent.cs index e772d3b492..5fad5764b4 100644 --- a/Content.Server/Botany/Components/BotanySwabComponent.cs +++ b/Content.Server/Botany/Components/BotanySwabComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Botany /// Anything that can be used to cross-pollinate plants. /// [RegisterComponent] - public sealed class BotanySwabComponent : Component + public sealed partial class BotanySwabComponent : Component { [DataField("swabDelay")] public float SwabDelay = 2f; diff --git a/Content.Server/Botany/Components/LogComponent.cs b/Content.Server/Botany/Components/LogComponent.cs index eb45bae672..da3f82416e 100644 --- a/Content.Server/Botany/Components/LogComponent.cs +++ b/Content.Server/Botany/Components/LogComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Botany.Components; [RegisterComponent] [Access(typeof(LogSystem))] -public sealed class LogComponent : Component +public sealed partial class LogComponent : Component { [DataField("spawnedPrototype", customTypeSerializer: typeof(PrototypeIdSerializer))] public string SpawnedPrototype = "MaterialWoodPlank1"; diff --git a/Content.Server/Botany/Components/PlantHolderComponent.cs b/Content.Server/Botany/Components/PlantHolderComponent.cs index 97af11328d..5760cc2d3f 100644 --- a/Content.Server/Botany/Components/PlantHolderComponent.cs +++ b/Content.Server/Botany/Components/PlantHolderComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Botany.Components { [RegisterComponent] - public sealed class PlantHolderComponent : Component + public sealed partial class PlantHolderComponent : Component { [ViewVariables] public TimeSpan NextUpdate = TimeSpan.Zero; diff --git a/Content.Server/Botany/Components/ProduceComponent.cs b/Content.Server/Botany/Components/ProduceComponent.cs index 4a87c09f50..c78e0a1ad4 100644 --- a/Content.Server/Botany/Components/ProduceComponent.cs +++ b/Content.Server/Botany/Components/ProduceComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Botany.Components; [RegisterComponent] [Access(typeof(BotanySystem))] -public sealed class ProduceComponent : Component +public sealed partial class ProduceComponent : Component { [DataField("targetSolution")] public string SolutionName { get; set; } = "food"; @@ -19,5 +19,5 @@ public sealed class ProduceComponent : Component /// Seed data used to create a when this produce has its seeds extracted. /// [DataField("seedId", customTypeSerializer: typeof(PrototypeIdSerializer))] - public readonly string? SeedId; + public string? SeedId; } diff --git a/Content.Server/Botany/Components/SeedComponent.cs b/Content.Server/Botany/Components/SeedComponent.cs index 535c916803..cb48c16683 100644 --- a/Content.Server/Botany/Components/SeedComponent.cs +++ b/Content.Server/Botany/Components/SeedComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Botany.Components { [RegisterComponent, Access(typeof(BotanySystem))] - public sealed class SeedComponent : Component + public sealed partial class SeedComponent : Component { /// /// Seed data containing information about the plant type & properties that this seed can grow seed. If @@ -18,6 +18,6 @@ namespace Content.Server.Botany.Components /// Name of a base seed prototype that is used if is null. /// [DataField("seedId", customTypeSerializer:typeof(PrototypeIdSerializer))] - public readonly string? SeedId; + public string? SeedId; } } diff --git a/Content.Server/Botany/Components/SeedExtractorComponent.cs b/Content.Server/Botany/Components/SeedExtractorComponent.cs index b10074c3f9..d497f027bf 100644 --- a/Content.Server/Botany/Components/SeedExtractorComponent.cs +++ b/Content.Server/Botany/Components/SeedExtractorComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Botany.Components; [RegisterComponent] [Access(typeof(SeedExtractorSystem))] -public sealed class SeedExtractorComponent : Component +public sealed partial class SeedExtractorComponent : Component { /// /// The minimum amount of seed packets dropped with no machine upgrades. diff --git a/Content.Server/Botany/SeedPrototype.cs b/Content.Server/Botany/SeedPrototype.cs index 0357782edf..52eed9d097 100644 --- a/Content.Server/Botany/SeedPrototype.cs +++ b/Content.Server/Botany/SeedPrototype.cs @@ -54,7 +54,7 @@ public enum HarvestType : byte */ [DataDefinition] -public struct SeedChemQuantity +public partial struct SeedChemQuantity { [DataField("Min")] public int Min; [DataField("Max")] public int Max; @@ -64,7 +64,7 @@ public struct SeedChemQuantity // TODO reduce the number of friends to a reasonable level. Requires ECS-ing things like plant holder component. [Virtual, DataDefinition] [Access(typeof(BotanySystem), typeof(PlantHolderSystem), typeof(SeedExtractorSystem), typeof(PlantHolderComponent), typeof(ReagentEffect), typeof(MutationSystem))] -public class SeedData +public partial class SeedData { #region Tracking diff --git a/Content.Server/Cargo/Components/CargoBountyLabelComponent.cs b/Content.Server/Cargo/Components/CargoBountyLabelComponent.cs index 8c907bf84c..b38fe2ad5e 100644 --- a/Content.Server/Cargo/Components/CargoBountyLabelComponent.cs +++ b/Content.Server/Cargo/Components/CargoBountyLabelComponent.cs @@ -5,7 +5,7 @@ /// containing goods for fulfilling bounties. /// [RegisterComponent] -public sealed class CargoBountyLabelComponent : Component +public sealed partial class CargoBountyLabelComponent : Component { /// /// The ID for the bounty this label corresponds to. diff --git a/Content.Server/Cargo/Components/CargoOrderConsoleComponent.cs b/Content.Server/Cargo/Components/CargoOrderConsoleComponent.cs index 419f00793c..1c418c9cc7 100644 --- a/Content.Server/Cargo/Components/CargoOrderConsoleComponent.cs +++ b/Content.Server/Cargo/Components/CargoOrderConsoleComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Cargo.Components /// Handles sending order requests to cargo. Doesn't handle orders themselves via shuttle or telepads. /// [RegisterComponent] - public sealed class CargoOrderConsoleComponent : Component + public sealed partial class CargoOrderConsoleComponent : Component { [DataField("soundError")] public SoundSpecifier ErrorSound = new SoundPathSpecifier("/Audio/Effects/Cargo/buzz_sigh.ogg"); diff --git a/Content.Server/Cargo/Components/CargoPalletComponent.cs b/Content.Server/Cargo/Components/CargoPalletComponent.cs index 24fd2eda9e..ebf0be93e0 100644 --- a/Content.Server/Cargo/Components/CargoPalletComponent.cs +++ b/Content.Server/Cargo/Components/CargoPalletComponent.cs @@ -4,4 +4,4 @@ namespace Content.Server.Cargo.Components; /// Any entities intersecting when a shuttle is recalled will be sold. /// [RegisterComponent] -public sealed class CargoPalletComponent : Component {} +public sealed partial class CargoPalletComponent : Component {} diff --git a/Content.Server/Cargo/Components/CargoPalletConsoleComponent.cs b/Content.Server/Cargo/Components/CargoPalletConsoleComponent.cs index 86102bb846..6092ea0c3e 100644 --- a/Content.Server/Cargo/Components/CargoPalletConsoleComponent.cs +++ b/Content.Server/Cargo/Components/CargoPalletConsoleComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Cargo.Components; [RegisterComponent] [Access(typeof(CargoSystem))] -public sealed class CargoPalletConsoleComponent : Component +public sealed partial class CargoPalletConsoleComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("cashType", customTypeSerializer:typeof(PrototypeIdSerializer))] public string CashType = "Credit"; diff --git a/Content.Server/Cargo/Components/CargoSellBlacklistComponent.cs b/Content.Server/Cargo/Components/CargoSellBlacklistComponent.cs index 757c86890e..9cbaa4a15b 100644 --- a/Content.Server/Cargo/Components/CargoSellBlacklistComponent.cs +++ b/Content.Server/Cargo/Components/CargoSellBlacklistComponent.cs @@ -4,6 +4,6 @@ /// Marks an entity as unable to be sold through the cargo shuttle. /// [RegisterComponent] -public sealed class CargoSellBlacklistComponent : Component +public sealed partial class CargoSellBlacklistComponent : Component { } diff --git a/Content.Server/Cargo/Components/CargoShuttleConsoleComponent.cs b/Content.Server/Cargo/Components/CargoShuttleConsoleComponent.cs index e247b917a5..2f6172601a 100644 --- a/Content.Server/Cargo/Components/CargoShuttleConsoleComponent.cs +++ b/Content.Server/Cargo/Components/CargoShuttleConsoleComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Audio; namespace Content.Server.Cargo.Components; [RegisterComponent] -public sealed class CargoShuttleConsoleComponent : Component +public sealed partial class CargoShuttleConsoleComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("soundDeny")] public SoundSpecifier DenySound = new SoundPathSpecifier("/Audio/Effects/Cargo/buzz_two.ogg"); diff --git a/Content.Server/Cargo/Components/MobPriceComponent.cs b/Content.Server/Cargo/Components/MobPriceComponent.cs index 895ef55aa8..ee9f53d087 100644 --- a/Content.Server/Cargo/Components/MobPriceComponent.cs +++ b/Content.Server/Cargo/Components/MobPriceComponent.cs @@ -4,7 +4,7 @@ /// This is used for calculating the price of mobs. /// [RegisterComponent] -public sealed class MobPriceComponent : Component +public sealed partial class MobPriceComponent : Component { /// /// How much of a penalty per part there should be. This is a multiplier for a multiplier, the penalty for each body part is calculated from the total number of slots, and then multiplied by this. diff --git a/Content.Server/Cargo/Components/PriceGunComponent.cs b/Content.Server/Cargo/Components/PriceGunComponent.cs index ca3d1d4770..7207beae99 100644 --- a/Content.Server/Cargo/Components/PriceGunComponent.cs +++ b/Content.Server/Cargo/Components/PriceGunComponent.cs @@ -4,7 +4,7 @@ /// This is used for the price gun, which calculates the price of any object it appraises. /// [RegisterComponent] -public sealed class PriceGunComponent : Component +public sealed partial class PriceGunComponent : Component { } diff --git a/Content.Server/Cargo/Components/StackPriceComponent.cs b/Content.Server/Cargo/Components/StackPriceComponent.cs index f15532273a..52675792f1 100644 --- a/Content.Server/Cargo/Components/StackPriceComponent.cs +++ b/Content.Server/Cargo/Components/StackPriceComponent.cs @@ -4,7 +4,7 @@ /// This is used for pricing stacks of items. /// [RegisterComponent] -public sealed class StackPriceComponent : Component +public sealed partial class StackPriceComponent : Component { /// /// The price of the object this component is on, per unit. diff --git a/Content.Server/Cargo/Components/StaticPriceComponent.cs b/Content.Server/Cargo/Components/StaticPriceComponent.cs index 07370d4793..5fa50b00a3 100644 --- a/Content.Server/Cargo/Components/StaticPriceComponent.cs +++ b/Content.Server/Cargo/Components/StaticPriceComponent.cs @@ -4,7 +4,7 @@ /// This is used for setting a static, unchanging price for an object. /// [RegisterComponent] -public sealed class StaticPriceComponent : Component +public sealed partial class StaticPriceComponent : Component { /// /// The price of the object this component is on. diff --git a/Content.Server/Cargo/Components/StationBankAccountComponent.cs b/Content.Server/Cargo/Components/StationBankAccountComponent.cs index 4f3745ea28..fe9be19b19 100644 --- a/Content.Server/Cargo/Components/StationBankAccountComponent.cs +++ b/Content.Server/Cargo/Components/StationBankAccountComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Cargo.Components; /// Added to the abstract representation of a station to track its money. /// [RegisterComponent, Access(typeof(SharedCargoSystem))] -public sealed class StationBankAccountComponent : Component +public sealed partial class StationBankAccountComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("balance")] public int Balance = 2000; diff --git a/Content.Server/Cargo/Components/StationCargoBountyDatabaseComponent.cs b/Content.Server/Cargo/Components/StationCargoBountyDatabaseComponent.cs index f043810023..d94c2995e3 100644 --- a/Content.Server/Cargo/Components/StationCargoBountyDatabaseComponent.cs +++ b/Content.Server/Cargo/Components/StationCargoBountyDatabaseComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Cargo.Components; /// Stores all active cargo bounties for a particular station. /// [RegisterComponent] -public sealed class StationCargoBountyDatabaseComponent : Component +public sealed partial class StationCargoBountyDatabaseComponent : Component { /// /// Maximum amount of bounties a station can have. diff --git a/Content.Server/Cargo/Components/StationCargoOrderDatabaseComponent.cs b/Content.Server/Cargo/Components/StationCargoOrderDatabaseComponent.cs index 5ec104ac5c..6c19dbc4a2 100644 --- a/Content.Server/Cargo/Components/StationCargoOrderDatabaseComponent.cs +++ b/Content.Server/Cargo/Components/StationCargoOrderDatabaseComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Cargo.Components; /// Stores all of cargo orders for a particular station. /// [RegisterComponent] -public sealed class StationCargoOrderDatabaseComponent : Component +public sealed partial class StationCargoOrderDatabaseComponent : Component { /// /// Maximum amount of orders a station is allowed, approved or not. diff --git a/Content.Server/CartridgeLoader/Cartridges/CrewManifestCartridgeComponent.cs b/Content.Server/CartridgeLoader/Cartridges/CrewManifestCartridgeComponent.cs index 344f8674e3..709bb09099 100644 --- a/Content.Server/CartridgeLoader/Cartridges/CrewManifestCartridgeComponent.cs +++ b/Content.Server/CartridgeLoader/Cartridges/CrewManifestCartridgeComponent.cs @@ -1,6 +1,6 @@ namespace Content.Server.CartridgeLoader.Cartridges; [RegisterComponent] -public sealed class CrewManifestCartridgeComponent : Component +public sealed partial class CrewManifestCartridgeComponent : Component { } diff --git a/Content.Server/CartridgeLoader/Cartridges/NetProbeCartridgeComponent.cs b/Content.Server/CartridgeLoader/Cartridges/NetProbeCartridgeComponent.cs index b484520622..0de3538c0d 100644 --- a/Content.Server/CartridgeLoader/Cartridges/NetProbeCartridgeComponent.cs +++ b/Content.Server/CartridgeLoader/Cartridges/NetProbeCartridgeComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Audio; namespace Content.Server.CartridgeLoader.Cartridges; [RegisterComponent] -public sealed class NetProbeCartridgeComponent : Component +public sealed partial class NetProbeCartridgeComponent : Component { /// /// The list of probed network devices diff --git a/Content.Server/CartridgeLoader/Cartridges/NewsReadCartridgeComponent.cs b/Content.Server/CartridgeLoader/Cartridges/NewsReadCartridgeComponent.cs index f1d77162fc..d4e70fa591 100644 --- a/Content.Server/CartridgeLoader/Cartridges/NewsReadCartridgeComponent.cs +++ b/Content.Server/CartridgeLoader/Cartridges/NewsReadCartridgeComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.CartridgeLoader.Cartridges; [RegisterComponent] -public sealed class NewsReadCartridgeComponent : Component +public sealed partial class NewsReadCartridgeComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public int ArticleNum; diff --git a/Content.Server/CartridgeLoader/Cartridges/NotekeeperCartridgeComponent.cs b/Content.Server/CartridgeLoader/Cartridges/NotekeeperCartridgeComponent.cs index 3afab1c1cd..dacf13f079 100644 --- a/Content.Server/CartridgeLoader/Cartridges/NotekeeperCartridgeComponent.cs +++ b/Content.Server/CartridgeLoader/Cartridges/NotekeeperCartridgeComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.CartridgeLoader.Cartridges; [RegisterComponent] -public sealed class NotekeeperCartridgeComponent : Component +public sealed partial class NotekeeperCartridgeComponent : Component { /// /// The list of notes that got written down diff --git a/Content.Server/Charges/Components/AutoRechargeComponent.cs b/Content.Server/Charges/Components/AutoRechargeComponent.cs index 911145062b..e23f0229bb 100644 --- a/Content.Server/Charges/Components/AutoRechargeComponent.cs +++ b/Content.Server/Charges/Components/AutoRechargeComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Charges.Components; /// [RegisterComponent] [Access(typeof(ChargesSystem))] -public sealed class AutoRechargeComponent : Component +public sealed partial class AutoRechargeComponent : Component { /// /// The time it takes to regain a single charge diff --git a/Content.Server/Chat/AutoEmoteComponent.cs b/Content.Server/Chat/AutoEmoteComponent.cs index 5a4211c2de..e334d069bb 100644 --- a/Content.Server/Chat/AutoEmoteComponent.cs +++ b/Content.Server/Chat/AutoEmoteComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy /// Causes an entity to automatically emote at a set interval. /// [RegisterComponent, Access(typeof(AutoEmoteSystem))] -public sealed class AutoEmoteComponent : Component +public sealed partial class AutoEmoteComponent : Component { /// /// A set of emotes that the entity will preform. diff --git a/Content.Server/Chat/EmoteOnDamageComponent.cs b/Content.Server/Chat/EmoteOnDamageComponent.cs index f2c7dc5b7e..91eddef215 100644 --- a/Content.Server/Chat/EmoteOnDamageComponent.cs +++ b/Content.Server/Chat/EmoteOnDamageComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy /// Causes an entity to automatically emote when taking damage. /// [RegisterComponent, Access(typeof(EmoteOnDamageSystem))] -public sealed class EmoteOnDamageComponent : Component +public sealed partial class EmoteOnDamageComponent : Component { /// /// Chance of preforming an emote when taking damage and not on cooldown. diff --git a/Content.Server/Chemistry/Components/ActiveSolutionHeaterComponent.cs b/Content.Server/Chemistry/Components/ActiveSolutionHeaterComponent.cs index e190c0ebd3..3159250869 100644 --- a/Content.Server/Chemistry/Components/ActiveSolutionHeaterComponent.cs +++ b/Content.Server/Chemistry/Components/ActiveSolutionHeaterComponent.cs @@ -1,6 +1,6 @@ namespace Content.Server.Chemistry.Components; [RegisterComponent] -public sealed class ActiveSolutionHeaterComponent : Component +public sealed partial class ActiveSolutionHeaterComponent : Component { } diff --git a/Content.Server/Chemistry/Components/ChemMasterComponent.cs b/Content.Server/Chemistry/Components/ChemMasterComponent.cs index c1f79909f6..9578755ba7 100644 --- a/Content.Server/Chemistry/Components/ChemMasterComponent.cs +++ b/Content.Server/Chemistry/Components/ChemMasterComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Chemistry.Components /// [RegisterComponent] [Access(typeof(ChemMasterSystem))] - public sealed class ChemMasterComponent : Component + public sealed partial class ChemMasterComponent : Component { [DataField("pillType"), ViewVariables(VVAccess.ReadWrite)] public uint PillType = 0; diff --git a/Content.Server/Chemistry/Components/HyposprayComponent.cs b/Content.Server/Chemistry/Components/HyposprayComponent.cs index 78adadefed..cddbd17888 100644 --- a/Content.Server/Chemistry/Components/HyposprayComponent.cs +++ b/Content.Server/Chemistry/Components/HyposprayComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Audio; namespace Content.Server.Chemistry.Components { [RegisterComponent] - public sealed class HyposprayComponent : SharedHyposprayComponent + public sealed partial class HyposprayComponent : SharedHyposprayComponent { // TODO: This should be on clumsycomponent. [DataField("clumsyFailChance")] diff --git a/Content.Server/Chemistry/Components/InjectorComponent.cs b/Content.Server/Chemistry/Components/InjectorComponent.cs index e9d6b7c42e..d6d149ad0f 100644 --- a/Content.Server/Chemistry/Components/InjectorComponent.cs +++ b/Content.Server/Chemistry/Components/InjectorComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.Components /// containers, and can directly inject into a mobs bloodstream. /// [RegisterComponent] - public sealed class InjectorComponent : SharedInjectorComponent + public sealed partial class InjectorComponent : SharedInjectorComponent { public const string SolutionName = "injector"; diff --git a/Content.Server/Chemistry/Components/MeleeChemicalInjectorComponent.cs b/Content.Server/Chemistry/Components/MeleeChemicalInjectorComponent.cs index 2042c1d212..6b6ce830a9 100644 --- a/Content.Server/Chemistry/Components/MeleeChemicalInjectorComponent.cs +++ b/Content.Server/Chemistry/Components/MeleeChemicalInjectorComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.Chemistry.Components { [RegisterComponent] - public sealed class MeleeChemicalInjectorComponent : Component + public sealed partial class MeleeChemicalInjectorComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("transferAmount")] diff --git a/Content.Server/Chemistry/Components/ReagentDispenserComponent.cs b/Content.Server/Chemistry/Components/ReagentDispenserComponent.cs index 8592eda00e..7229010228 100644 --- a/Content.Server/Chemistry/Components/ReagentDispenserComponent.cs +++ b/Content.Server/Chemistry/Components/ReagentDispenserComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Chemistry.Components /// [RegisterComponent] [Access(typeof(ReagentDispenserSystem))] - public sealed class ReagentDispenserComponent : Component + public sealed partial class ReagentDispenserComponent : Component { [DataField("pack", customTypeSerializer:typeof(PrototypeIdSerializer))] diff --git a/Content.Server/Chemistry/Components/ReagentTankComponent.cs b/Content.Server/Chemistry/Components/ReagentTankComponent.cs index 162e3d6b8a..cc0d2657d7 100644 --- a/Content.Server/Chemistry/Components/ReagentTankComponent.cs +++ b/Content.Server/Chemistry/Components/ReagentTankComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Chemistry.Components { [RegisterComponent] - public sealed class ReagentTankComponent : Component + public sealed partial class ReagentTankComponent : Component { [DataField("transferAmount")] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Chemistry/Components/RehydratableComponent.cs b/Content.Server/Chemistry/Components/RehydratableComponent.cs index 4e0c1c4846..636eba6ca1 100644 --- a/Content.Server/Chemistry/Components/RehydratableComponent.cs +++ b/Content.Server/Chemistry/Components/RehydratableComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Chemistry.Components; /// But specifically, this component deletes the entity and spawns in a new entity when the entity is exposed to a certain amount of a given reagent. /// [RegisterComponent, Access(typeof(RehydratableSystem))] -public sealed class RehydratableComponent : Component +public sealed partial class RehydratableComponent : Component { /// /// The reagent that must be present to count as hydrated. diff --git a/Content.Server/Chemistry/Components/SmokeComponent.cs b/Content.Server/Chemistry/Components/SmokeComponent.cs index 088287bfa2..133ad41f13 100644 --- a/Content.Server/Chemistry/Components/SmokeComponent.cs +++ b/Content.Server/Chemistry/Components/SmokeComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.Components; /// to entities that collide with it. Similar to /// [RegisterComponent] -public sealed class SmokeComponent : Component +public sealed partial class SmokeComponent : Component { public const string SolutionName = "solutionArea"; diff --git a/Content.Server/Chemistry/Components/SmokeDissipateSpawnComponent.cs b/Content.Server/Chemistry/Components/SmokeDissipateSpawnComponent.cs index a791880d93..068ac432b6 100644 --- a/Content.Server/Chemistry/Components/SmokeDissipateSpawnComponent.cs +++ b/Content.Server/Chemistry/Components/SmokeDissipateSpawnComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.Components; /// When a despawns this will spawn another entity in its place. /// [RegisterComponent, Access(typeof(SmokeSystem))] -public sealed class SmokeDissipateSpawnComponent : Component +public sealed partial class SmokeDissipateSpawnComponent : Component { [DataField("prototype", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Prototype = string.Empty; diff --git a/Content.Server/Chemistry/Components/SolutionHeaterComponent.cs b/Content.Server/Chemistry/Components/SolutionHeaterComponent.cs index 0a9e696c87..7195670125 100644 --- a/Content.Server/Chemistry/Components/SolutionHeaterComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionHeaterComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Chemistry.Components; [RegisterComponent] -public sealed class SolutionHeaterComponent : Component +public sealed partial class SolutionHeaterComponent : Component { /// /// How much heat is added per second to the solution, with no upgrades. diff --git a/Content.Server/Chemistry/Components/SolutionInjectOnCollideComponent.cs b/Content.Server/Chemistry/Components/SolutionInjectOnCollideComponent.cs index bf51da1db7..073bc1167c 100644 --- a/Content.Server/Chemistry/Components/SolutionInjectOnCollideComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionInjectOnCollideComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Chemistry.Components /// On colliding with an entity that has a bloodstream will dump its solution onto them. /// [RegisterComponent] - internal sealed class SolutionInjectOnCollideComponent : Component + internal sealed partial class SolutionInjectOnCollideComponent : Component { [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Chemistry/Components/SolutionManager/DrawableSolutionComponent.cs b/Content.Server/Chemistry/Components/SolutionManager/DrawableSolutionComponent.cs index 65d1638c91..2ecb7e8c43 100644 --- a/Content.Server/Chemistry/Components/SolutionManager/DrawableSolutionComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionManager/DrawableSolutionComponent.cs @@ -4,7 +4,7 @@ /// Denotes the solution that can removed be with syringes. /// [RegisterComponent] - public sealed class DrawableSolutionComponent : Component + public sealed partial class DrawableSolutionComponent : Component { /// /// Solution name that can be removed with syringes. diff --git a/Content.Server/Chemistry/Components/SolutionManager/ExaminableSolutionComponent.cs b/Content.Server/Chemistry/Components/SolutionManager/ExaminableSolutionComponent.cs index a150091033..52b8affb24 100644 --- a/Content.Server/Chemistry/Components/SolutionManager/ExaminableSolutionComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionManager/ExaminableSolutionComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Chemistry.Components.SolutionManager { [RegisterComponent] - public sealed class ExaminableSolutionComponent: Component + public sealed partial class ExaminableSolutionComponent: Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("solution")] diff --git a/Content.Server/Chemistry/Components/SolutionManager/InjectableSolutionComponent.cs b/Content.Server/Chemistry/Components/SolutionManager/InjectableSolutionComponent.cs index 01ee25e175..17fc34b506 100644 --- a/Content.Server/Chemistry/Components/SolutionManager/InjectableSolutionComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionManager/InjectableSolutionComponent.cs @@ -4,7 +4,7 @@ /// Denotes a solution which can be added with syringes. /// [RegisterComponent] - public sealed class InjectableSolutionComponent : Component + public sealed partial class InjectableSolutionComponent : Component { /// diff --git a/Content.Server/Chemistry/Components/SolutionManager/RandomFillSolutionComponent.cs b/Content.Server/Chemistry/Components/SolutionManager/RandomFillSolutionComponent.cs index 409665fb0d..bbc06a056e 100644 --- a/Content.Server/Chemistry/Components/SolutionManager/RandomFillSolutionComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionManager/RandomFillSolutionComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.Components.SolutionManager; /// Fills a solution container randomly using a weighted random prototype /// [RegisterComponent, Access(typeof(SolutionRandomFillSystem))] -public sealed class RandomFillSolutionComponent : Component +public sealed partial class RandomFillSolutionComponent : Component { /// /// Solution name which to add reagents to. diff --git a/Content.Server/Chemistry/Components/SolutionManager/SolutionContainerManagerComponent.cs b/Content.Server/Chemistry/Components/SolutionManager/SolutionContainerManagerComponent.cs index 69ceb55333..d76237a80b 100644 --- a/Content.Server/Chemistry/Components/SolutionManager/SolutionContainerManagerComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionManager/SolutionContainerManagerComponent.cs @@ -5,10 +5,10 @@ namespace Content.Server.Chemistry.Components.SolutionManager { [RegisterComponent] [Access(typeof(SolutionContainerSystem))] - public sealed class SolutionContainerManagerComponent : Component + public sealed partial class SolutionContainerManagerComponent : Component { [DataField("solutions")] [Access(typeof(SolutionContainerSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends - public readonly Dictionary Solutions = new(); + public Dictionary Solutions = new(); } } diff --git a/Content.Server/Chemistry/Components/SolutionPurgeComponent.cs b/Content.Server/Chemistry/Components/SolutionPurgeComponent.cs index d4a71b9dde..0525542b96 100644 --- a/Content.Server/Chemistry/Components/SolutionPurgeComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionPurgeComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Chemistry.Components; /// [RegisterComponent] [Access(typeof(SolutionPurgeSystem))] -public sealed class SolutionPurgeComponent : Component +public sealed partial class SolutionPurgeComponent : Component { /// /// The name of the solution to detract from. diff --git a/Content.Server/Chemistry/Components/SolutionRegenerationComponent.cs b/Content.Server/Chemistry/Components/SolutionRegenerationComponent.cs index d84f9365c7..1fc5772d4e 100644 --- a/Content.Server/Chemistry/Components/SolutionRegenerationComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionRegenerationComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Chemistry.Components; /// [RegisterComponent] [Access(typeof(SolutionRegenerationSystem))] -public sealed class SolutionRegenerationComponent : Component +public sealed partial class SolutionRegenerationComponent : Component { /// /// The name of the solution to add to. diff --git a/Content.Server/Chemistry/Components/SolutionSpikerComponent.cs b/Content.Server/Chemistry/Components/SolutionSpikerComponent.cs index 16ce3a36fb..63b6ebefcc 100644 --- a/Content.Server/Chemistry/Components/SolutionSpikerComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionSpikerComponent.cs @@ -1,30 +1,30 @@ namespace Content.Server.Chemistry.Components; [RegisterComponent] -public sealed class SolutionSpikerComponent : Component +public sealed partial class SolutionSpikerComponent : Component { /// /// The source solution to take the reagents from in order /// to spike the other solution container. /// [DataField("sourceSolution")] - public string SourceSolution { get; } = string.Empty; + public string SourceSolution { get; private set; } = string.Empty; /// /// If spiking with this entity should ignore empty containers or not. /// [DataField("ignoreEmpty")] - public bool IgnoreEmpty { get; } + public bool IgnoreEmpty { get; private set; } /// /// What should pop up when spiking with this entity. /// [DataField("popup")] - public string Popup { get; } = "spike-solution-generic"; + public string Popup { get; private set; } = "spike-solution-generic"; /// /// What should pop up when spiking fails because the container was empty. /// [DataField("popupEmpty")] - public string PopupEmpty { get; } = "spike-solution-empty-generic"; + public string PopupEmpty { get; private set; } = "spike-solution-empty-generic"; } diff --git a/Content.Server/Chemistry/Components/TransformableContainerComponent.cs b/Content.Server/Chemistry/Components/TransformableContainerComponent.cs index ede2e5fb9b..5ea9a24487 100644 --- a/Content.Server/Chemistry/Components/TransformableContainerComponent.cs +++ b/Content.Server/Chemistry/Components/TransformableContainerComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Chemistry.Components; /// Should probably be joined with SolutionContainerVisualsComponent when solutions are networked. /// [RegisterComponent, Access(typeof(TransformableContainerSystem))] -public sealed class TransformableContainerComponent : Component +public sealed partial class TransformableContainerComponent : Component { /// /// This is the initial metadata name for the container. diff --git a/Content.Server/Chemistry/Components/VaporComponent.cs b/Content.Server/Chemistry/Components/VaporComponent.cs index 5517e11ea5..a2f4a01a2a 100644 --- a/Content.Server/Chemistry/Components/VaporComponent.cs +++ b/Content.Server/Chemistry/Components/VaporComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.Chemistry.Components { [RegisterComponent] - public sealed class VaporComponent : Component + public sealed partial class VaporComponent : Component { public const string SolutionName = "vapor"; diff --git a/Content.Server/Chemistry/ReactionEffects/AreaReactionEffect.cs b/Content.Server/Chemistry/ReactionEffects/AreaReactionEffect.cs index e323d9c834..103433c9a5 100644 --- a/Content.Server/Chemistry/ReactionEffects/AreaReactionEffect.cs +++ b/Content.Server/Chemistry/ReactionEffects/AreaReactionEffect.cs @@ -21,7 +21,7 @@ namespace Content.Server.Chemistry.ReactionEffects /// [UsedImplicitly] [DataDefinition] - public sealed class AreaReactionEffect : ReagentEffect + public sealed partial class AreaReactionEffect : ReagentEffect { /// /// How many seconds will the effect stay, counting after fully spreading. diff --git a/Content.Server/Chemistry/ReactionEffects/CreateEntityReactionEffect.cs b/Content.Server/Chemistry/ReactionEffects/CreateEntityReactionEffect.cs index 2cc5ea9dbe..53c4f676a8 100644 --- a/Content.Server/Chemistry/ReactionEffects/CreateEntityReactionEffect.cs +++ b/Content.Server/Chemistry/ReactionEffects/CreateEntityReactionEffect.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Chemistry.ReactionEffects; [DataDefinition] -public sealed class CreateEntityReactionEffect : ReagentEffect +public sealed partial class CreateEntityReactionEffect : ReagentEffect { /// /// What entity to create. diff --git a/Content.Server/Chemistry/ReactionEffects/EmpReactionEffect.cs b/Content.Server/Chemistry/ReactionEffects/EmpReactionEffect.cs index 17d868a0e9..2efdff93af 100644 --- a/Content.Server/Chemistry/ReactionEffects/EmpReactionEffect.cs +++ b/Content.Server/Chemistry/ReactionEffects/EmpReactionEffect.cs @@ -6,7 +6,7 @@ namespace Content.Server.Chemistry.ReactionEffects; [DataDefinition] -public sealed class EmpReactionEffect : ReagentEffect +public sealed partial class EmpReactionEffect : ReagentEffect { /// /// Impulse range per unit of reagent diff --git a/Content.Server/Chemistry/ReactionEffects/ExplosionReactionEffect.cs b/Content.Server/Chemistry/ReactionEffects/ExplosionReactionEffect.cs index 7b5c0bfce7..41a389ee2f 100644 --- a/Content.Server/Chemistry/ReactionEffects/ExplosionReactionEffect.cs +++ b/Content.Server/Chemistry/ReactionEffects/ExplosionReactionEffect.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Chemistry.ReactionEffects { [DataDefinition] - public sealed class ExplosionReactionEffect : ReagentEffect + public sealed partial class ExplosionReactionEffect : ReagentEffect { /// /// The type of explosion. Determines damage types and tile break chance scaling. diff --git a/Content.Server/Chemistry/ReactionEffects/SolutionTemperatureEffects.cs b/Content.Server/Chemistry/ReactionEffects/SolutionTemperatureEffects.cs index d768935466..6117132831 100644 --- a/Content.Server/Chemistry/ReactionEffects/SolutionTemperatureEffects.cs +++ b/Content.Server/Chemistry/ReactionEffects/SolutionTemperatureEffects.cs @@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.ReactionEffects /// Sets the temperature of the solution involved with the reaction to a new value. /// [DataDefinition] - public sealed class SetSolutionTemperatureEffect : ReagentEffect + public sealed partial class SetSolutionTemperatureEffect : ReagentEffect { /// /// The temperature to set the solution to. @@ -34,7 +34,7 @@ namespace Content.Server.Chemistry.ReactionEffects /// Adjusts the temperature of the solution involved in the reaction. /// [DataDefinition] - public sealed class AdjustSolutionTemperatureEffect : ReagentEffect + public sealed partial class AdjustSolutionTemperatureEffect : ReagentEffect { /// /// The change in temperature. @@ -74,7 +74,7 @@ namespace Content.Server.Chemistry.ReactionEffects /// /// Adjusts the thermal energy of the solution involved in the reaction. /// - public sealed class AdjustSolutionThermalEnergyEffect : ReagentEffect + public sealed partial class AdjustSolutionThermalEnergyEffect : ReagentEffect { /// /// The change in energy. diff --git a/Content.Server/Chemistry/ReagentEffectConditions/BodyTemperature.cs b/Content.Server/Chemistry/ReagentEffectConditions/BodyTemperature.cs index 057d2ebdb8..fbb1894813 100644 --- a/Content.Server/Chemistry/ReagentEffectConditions/BodyTemperature.cs +++ b/Content.Server/Chemistry/ReagentEffectConditions/BodyTemperature.cs @@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.ReagentEffectConditions /// Requires the solution entity to be above or below a certain temperature. /// Used for things like cryoxadone and pyroxadone. /// - public sealed class Temperature : ReagentEffectCondition + public sealed partial class Temperature : ReagentEffectCondition { [DataField("min")] public float Min = 0; diff --git a/Content.Server/Chemistry/ReagentEffectConditions/HasTagCondition.cs b/Content.Server/Chemistry/ReagentEffectConditions/HasTagCondition.cs index dccf4f33eb..e2f4ca0968 100644 --- a/Content.Server/Chemistry/ReagentEffectConditions/HasTagCondition.cs +++ b/Content.Server/Chemistry/ReagentEffectConditions/HasTagCondition.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Chemistry.ReagentEffectConditions; [UsedImplicitly] -public sealed class HasTag : ReagentEffectCondition +public sealed partial class HasTag : ReagentEffectCondition { [DataField("tag", customTypeSerializer: typeof(PrototypeIdSerializer))] public string Tag = default!; diff --git a/Content.Server/Chemistry/ReagentEffectConditions/MobStateCondition.cs b/Content.Server/Chemistry/ReagentEffectConditions/MobStateCondition.cs index b76e8fac3c..4585cc6d8a 100644 --- a/Content.Server/Chemistry/ReagentEffectConditions/MobStateCondition.cs +++ b/Content.Server/Chemistry/ReagentEffectConditions/MobStateCondition.cs @@ -5,7 +5,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffectConditions { - public sealed class MobStateCondition : ReagentEffectCondition + public sealed partial class MobStateCondition : ReagentEffectCondition { diff --git a/Content.Server/Chemistry/ReagentEffectConditions/OrganType.cs b/Content.Server/Chemistry/ReagentEffectConditions/OrganType.cs index cbb0ec2f52..a8e9e3077b 100644 --- a/Content.Server/Chemistry/ReagentEffectConditions/OrganType.cs +++ b/Content.Server/Chemistry/ReagentEffectConditions/OrganType.cs @@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.ReagentEffectConditions /// /// Requires that the metabolizing organ is or is not tagged with a certain MetabolizerType /// - public sealed class OrganType : ReagentEffectCondition + public sealed partial class OrganType : ReagentEffectCondition { [DataField("type", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] public string Type = default!; diff --git a/Content.Server/Chemistry/ReagentEffectConditions/ReagentThreshold.cs b/Content.Server/Chemistry/ReagentEffectConditions/ReagentThreshold.cs index befefd1f53..87e1e683a8 100644 --- a/Content.Server/Chemistry/ReagentEffectConditions/ReagentThreshold.cs +++ b/Content.Server/Chemistry/ReagentEffectConditions/ReagentThreshold.cs @@ -11,7 +11,7 @@ namespace Content.Server.Chemistry.ReagentEffectConditions /// This can also trigger on -other- reagents, not just the one metabolizing. By default, it uses the /// one being metabolized. /// - public sealed class ReagentThreshold : ReagentEffectCondition + public sealed partial class ReagentThreshold : ReagentEffectCondition { [DataField("min")] public FixedPoint2 Min = FixedPoint2.Zero; diff --git a/Content.Server/Chemistry/ReagentEffectConditions/SolutionTemperature.cs b/Content.Server/Chemistry/ReagentEffectConditions/SolutionTemperature.cs index 6b370fb9a4..974f2fb81a 100644 --- a/Content.Server/Chemistry/ReagentEffectConditions/SolutionTemperature.cs +++ b/Content.Server/Chemistry/ReagentEffectConditions/SolutionTemperature.cs @@ -7,7 +7,7 @@ namespace Content.Server.Chemistry.ReagentEffectConditions /// Requires the solution to be above or below a certain temperature. /// Used for things like explosives. /// - public sealed class SolutionTemperature : ReagentEffectCondition + public sealed partial class SolutionTemperature : ReagentEffectCondition { [DataField("min")] public float Min = 0.0f; diff --git a/Content.Server/Chemistry/ReagentEffectConditions/TotalDamage.cs b/Content.Server/Chemistry/ReagentEffectConditions/TotalDamage.cs index 8c62dd7ce0..81f6475449 100644 --- a/Content.Server/Chemistry/ReagentEffectConditions/TotalDamage.cs +++ b/Content.Server/Chemistry/ReagentEffectConditions/TotalDamage.cs @@ -5,7 +5,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffectConditions { - public sealed class TotalDamage : ReagentEffectCondition + public sealed partial class TotalDamage : ReagentEffectCondition { [DataField("max")] public FixedPoint2 Max = FixedPoint2.MaxValue; diff --git a/Content.Server/Chemistry/ReagentEffects/ActivateArtifact.cs b/Content.Server/Chemistry/ReagentEffects/ActivateArtifact.cs index bd89e8ec45..41af90f60a 100644 --- a/Content.Server/Chemistry/ReagentEffects/ActivateArtifact.cs +++ b/Content.Server/Chemistry/ReagentEffects/ActivateArtifact.cs @@ -4,7 +4,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffects; -public sealed class ActivateArtifact : ReagentEffect +public sealed partial class ActivateArtifact : ReagentEffect { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/AddToSolutionReaction.cs b/Content.Server/Chemistry/ReagentEffects/AddToSolutionReaction.cs index 5ec0b2a08b..e2d3af58f1 100644 --- a/Content.Server/Chemistry/ReagentEffects/AddToSolutionReaction.cs +++ b/Content.Server/Chemistry/ReagentEffects/AddToSolutionReaction.cs @@ -6,7 +6,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffects { [UsedImplicitly] - public sealed class AddToSolutionReaction : ReagentEffect + public sealed partial class AddToSolutionReaction : ReagentEffect { [DataField("solution")] private string _solution = "reagents"; diff --git a/Content.Server/Chemistry/ReagentEffects/AdjustAlert.cs b/Content.Server/Chemistry/ReagentEffects/AdjustAlert.cs index acae2e0153..ee384a2834 100644 --- a/Content.Server/Chemistry/ReagentEffects/AdjustAlert.cs +++ b/Content.Server/Chemistry/ReagentEffects/AdjustAlert.cs @@ -5,7 +5,7 @@ using Robust.Shared.Timing; namespace Content.Server.Chemistry.ReagentEffects; -public sealed class AdjustAlert : ReagentEffect +public sealed partial class AdjustAlert : ReagentEffect { [DataField("alertType", required: true)] public AlertType Type; diff --git a/Content.Server/Chemistry/ReagentEffects/AdjustReagent.cs b/Content.Server/Chemistry/ReagentEffects/AdjustReagent.cs index c29459b30f..00c6a91046 100644 --- a/Content.Server/Chemistry/ReagentEffects/AdjustReagent.cs +++ b/Content.Server/Chemistry/ReagentEffects/AdjustReagent.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Chemistry.ReagentEffects { [UsedImplicitly] - public sealed class AdjustReagent : ReagentEffect + public sealed partial class AdjustReagent : ReagentEffect { /// /// The reagent ID to remove. Only one of this and should be active. diff --git a/Content.Server/Chemistry/ReagentEffects/AdjustTemperature.cs b/Content.Server/Chemistry/ReagentEffects/AdjustTemperature.cs index b96d2a0469..66ae5ba1db 100644 --- a/Content.Server/Chemistry/ReagentEffects/AdjustTemperature.cs +++ b/Content.Server/Chemistry/ReagentEffects/AdjustTemperature.cs @@ -5,7 +5,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffects { - public sealed class AdjustTemperature : ReagentEffect + public sealed partial class AdjustTemperature : ReagentEffect { [DataField("amount")] public float Amount; diff --git a/Content.Server/Chemistry/ReagentEffects/CauseZombieInfection.cs b/Content.Server/Chemistry/ReagentEffects/CauseZombieInfection.cs index 011ef6be4d..ed3098dbdc 100644 --- a/Content.Server/Chemistry/ReagentEffects/CauseZombieInfection.cs +++ b/Content.Server/Chemistry/ReagentEffects/CauseZombieInfection.cs @@ -7,10 +7,10 @@ using Content.Server.Zombies; namespace Content.Server.Chemistry.ReagentEffects; -public sealed class CauseZombieInfection : ReagentEffect +public sealed partial class CauseZombieInfection : ReagentEffect { protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) - => Loc.GetString("reagent-effect-guidebook-cause-zombie-infection", ("chance", Probability)); + => Loc.GetString("reagent-effect-guidebook-cause-zombie-infection", ("chance", Probability)); // Adds the Zombie Infection Components public override void Effect(ReagentEffectArgs args) diff --git a/Content.Server/Chemistry/ReagentEffects/ChemCleanBoodstream.cs b/Content.Server/Chemistry/ReagentEffects/ChemCleanBoodstream.cs index 132315663f..f0deb29f87 100644 --- a/Content.Server/Chemistry/ReagentEffects/ChemCleanBoodstream.cs +++ b/Content.Server/Chemistry/ReagentEffects/ChemCleanBoodstream.cs @@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.ReactionEffects /// Basically smoke and foam reactions. /// [UsedImplicitly] - public sealed class ChemCleanBloodstream : ReagentEffect + public sealed partial class ChemCleanBloodstream : ReagentEffect { [DataField("cleanseRate")] public float CleanseRate = 3.0f; diff --git a/Content.Server/Chemistry/ReagentEffects/ChemHealEyeDamage.cs b/Content.Server/Chemistry/ReagentEffects/ChemHealEyeDamage.cs index f95c52ba40..9f074bca52 100644 --- a/Content.Server/Chemistry/ReagentEffects/ChemHealEyeDamage.cs +++ b/Content.Server/Chemistry/ReagentEffects/ChemHealEyeDamage.cs @@ -10,7 +10,7 @@ namespace Content.Server.Chemistry.ReagentEffects /// Heal or apply eye damage /// [UsedImplicitly] - public sealed class ChemHealEyeDamage : ReagentEffect + public sealed partial class ChemHealEyeDamage : ReagentEffect { /// /// How much eye damage to add. diff --git a/Content.Server/Chemistry/ReagentEffects/ChemVomit.cs b/Content.Server/Chemistry/ReagentEffects/ChemVomit.cs index 74ecfefff4..cfdfd5ffa0 100644 --- a/Content.Server/Chemistry/ReagentEffects/ChemVomit.cs +++ b/Content.Server/Chemistry/ReagentEffects/ChemVomit.cs @@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.ReagentEffects /// Forces you to vomit. /// [UsedImplicitly] - public sealed class ChemVomit : ReagentEffect + public sealed partial class ChemVomit : ReagentEffect { /// How many units of thirst to add each time we vomit [DataField("thirstAmount")] diff --git a/Content.Server/Chemistry/ReagentEffects/CreateGas.cs b/Content.Server/Chemistry/ReagentEffects/CreateGas.cs index 0778c0727f..ca9ecd67d1 100644 --- a/Content.Server/Chemistry/ReagentEffects/CreateGas.cs +++ b/Content.Server/Chemistry/ReagentEffects/CreateGas.cs @@ -6,7 +6,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffects; -public sealed class CreateGas : ReagentEffect +public sealed partial class CreateGas : ReagentEffect { [DataField("gas", required: true)] public Gas Gas = default!; diff --git a/Content.Server/Chemistry/ReagentEffects/CureZombieInfection.cs b/Content.Server/Chemistry/ReagentEffects/CureZombieInfection.cs index 638830c046..4e1733e60a 100644 --- a/Content.Server/Chemistry/ReagentEffects/CureZombieInfection.cs +++ b/Content.Server/Chemistry/ReagentEffects/CureZombieInfection.cs @@ -6,7 +6,7 @@ using Content.Server.Zombies; namespace Content.Server.Chemistry.ReagentEffects; -public sealed class CureZombieInfection : ReagentEffect +public sealed partial class CureZombieInfection : ReagentEffect { [DataField("innoculate")] public bool Innoculate; diff --git a/Content.Server/Chemistry/ReagentEffects/Drunk.cs b/Content.Server/Chemistry/ReagentEffects/Drunk.cs index dedf984b2b..8053c8100f 100644 --- a/Content.Server/Chemistry/ReagentEffects/Drunk.cs +++ b/Content.Server/Chemistry/ReagentEffects/Drunk.cs @@ -4,7 +4,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffects; -public sealed class Drunk : ReagentEffect +public sealed partial class Drunk : ReagentEffect { /// /// BoozePower is how long each metabolism cycle will make the drunk effect last for. diff --git a/Content.Server/Chemistry/ReagentEffects/Electrocute.cs b/Content.Server/Chemistry/ReagentEffects/Electrocute.cs index b6d2d58e28..85819d36ea 100644 --- a/Content.Server/Chemistry/ReagentEffects/Electrocute.cs +++ b/Content.Server/Chemistry/ReagentEffects/Electrocute.cs @@ -4,7 +4,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffects; -public sealed class Electrocute : ReagentEffect +public sealed partial class Electrocute : ReagentEffect { [DataField("electrocuteTime")] public int ElectrocuteTime = 2; diff --git a/Content.Server/Chemistry/ReagentEffects/Emote.cs b/Content.Server/Chemistry/ReagentEffects/Emote.cs index 753435a599..45da55ea1a 100644 --- a/Content.Server/Chemistry/ReagentEffects/Emote.cs +++ b/Content.Server/Chemistry/ReagentEffects/Emote.cs @@ -11,7 +11,7 @@ namespace Content.Server.Chemistry.ReagentEffects; /// Tries to force someone to emote (scream, laugh, etc). /// [UsedImplicitly] -public sealed class Emote : ReagentEffect +public sealed partial class Emote : ReagentEffect { [DataField("emote", customTypeSerializer: typeof(PrototypeIdSerializer))] public string? EmoteId; diff --git a/Content.Server/Chemistry/ReagentEffects/ExtinguishReaction.cs b/Content.Server/Chemistry/ReagentEffects/ExtinguishReaction.cs index eb2aefd444..e902908998 100644 --- a/Content.Server/Chemistry/ReagentEffects/ExtinguishReaction.cs +++ b/Content.Server/Chemistry/ReagentEffects/ExtinguishReaction.cs @@ -7,7 +7,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffects { [UsedImplicitly] - public sealed class ExtinguishReaction : ReagentEffect + public sealed partial class ExtinguishReaction : ReagentEffect { protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) => Loc.GetString("reagent-effect-guidebook-extinguish-reaction", ("chance", Probability)); diff --git a/Content.Server/Chemistry/ReagentEffects/FlammableReaction.cs b/Content.Server/Chemistry/ReagentEffects/FlammableReaction.cs index 0cf28d1ac1..26bd4c8b7e 100644 --- a/Content.Server/Chemistry/ReagentEffects/FlammableReaction.cs +++ b/Content.Server/Chemistry/ReagentEffects/FlammableReaction.cs @@ -8,7 +8,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffects { [UsedImplicitly] - public sealed class FlammableReaction : ReagentEffect + public sealed partial class FlammableReaction : ReagentEffect { [DataField("multiplier")] public float Multiplier = 0.05f; diff --git a/Content.Server/Chemistry/ReagentEffects/HealthChange.cs b/Content.Server/Chemistry/ReagentEffects/HealthChange.cs index f47813d78d..6d22db742f 100644 --- a/Content.Server/Chemistry/ReagentEffects/HealthChange.cs +++ b/Content.Server/Chemistry/ReagentEffects/HealthChange.cs @@ -14,7 +14,7 @@ namespace Content.Server.Chemistry.ReagentEffects /// Default metabolism for medicine reagents. /// [UsedImplicitly] - public sealed class HealthChange : ReagentEffect + public sealed partial class HealthChange : ReagentEffect { /// /// Damage to apply every metabolism cycle. Damage Ignores resistances. diff --git a/Content.Server/Chemistry/ReagentEffects/Ignite.cs b/Content.Server/Chemistry/ReagentEffects/Ignite.cs index 6f2a44ea2d..1fc90f63e3 100644 --- a/Content.Server/Chemistry/ReagentEffects/Ignite.cs +++ b/Content.Server/Chemistry/ReagentEffects/Ignite.cs @@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.ReagentEffects; /// /// Ignites a mob. /// -public sealed class Ignite : ReagentEffect +public sealed partial class Ignite : ReagentEffect { public override bool ShouldLog => true; diff --git a/Content.Server/Chemistry/ReagentEffects/MakeSentient.cs b/Content.Server/Chemistry/ReagentEffects/MakeSentient.cs index 899477cfa5..242e7aa760 100644 --- a/Content.Server/Chemistry/ReagentEffects/MakeSentient.cs +++ b/Content.Server/Chemistry/ReagentEffects/MakeSentient.cs @@ -7,7 +7,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffects; -public sealed class MakeSentient : ReagentEffect +public sealed partial class MakeSentient : ReagentEffect { protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) => Loc.GetString("reagent-effect-guidebook-make-sentient", ("chance", Probability)); diff --git a/Content.Server/Chemistry/ReagentEffects/ModifyBleedAmount.cs b/Content.Server/Chemistry/ReagentEffects/ModifyBleedAmount.cs index f50bcc4a27..bb990214f1 100644 --- a/Content.Server/Chemistry/ReagentEffects/ModifyBleedAmount.cs +++ b/Content.Server/Chemistry/ReagentEffects/ModifyBleedAmount.cs @@ -5,7 +5,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffects; -public sealed class ModifyBleedAmount : ReagentEffect +public sealed partial class ModifyBleedAmount : ReagentEffect { [DataField("scaled")] public bool Scaled = false; diff --git a/Content.Server/Chemistry/ReagentEffects/ModifyBloodLevel.cs b/Content.Server/Chemistry/ReagentEffects/ModifyBloodLevel.cs index 6a125436a2..42fb14809f 100644 --- a/Content.Server/Chemistry/ReagentEffects/ModifyBloodLevel.cs +++ b/Content.Server/Chemistry/ReagentEffects/ModifyBloodLevel.cs @@ -6,7 +6,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffects; -public sealed class ModifyBloodLevel : ReagentEffect +public sealed partial class ModifyBloodLevel : ReagentEffect { [DataField("scaled")] public bool Scaled = false; diff --git a/Content.Server/Chemistry/ReagentEffects/ModifyLungGas.cs b/Content.Server/Chemistry/ReagentEffects/ModifyLungGas.cs index 7cecac7e6b..e12cab80a9 100644 --- a/Content.Server/Chemistry/ReagentEffects/ModifyLungGas.cs +++ b/Content.Server/Chemistry/ReagentEffects/ModifyLungGas.cs @@ -5,7 +5,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffects; -public sealed class ModifyLungGas : ReagentEffect +public sealed partial class ModifyLungGas : ReagentEffect { [DataField("ratios", required: true)] private Dictionary _ratios = default!; diff --git a/Content.Server/Chemistry/ReagentEffects/MovespeedModifier.cs b/Content.Server/Chemistry/ReagentEffects/MovespeedModifier.cs index 6564346b87..948726bb06 100644 --- a/Content.Server/Chemistry/ReagentEffects/MovespeedModifier.cs +++ b/Content.Server/Chemistry/ReagentEffects/MovespeedModifier.cs @@ -10,7 +10,7 @@ namespace Content.Server.Chemistry.ReagentEffects /// Default metabolism for stimulants and tranqs. Attempts to find a MovementSpeedModifier on the target, /// adding one if not there and to change the movespeed /// - public sealed class MovespeedModifier : ReagentEffect + public sealed partial class MovespeedModifier : ReagentEffect { /// /// How much the entities' walk speed is multiplied by. diff --git a/Content.Server/Chemistry/ReagentEffects/Oxygenate.cs b/Content.Server/Chemistry/ReagentEffects/Oxygenate.cs index f642c1c8a6..00ac03181d 100644 --- a/Content.Server/Chemistry/ReagentEffects/Oxygenate.cs +++ b/Content.Server/Chemistry/ReagentEffects/Oxygenate.cs @@ -5,7 +5,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffects; -public sealed class Oxygenate : ReagentEffect +public sealed partial class Oxygenate : ReagentEffect { [DataField("factor")] public float Factor = 1f; diff --git a/Content.Server/Chemistry/ReagentEffects/Paralyze.cs b/Content.Server/Chemistry/ReagentEffects/Paralyze.cs index 8a27de9b07..262d942fa9 100644 --- a/Content.Server/Chemistry/ReagentEffects/Paralyze.cs +++ b/Content.Server/Chemistry/ReagentEffects/Paralyze.cs @@ -4,7 +4,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffects; -public sealed class Paralyze : ReagentEffect +public sealed partial class Paralyze : ReagentEffect { [DataField("paralyzeTime")] public double ParalyzeTime = 2; diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustAttribute.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustAttribute.cs index e8146d0bcc..a2d35c8264 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustAttribute.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustAttribute.cs @@ -7,7 +7,7 @@ using Robust.Shared.Random; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [ImplicitDataDefinitionForInheritors] - public abstract class PlantAdjustAttribute : ReagentEffect + public abstract partial class PlantAdjustAttribute : ReagentEffect { [DataField("amount")] public float Amount { get; protected set; } = 1; [DataField("prob")] public float Prob { get; protected set; } = 1; // = (80); diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustHealth.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustHealth.cs index d6ab8c7963..f03464469e 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustHealth.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustHealth.cs @@ -3,7 +3,7 @@ using Content.Shared.Chemistry.Reagent; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { - public sealed class PlantAdjustHealth : PlantAdjustAttribute + public sealed partial class PlantAdjustHealth : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationLevel.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationLevel.cs index 560e684395..8c8d04765a 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationLevel.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationLevel.cs @@ -2,7 +2,7 @@ namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { - public sealed class PlantAdjustMutationLevel : PlantAdjustAttribute + public sealed partial class PlantAdjustMutationLevel : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationMod.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationMod.cs index 7d204f39db..af4a00a044 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationMod.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationMod.cs @@ -4,7 +4,7 @@ using JetBrains.Annotations; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] - public sealed class PlantAdjustMutationMod : PlantAdjustAttribute + public sealed partial class PlantAdjustMutationMod : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustNutrition.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustNutrition.cs index 9d408e3b85..900121412e 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustNutrition.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustNutrition.cs @@ -5,7 +5,7 @@ using JetBrains.Annotations; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] - public sealed class PlantAdjustNutrition : PlantAdjustAttribute + public sealed partial class PlantAdjustNutrition : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustPests.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustPests.cs index cebe30f3dd..27729b4b2c 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustPests.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustPests.cs @@ -4,7 +4,7 @@ using JetBrains.Annotations; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] - public sealed class PlantAdjustPests : PlantAdjustAttribute + public sealed partial class PlantAdjustPests : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustToxins.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustToxins.cs index 9565af7c39..35130238ad 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustToxins.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustToxins.cs @@ -4,7 +4,7 @@ using JetBrains.Annotations; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] - public sealed class PlantAdjustToxins : PlantAdjustAttribute + public sealed partial class PlantAdjustToxins : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWater.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWater.cs index 2f4b8d9927..71b4670dc6 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWater.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWater.cs @@ -5,7 +5,7 @@ using JetBrains.Annotations; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] - public sealed class PlantAdjustWater : PlantAdjustAttribute + public sealed partial class PlantAdjustWater : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWeeds.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWeeds.cs index bd78238dfd..6184b95adb 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWeeds.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWeeds.cs @@ -4,7 +4,7 @@ using JetBrains.Annotations; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] - public sealed class PlantAdjustWeeds : PlantAdjustAttribute + public sealed partial class PlantAdjustWeeds : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAffectGrowth.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAffectGrowth.cs index 32ff4d717a..54ec628fdc 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAffectGrowth.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAffectGrowth.cs @@ -5,7 +5,7 @@ using JetBrains.Annotations; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] - public sealed class PlantAffectGrowth : PlantAdjustAttribute + public sealed partial class PlantAffectGrowth : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantCryoxadone.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantCryoxadone.cs index 127690ed75..83a5f56e59 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantCryoxadone.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantCryoxadone.cs @@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] [DataDefinition] - public sealed class PlantCryoxadone : ReagentEffect + public sealed partial class PlantCryoxadone : ReagentEffect { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantDiethylamine.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantDiethylamine.cs index dbba70dfff..23cb436d2f 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantDiethylamine.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantDiethylamine.cs @@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] [DataDefinition] - public sealed class PlantDiethylamine : ReagentEffect + public sealed partial class PlantDiethylamine : ReagentEffect { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/RobustHarvest.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/RobustHarvest.cs index 81dd072a62..bcd5a01170 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/RobustHarvest.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/RobustHarvest.cs @@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] [DataDefinition] - public sealed class RobustHarvest : ReagentEffect + public sealed partial class RobustHarvest : ReagentEffect { [DataField("potencyLimit")] public int PotencyLimit = 50; diff --git a/Content.Server/Chemistry/ReagentEffects/PopupMessage.cs b/Content.Server/Chemistry/ReagentEffects/PopupMessage.cs index 9d06032307..660a539e8a 100644 --- a/Content.Server/Chemistry/ReagentEffects/PopupMessage.cs +++ b/Content.Server/Chemistry/ReagentEffects/PopupMessage.cs @@ -6,7 +6,7 @@ using Robust.Shared.Random; namespace Content.Server.Chemistry.ReagentEffects { - public sealed class PopupMessage : ReagentEffect + public sealed partial class PopupMessage : ReagentEffect { [DataField("messages", required: true)] public string[] Messages = default!; diff --git a/Content.Server/Chemistry/ReagentEffects/ResetNarcolepsy.cs b/Content.Server/Chemistry/ReagentEffects/ResetNarcolepsy.cs index 20044d4037..fa4f910891 100644 --- a/Content.Server/Chemistry/ReagentEffects/ResetNarcolepsy.cs +++ b/Content.Server/Chemistry/ReagentEffects/ResetNarcolepsy.cs @@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.ReagentEffects; /// Reset narcolepsy timer /// [UsedImplicitly] -public sealed class ResetNarcolepsy : ReagentEffect +public sealed partial class ResetNarcolepsy : ReagentEffect { /// /// The # of seconds the effect resets the narcolepsy timer to diff --git a/Content.Server/Chemistry/ReagentEffects/SatiateHunger.cs b/Content.Server/Chemistry/ReagentEffects/SatiateHunger.cs index a0d00c538e..be77202255 100644 --- a/Content.Server/Chemistry/ReagentEffects/SatiateHunger.cs +++ b/Content.Server/Chemistry/ReagentEffects/SatiateHunger.cs @@ -10,7 +10,7 @@ namespace Content.Server.Chemistry.ReagentEffects /// Attempts to find a HungerComponent on the target, /// and to update it's hunger values. /// - public sealed class SatiateHunger : ReagentEffect + public sealed partial class SatiateHunger : ReagentEffect { private const float DefaultNutritionFactor = 3.0f; diff --git a/Content.Server/Chemistry/ReagentEffects/SatiateThirst.cs b/Content.Server/Chemistry/ReagentEffects/SatiateThirst.cs index 79911110a9..551e4923bc 100644 --- a/Content.Server/Chemistry/ReagentEffects/SatiateThirst.cs +++ b/Content.Server/Chemistry/ReagentEffects/SatiateThirst.cs @@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.ReagentEffects /// Default metabolism for drink reagents. Attempts to find a ThirstComponent on the target, /// and to update it's thirst values. /// - public sealed class SatiateThirst : ReagentEffect + public sealed partial class SatiateThirst : ReagentEffect { private const float DefaultHydrationFactor = 3.0f; diff --git a/Content.Server/Chemistry/ReagentEffects/StatusEffects/GenericStatusEffect.cs b/Content.Server/Chemistry/ReagentEffects/StatusEffects/GenericStatusEffect.cs index 982606194a..06608df4bb 100644 --- a/Content.Server/Chemistry/ReagentEffects/StatusEffects/GenericStatusEffect.cs +++ b/Content.Server/Chemistry/ReagentEffects/StatusEffects/GenericStatusEffect.cs @@ -15,7 +15,7 @@ namespace Content.Server.Chemistry.ReagentEffects.StatusEffects /// Can be used for things like adding accents or something. I don't know. Go wild. /// [UsedImplicitly] - public sealed class GenericStatusEffect : ReagentEffect + public sealed partial class GenericStatusEffect : ReagentEffect { [DataField("key", required: true)] public string Key = default!; diff --git a/Content.Server/Chemistry/ReagentEffects/StatusEffects/Jitter.cs b/Content.Server/Chemistry/ReagentEffects/StatusEffects/Jitter.cs index 3aa81e20f6..7ceb91a0d1 100644 --- a/Content.Server/Chemistry/ReagentEffects/StatusEffects/Jitter.cs +++ b/Content.Server/Chemistry/ReagentEffects/StatusEffects/Jitter.cs @@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.ReagentEffects.StatusEffects /// This doesn't use generic status effects because it needs to /// take in some parameters that JitterSystem needs. /// - public sealed class Jitter : ReagentEffect + public sealed partial class Jitter : ReagentEffect { [DataField("amplitude")] public float Amplitude = 10.0f; diff --git a/Content.Server/Chemistry/ReagentEffects/WashCreamPieReaction.cs b/Content.Server/Chemistry/ReagentEffects/WashCreamPieReaction.cs index 6e2e871d2d..9bf6792eca 100644 --- a/Content.Server/Chemistry/ReagentEffects/WashCreamPieReaction.cs +++ b/Content.Server/Chemistry/ReagentEffects/WashCreamPieReaction.cs @@ -7,7 +7,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chemistry.ReagentEffects { [UsedImplicitly] - public sealed class WashCreamPieReaction : ReagentEffect + public sealed partial class WashCreamPieReaction : ReagentEffect { protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) => Loc.GetString("reagent-effect-guidebook-wash-cream-pie-reaction", ("chance", Probability)); diff --git a/Content.Server/Chemistry/TileReactions/CleanDecalsReaction.cs b/Content.Server/Chemistry/TileReactions/CleanDecalsReaction.cs index b5e10258ca..b5d5862e6c 100644 --- a/Content.Server/Chemistry/TileReactions/CleanDecalsReaction.cs +++ b/Content.Server/Chemistry/TileReactions/CleanDecalsReaction.cs @@ -13,7 +13,7 @@ namespace Content.Server.Chemistry.TileReactions; /// Purges all cleanable decals on a tile. /// [DataDefinition] -public sealed class CleanDecalsReaction : ITileReaction +public sealed partial class CleanDecalsReaction : ITileReaction { /// /// For every cleaned decal we lose this much reagent. diff --git a/Content.Server/Chemistry/TileReactions/CleanTileReaction.cs b/Content.Server/Chemistry/TileReactions/CleanTileReaction.cs index 1ac40375a4..b179adc370 100644 --- a/Content.Server/Chemistry/TileReactions/CleanTileReaction.cs +++ b/Content.Server/Chemistry/TileReactions/CleanTileReaction.cs @@ -14,7 +14,7 @@ namespace Content.Server.Chemistry.TileReactions; /// Turns all of the reagents on a puddle into water. /// [DataDefinition] -public sealed class CleanTileReaction : ITileReaction +public sealed partial class CleanTileReaction : ITileReaction { /// /// How much it costs to clean 1 unit of reagent. diff --git a/Content.Server/Chemistry/TileReactions/CreateEntityTileReaction.cs b/Content.Server/Chemistry/TileReactions/CreateEntityTileReaction.cs index e59d669868..3b1494cc2f 100644 --- a/Content.Server/Chemistry/TileReactions/CreateEntityTileReaction.cs +++ b/Content.Server/Chemistry/TileReactions/CreateEntityTileReaction.cs @@ -12,7 +12,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Chemistry.TileReactions; [DataDefinition] -public sealed class CreateEntityTileReaction : ITileReaction +public sealed partial class CreateEntityTileReaction : ITileReaction { [DataField("entity", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Entity = default!; diff --git a/Content.Server/Chemistry/TileReactions/ExtinguishTileReaction.cs b/Content.Server/Chemistry/TileReactions/ExtinguishTileReaction.cs index 36438d8dee..312b88bd34 100644 --- a/Content.Server/Chemistry/TileReactions/ExtinguishTileReaction.cs +++ b/Content.Server/Chemistry/TileReactions/ExtinguishTileReaction.cs @@ -10,7 +10,7 @@ namespace Content.Server.Chemistry.TileReactions { [UsedImplicitly] [DataDefinition] - public sealed class ExtinguishTileReaction : ITileReaction + public sealed partial class ExtinguishTileReaction : ITileReaction { [DataField("coolingTemperature")] private float _coolingTemperature = 2f; diff --git a/Content.Server/Chemistry/TileReactions/FlammableTileReaction.cs b/Content.Server/Chemistry/TileReactions/FlammableTileReaction.cs index 47f5c91006..a694bf6019 100644 --- a/Content.Server/Chemistry/TileReactions/FlammableTileReaction.cs +++ b/Content.Server/Chemistry/TileReactions/FlammableTileReaction.cs @@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.TileReactions { [UsedImplicitly] [DataDefinition] - public sealed class FlammableTileReaction : ITileReaction + public sealed partial class FlammableTileReaction : ITileReaction { [DataField("temperatureMultiplier")] private float _temperatureMultiplier = 1.15f; diff --git a/Content.Server/Chemistry/TileReactions/PryTileReaction.cs b/Content.Server/Chemistry/TileReactions/PryTileReaction.cs index 5598634e26..39e95df5f7 100644 --- a/Content.Server/Chemistry/TileReactions/PryTileReaction.cs +++ b/Content.Server/Chemistry/TileReactions/PryTileReaction.cs @@ -10,7 +10,7 @@ namespace Content.Server.Chemistry.TileReactions; [UsedImplicitly] [DataDefinition] -public sealed class PryTileReaction : ITileReaction +public sealed partial class PryTileReaction : ITileReaction { public FixedPoint2 TileReact(TileRef tile, ReagentPrototype reagent, FixedPoint2 reactVolume) { diff --git a/Content.Server/Chemistry/TileReactions/SpillIfPuddlePresentTileReaction.cs b/Content.Server/Chemistry/TileReactions/SpillIfPuddlePresentTileReaction.cs index c79d8d41eb..82ede720cd 100644 --- a/Content.Server/Chemistry/TileReactions/SpillIfPuddlePresentTileReaction.cs +++ b/Content.Server/Chemistry/TileReactions/SpillIfPuddlePresentTileReaction.cs @@ -10,7 +10,7 @@ namespace Content.Server.Chemistry.TileReactions { [UsedImplicitly] [DataDefinition] - public sealed class SpillIfPuddlePresentTileReaction : ITileReaction + public sealed partial class SpillIfPuddlePresentTileReaction : ITileReaction { public FixedPoint2 TileReact(TileRef tile, ReagentPrototype reagent, FixedPoint2 reactVolume) { diff --git a/Content.Server/Chemistry/TileReactions/SpillTileReaction.cs b/Content.Server/Chemistry/TileReactions/SpillTileReaction.cs index 1f2a3d8b4f..87246927d7 100644 --- a/Content.Server/Chemistry/TileReactions/SpillTileReaction.cs +++ b/Content.Server/Chemistry/TileReactions/SpillTileReaction.cs @@ -15,7 +15,7 @@ namespace Content.Server.Chemistry.TileReactions { [UsedImplicitly] [DataDefinition] - public sealed class SpillTileReaction : ITileReaction + public sealed partial class SpillTileReaction : ITileReaction { [DataField("launchForwardsMultiplier")] private float _launchForwardsMultiplier = 1; [DataField("requiredSlipSpeed")] private float _requiredSlipSpeed = 6; diff --git a/Content.Server/Climbing/Components/GlassTableComponent.cs b/Content.Server/Climbing/Components/GlassTableComponent.cs index e42b057e4c..009fba91f4 100644 --- a/Content.Server/Climbing/Components/GlassTableComponent.cs +++ b/Content.Server/Climbing/Components/GlassTableComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Climbing.Components; /// not very generalized with regards to naming. /// [RegisterComponent, Access(typeof(ClimbSystem))] -public sealed class GlassTableComponent : Component +public sealed partial class GlassTableComponent : Component { /// /// How much damage should be given to the climber? diff --git a/Content.Server/Cloning/Components/ActiveCloningPodComponent.cs b/Content.Server/Cloning/Components/ActiveCloningPodComponent.cs index 131670d764..11e0e36166 100644 --- a/Content.Server/Cloning/Components/ActiveCloningPodComponent.cs +++ b/Content.Server/Cloning/Components/ActiveCloningPodComponent.cs @@ -4,6 +4,6 @@ namespace Content.Server.Cloning.Components; /// Shrimply a tracking component for pods that are cloning. /// [RegisterComponent] -public sealed class ActiveCloningPodComponent : Component +public sealed partial class ActiveCloningPodComponent : Component { } diff --git a/Content.Server/Cloning/Components/BeingClonedComponent.cs b/Content.Server/Cloning/Components/BeingClonedComponent.cs index d22f541a72..a3e6ce220d 100644 --- a/Content.Server/Cloning/Components/BeingClonedComponent.cs +++ b/Content.Server/Cloning/Components/BeingClonedComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Cloning.Components { [RegisterComponent] - public sealed class BeingClonedComponent : Component + public sealed partial class BeingClonedComponent : Component { [ViewVariables] public Mind.Mind? Mind = default; diff --git a/Content.Server/Cloning/Components/CloningConsoleComponent.cs b/Content.Server/Cloning/Components/CloningConsoleComponent.cs index 5f372023ac..40197517a3 100644 --- a/Content.Server/Cloning/Components/CloningConsoleComponent.cs +++ b/Content.Server/Cloning/Components/CloningConsoleComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Cloning.Components { [RegisterComponent] - public sealed class CloningConsoleComponent : Component + public sealed partial class CloningConsoleComponent : Component { public const string ScannerPort = "MedicalScannerSender"; diff --git a/Content.Server/Cloning/Components/CloningPodComponent.cs b/Content.Server/Cloning/Components/CloningPodComponent.cs index 30674856aa..e2c3f46978 100644 --- a/Content.Server/Cloning/Components/CloningPodComponent.cs +++ b/Content.Server/Cloning/Components/CloningPodComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Cloning.Components { [RegisterComponent] - public sealed class CloningPodComponent : Component + public sealed partial class CloningPodComponent : Component { public const string PodPort = "CloningPodReceiver"; diff --git a/Content.Server/Clothing/Components/GloveHeatResistanceComponent.cs b/Content.Server/Clothing/Components/GloveHeatResistanceComponent.cs index ce3d46e97f..29a3b901a7 100644 --- a/Content.Server/Clothing/Components/GloveHeatResistanceComponent.cs +++ b/Content.Server/Clothing/Components/GloveHeatResistanceComponent.cs @@ -5,7 +5,7 @@ /// Handles 'heat resistance' for gloves touching bulbs and that's it, ick. /// [RegisterComponent] -public sealed class GloveHeatResistanceComponent : Component +public sealed partial class GloveHeatResistanceComponent : Component { [DataField("heatResistance")] public int HeatResistance = 323; diff --git a/Content.Server/Clothing/Components/MaskComponent.cs b/Content.Server/Clothing/Components/MaskComponent.cs index f2ea000d0e..3071c3edf9 100644 --- a/Content.Server/Clothing/Components/MaskComponent.cs +++ b/Content.Server/Clothing/Components/MaskComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Clothing.Components { [Access(typeof(MaskSystem))] [RegisterComponent] - public sealed class MaskComponent : Component + public sealed partial class MaskComponent : Component { /// /// This mask can be toggled (pulled up/down) @@ -16,5 +16,5 @@ namespace Content.Server.Clothing.Components public bool IsToggled = false; } - public sealed class ToggleMaskEvent : InstantActionEvent { } + public sealed partial class ToggleMaskEvent : InstantActionEvent { } } diff --git a/Content.Server/CombatMode/Disarm/DisarmMalusComponent.cs b/Content.Server/CombatMode/Disarm/DisarmMalusComponent.cs index 9e5b454ae7..49f677f286 100644 --- a/Content.Server/CombatMode/Disarm/DisarmMalusComponent.cs +++ b/Content.Server/CombatMode/Disarm/DisarmMalusComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.CombatMode.Disarm /// Applies a malus to disarm attempts against this item. /// [RegisterComponent] - public sealed class DisarmMalusComponent : Component + public sealed partial class DisarmMalusComponent : Component { /// /// So, disarm chances are a % chance represented as a value between 0 and 1. diff --git a/Content.Server/Communications/CommunicationsConsoleComponent.cs b/Content.Server/Communications/CommunicationsConsoleComponent.cs index cae9b2d850..634a87d627 100644 --- a/Content.Server/Communications/CommunicationsConsoleComponent.cs +++ b/Content.Server/Communications/CommunicationsConsoleComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Audio; namespace Content.Server.Communications { [RegisterComponent] - public sealed class CommunicationsConsoleComponent : SharedCommunicationsConsoleComponent + public sealed partial class CommunicationsConsoleComponent : SharedCommunicationsConsoleComponent { public float UIUpdateAccumulator = 0f; diff --git a/Content.Server/Construction/Completions/AddContainer.cs b/Content.Server/Construction/Completions/AddContainer.cs index 882c5c2a52..5885cd8248 100644 --- a/Content.Server/Construction/Completions/AddContainer.cs +++ b/Content.Server/Construction/Completions/AddContainer.cs @@ -5,7 +5,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class AddContainer : IGraphAction + public sealed partial class AddContainer : IGraphAction { [DataField("container")] public string? Container { get; private set; } diff --git a/Content.Server/Construction/Completions/AdminLog.cs b/Content.Server/Construction/Completions/AdminLog.cs index 9cde75ba0c..82758634d9 100644 --- a/Content.Server/Construction/Completions/AdminLog.cs +++ b/Content.Server/Construction/Completions/AdminLog.cs @@ -9,7 +9,7 @@ namespace Content.Server.Construction.Completions; /// Generate an admin log upon reaching this node. Useful for dangerous construction (e.g., modular grenades) /// [UsedImplicitly] -public sealed class AdminLog : IGraphAction +public sealed partial class AdminLog : IGraphAction { [DataField("logType")] public LogType LogType = LogType.Construction; diff --git a/Content.Server/Construction/Completions/AppearanceChange.cs b/Content.Server/Construction/Completions/AppearanceChange.cs index 4b05281165..15b3816722 100644 --- a/Content.Server/Construction/Completions/AppearanceChange.cs +++ b/Content.Server/Construction/Completions/AppearanceChange.cs @@ -7,7 +7,7 @@ namespace Content.Server.Construction.Completions; [UsedImplicitly] [DataDefinition] -public sealed class AppearanceChange : IGraphAction +public sealed partial class AppearanceChange : IGraphAction { /// /// The appearance key to use. diff --git a/Content.Server/Construction/Completions/AttemptElectrocute.cs b/Content.Server/Construction/Completions/AttemptElectrocute.cs index eb6c100764..05f0977b66 100644 --- a/Content.Server/Construction/Completions/AttemptElectrocute.cs +++ b/Content.Server/Construction/Completions/AttemptElectrocute.cs @@ -4,7 +4,7 @@ using Content.Shared.Construction; namespace Content.Server.Construction.Completions; [DataDefinition] -public sealed class AttemptElectrocute : IGraphAction +public sealed partial class AttemptElectrocute : IGraphAction { public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/BuildMech.cs b/Content.Server/Construction/Completions/BuildMech.cs index b801daac26..46c6caf5cf 100644 --- a/Content.Server/Construction/Completions/BuildMech.cs +++ b/Content.Server/Construction/Completions/BuildMech.cs @@ -15,7 +15,7 @@ namespace Content.Server.Construction.Completions; /// for right now, the cell that was used in construction. /// [UsedImplicitly, DataDefinition] -public sealed class BuildMech : IGraphAction +public sealed partial class BuildMech : IGraphAction { [DataField("mechPrototype", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] public string MechPrototype = string.Empty; diff --git a/Content.Server/Construction/Completions/ChangeWiresPanelSecurityLevel.cs b/Content.Server/Construction/Completions/ChangeWiresPanelSecurityLevel.cs index 28d7c833d3..e4848492ae 100644 --- a/Content.Server/Construction/Completions/ChangeWiresPanelSecurityLevel.cs +++ b/Content.Server/Construction/Completions/ChangeWiresPanelSecurityLevel.cs @@ -7,7 +7,7 @@ namespace Content.Server.Construction.Completions; [UsedImplicitly] [DataDefinition] -public sealed class ChangeWiresPanelSecurityLevel : IGraphAction +public sealed partial class ChangeWiresPanelSecurityLevel : IGraphAction { [DataField("level")] [ValidatePrototypeId] diff --git a/Content.Server/Construction/Completions/ConditionalAction.cs b/Content.Server/Construction/Completions/ConditionalAction.cs index d2827c5ecb..905d4aab02 100644 --- a/Content.Server/Construction/Completions/ConditionalAction.cs +++ b/Content.Server/Construction/Completions/ConditionalAction.cs @@ -5,15 +5,15 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class ConditionalAction : IGraphAction + public sealed partial class ConditionalAction : IGraphAction { - [DataField("passUser")] public bool PassUser { get; } + [DataField("passUser")] public bool PassUser { get; private set; } - [DataField("condition", required:true)] public IGraphCondition? Condition { get; } + [DataField("condition", required:true)] public IGraphCondition? Condition { get; private set; } - [DataField("action", required:true)] public IGraphAction? Action { get; } + [DataField("action", required:true)] public IGraphAction? Action { get; private set; } - [DataField("else")] public IGraphAction? Else { get; } + [DataField("else")] public IGraphAction? Else { get; private set; } public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/DeleteEntitiesInContainer.cs b/Content.Server/Construction/Completions/DeleteEntitiesInContainer.cs index 0b030447ac..b18bb733d9 100644 --- a/Content.Server/Construction/Completions/DeleteEntitiesInContainer.cs +++ b/Content.Server/Construction/Completions/DeleteEntitiesInContainer.cs @@ -6,9 +6,9 @@ using Robust.Shared.Containers; namespace Content.Server.Construction.Completions { [DataDefinition] - public sealed class DeleteEntitiesInContainer : IGraphAction + public sealed partial class DeleteEntitiesInContainer : IGraphAction { - [DataField("container")] public string Container { get; } = string.Empty; + [DataField("container")] public string Container { get; private set; } = string.Empty; public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/DeleteEntity.cs b/Content.Server/Construction/Completions/DeleteEntity.cs index 8aa1f98893..97bb605105 100644 --- a/Content.Server/Construction/Completions/DeleteEntity.cs +++ b/Content.Server/Construction/Completions/DeleteEntity.cs @@ -15,7 +15,7 @@ namespace Content.Server.Construction.Completions [UsedImplicitly] [DataDefinition] - public sealed class DeleteEntity : IGraphAction + public sealed partial class DeleteEntity : IGraphAction { public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/DestroyEntity.cs b/Content.Server/Construction/Completions/DestroyEntity.cs index 6220c325df..d7600ca28a 100644 --- a/Content.Server/Construction/Completions/DestroyEntity.cs +++ b/Content.Server/Construction/Completions/DestroyEntity.cs @@ -6,7 +6,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class DestroyEntity : IGraphAction + public sealed partial class DestroyEntity : IGraphAction { public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/EmptyAllContainers.cs b/Content.Server/Construction/Completions/EmptyAllContainers.cs index ab71c8bedd..5b086efb4a 100644 --- a/Content.Server/Construction/Completions/EmptyAllContainers.cs +++ b/Content.Server/Construction/Completions/EmptyAllContainers.cs @@ -9,7 +9,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class EmptyAllContainers : IGraphAction + public sealed partial class EmptyAllContainers : IGraphAction { /// /// Whether or not the user should attempt to pick up the removed entities. diff --git a/Content.Server/Construction/Completions/EmptyContainer.cs b/Content.Server/Construction/Completions/EmptyContainer.cs index 063ed883c8..21e36e7e14 100644 --- a/Content.Server/Construction/Completions/EmptyContainer.cs +++ b/Content.Server/Construction/Completions/EmptyContainer.cs @@ -9,7 +9,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class EmptyContainer : IGraphAction + public sealed partial class EmptyContainer : IGraphAction { [DataField("container")] public string Container { get; private set; } = string.Empty; diff --git a/Content.Server/Construction/Completions/GivePrototype.cs b/Content.Server/Construction/Completions/GivePrototype.cs index 9d49c16cd8..f45bd5ba10 100644 --- a/Content.Server/Construction/Completions/GivePrototype.cs +++ b/Content.Server/Construction/Completions/GivePrototype.cs @@ -11,7 +11,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class GivePrototype : IGraphAction + public sealed partial class GivePrototype : IGraphAction { [DataField("prototype", customTypeSerializer:typeof(PrototypeIdSerializer))] public string Prototype { get; private set; } = string.Empty; diff --git a/Content.Server/Construction/Completions/MachineFrameRegenerateProgress.cs b/Content.Server/Construction/Completions/MachineFrameRegenerateProgress.cs index 425c95bc0d..a47dec6742 100644 --- a/Content.Server/Construction/Completions/MachineFrameRegenerateProgress.cs +++ b/Content.Server/Construction/Completions/MachineFrameRegenerateProgress.cs @@ -6,7 +6,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class MachineFrameRegenerateProgress : IGraphAction + public sealed partial class MachineFrameRegenerateProgress : IGraphAction { public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/MoveContainer.cs b/Content.Server/Construction/Completions/MoveContainer.cs index 77d11c7e85..cba1819ae9 100644 --- a/Content.Server/Construction/Completions/MoveContainer.cs +++ b/Content.Server/Construction/Completions/MoveContainer.cs @@ -8,10 +8,10 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class MoveContainer : IGraphAction + public sealed partial class MoveContainer : IGraphAction { - [DataField("from")] public string? FromContainer { get; } - [DataField("to")] public string? ToContainer { get; } + [DataField("from")] public string? FromContainer { get; private set; } + [DataField("to")] public string? ToContainer { get; private set; } public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/PlaySound.cs b/Content.Server/Construction/Completions/PlaySound.cs index 28ebc2e19a..9fa3c43ae4 100644 --- a/Content.Server/Construction/Completions/PlaySound.cs +++ b/Content.Server/Construction/Completions/PlaySound.cs @@ -7,7 +7,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class PlaySound : IGraphAction + public sealed partial class PlaySound : IGraphAction { [DataField("sound", required: true)] public SoundSpecifier Sound { get; private set; } = default!; diff --git a/Content.Server/Construction/Completions/PopupEveryone.cs b/Content.Server/Construction/Completions/PopupEveryone.cs index 08424c1c0d..6ceeea7cb0 100644 --- a/Content.Server/Construction/Completions/PopupEveryone.cs +++ b/Content.Server/Construction/Completions/PopupEveryone.cs @@ -5,9 +5,9 @@ using Robust.Shared.Player; namespace Content.Server.Construction.Completions { [DataDefinition] - public sealed class PopupEveryone : IGraphAction + public sealed partial class PopupEveryone : IGraphAction { - [DataField("text")] public string Text { get; } = string.Empty; + [DataField("text")] public string Text { get; private set; } = string.Empty; public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/PopupUser.cs b/Content.Server/Construction/Completions/PopupUser.cs index 0f598d263f..b0d063acc9 100644 --- a/Content.Server/Construction/Completions/PopupUser.cs +++ b/Content.Server/Construction/Completions/PopupUser.cs @@ -7,10 +7,10 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class PopupUser : IGraphAction + public sealed partial class PopupUser : IGraphAction { - [DataField("cursor")] public bool Cursor { get; } - [DataField("text")] public string Text { get; } = string.Empty; + [DataField("cursor")] public bool Cursor { get; private set; } + [DataField("text")] public string Text { get; private set; } = string.Empty; public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/RaiseEvent.cs b/Content.Server/Construction/Completions/RaiseEvent.cs index 2d28ae5c52..4f510bd7e9 100644 --- a/Content.Server/Construction/Completions/RaiseEvent.cs +++ b/Content.Server/Construction/Completions/RaiseEvent.cs @@ -4,16 +4,16 @@ using JetBrains.Annotations; namespace Content.Server.Construction.Completions { [UsedImplicitly] - public sealed class RaiseEvent : IGraphAction + public sealed partial class RaiseEvent : IGraphAction { [DataField("event", required:true)] - public EntityEventArgs? Event { get; } + public EntityEventArgs? Event { get; private set; } [DataField("directed")] - public bool Directed { get; } = true; + public bool Directed { get; private set; } = true; [DataField("broadcast")] - public bool Broadcast { get; } = true; + public bool Broadcast { get; private set; } = true; public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/SetAnchor.cs b/Content.Server/Construction/Completions/SetAnchor.cs index d507968b66..989ecc99bd 100644 --- a/Content.Server/Construction/Completions/SetAnchor.cs +++ b/Content.Server/Construction/Completions/SetAnchor.cs @@ -5,7 +5,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class SetAnchor : IGraphAction + public sealed partial class SetAnchor : IGraphAction { [DataField("value")] public bool Value { get; private set; } = true; diff --git a/Content.Server/Construction/Completions/SetStackCount.cs b/Content.Server/Construction/Completions/SetStackCount.cs index 48f255102b..f1e3f9fb9e 100644 --- a/Content.Server/Construction/Completions/SetStackCount.cs +++ b/Content.Server/Construction/Completions/SetStackCount.cs @@ -6,9 +6,9 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class SetStackCount : IGraphAction + public sealed partial class SetStackCount : IGraphAction { - [DataField("amount")] public int Amount { get; } = 1; + [DataField("amount")] public int Amount { get; private set; } = 1; public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/SnapToGrid.cs b/Content.Server/Construction/Completions/SnapToGrid.cs index 4793a73a42..47941108f5 100644 --- a/Content.Server/Construction/Completions/SnapToGrid.cs +++ b/Content.Server/Construction/Completions/SnapToGrid.cs @@ -6,7 +6,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class SnapToGrid : IGraphAction + public sealed partial class SnapToGrid : IGraphAction { [DataField("southRotation")] public bool SouthRotation { get; private set; } diff --git a/Content.Server/Construction/Completions/SpawnPrototype.cs b/Content.Server/Construction/Completions/SpawnPrototype.cs index cb8f124a41..c42ecb611f 100644 --- a/Content.Server/Construction/Completions/SpawnPrototype.cs +++ b/Content.Server/Construction/Completions/SpawnPrototype.cs @@ -10,7 +10,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class SpawnPrototype : IGraphAction + public sealed partial class SpawnPrototype : IGraphAction { [DataField("prototype", customTypeSerializer:typeof(PrototypeIdSerializer))] public string Prototype { get; private set; } = string.Empty; diff --git a/Content.Server/Construction/Completions/SpawnPrototypeAtContainer.cs b/Content.Server/Construction/Completions/SpawnPrototypeAtContainer.cs index 89812cfeb7..fc4563c93a 100644 --- a/Content.Server/Construction/Completions/SpawnPrototypeAtContainer.cs +++ b/Content.Server/Construction/Completions/SpawnPrototypeAtContainer.cs @@ -7,11 +7,11 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class SpawnPrototypeAtContainer : IGraphAction + public sealed partial class SpawnPrototypeAtContainer : IGraphAction { - [DataField("prototype")] public string Prototype { get; } = string.Empty; - [DataField("container")] public string Container { get; } = string.Empty; - [DataField("amount")] public int Amount { get; } = 1; + [DataField("prototype")] public string Prototype { get; private set; } = string.Empty; + [DataField("container")] public string Container { get; private set; } = string.Empty; + [DataField("amount")] public int Amount { get; private set; } = 1; public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/VisualizerDataInt.cs b/Content.Server/Construction/Completions/VisualizerDataInt.cs index 065e35b6aa..cd25f82adb 100644 --- a/Content.Server/Construction/Completions/VisualizerDataInt.cs +++ b/Content.Server/Construction/Completions/VisualizerDataInt.cs @@ -8,7 +8,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public sealed class VisualizerDataInt : IGraphAction + public sealed partial class VisualizerDataInt : IGraphAction { [DataField("key")] public string Key { get; private set; } = string.Empty; [DataField("data")] public int Data { get; private set; } = 0; diff --git a/Content.Server/Construction/Components/ComputerBoardComponent.cs b/Content.Server/Construction/Components/ComputerBoardComponent.cs index a75ab34b80..f3e897c3e4 100644 --- a/Content.Server/Construction/Components/ComputerBoardComponent.cs +++ b/Content.Server/Construction/Components/ComputerBoardComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Construction.Components /// Used for construction graphs in building computers. /// [RegisterComponent] - public sealed class ComputerBoardComponent : Component + public sealed partial class ComputerBoardComponent : Component { [DataField("prototype", customTypeSerializer:typeof(PrototypeIdSerializer))] public string? Prototype { get; private set; } diff --git a/Content.Server/Construction/Components/ComputerComponent.cs b/Content.Server/Construction/Components/ComputerComponent.cs index b0e8d03b20..10d91df2da 100644 --- a/Content.Server/Construction/Components/ComputerComponent.cs +++ b/Content.Server/Construction/Components/ComputerComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Construction.Components { [RegisterComponent, ComponentProtoName("Computer")] - public sealed class ComputerComponent : Component + public sealed partial class ComputerComponent : Component { [DataField("board", customTypeSerializer:typeof(PrototypeIdSerializer))] public string? BoardPrototype; diff --git a/Content.Server/Construction/Components/ConstructionComponent.cs b/Content.Server/Construction/Components/ConstructionComponent.cs index 193c644da8..4164763f03 100644 --- a/Content.Server/Construction/Components/ConstructionComponent.cs +++ b/Content.Server/Construction/Components/ConstructionComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Construction.Components { [RegisterComponent, Access(typeof(ConstructionSystem))] - public sealed class ConstructionComponent : Component + public sealed partial class ConstructionComponent : Component { [DataField("graph", required:true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Graph { get; set; } = string.Empty; diff --git a/Content.Server/Construction/Components/MachineComponent.cs b/Content.Server/Construction/Components/MachineComponent.cs index 59a251c568..42c85e6d0b 100644 --- a/Content.Server/Construction/Components/MachineComponent.cs +++ b/Content.Server/Construction/Components/MachineComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Construction.Components { [RegisterComponent, ComponentProtoName("Machine")] - public sealed class MachineComponent : Component + public sealed partial class MachineComponent : Component { [DataField("board", customTypeSerializer: typeof(PrototypeIdSerializer))] public string? BoardPrototype { get; private set; } diff --git a/Content.Server/Construction/Components/MachineFrameComponent.cs b/Content.Server/Construction/Components/MachineFrameComponent.cs index 3da4ba6961..16aba3bd17 100644 --- a/Content.Server/Construction/Components/MachineFrameComponent.cs +++ b/Content.Server/Construction/Components/MachineFrameComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Construction.Components { [RegisterComponent] - public sealed class MachineFrameComponent : Component + public sealed partial class MachineFrameComponent : Component { public const string PartContainerName = "machine_parts"; public const string BoardContainerName = "machine_board"; @@ -15,7 +15,7 @@ namespace Content.Server.Construction.Components public bool HasBoard => BoardContainer?.ContainedEntities.Count != 0; [DataField("progress", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] - public readonly Dictionary Progress = new(); + public Dictionary Progress = new(); [ViewVariables] public readonly Dictionary MaterialProgress = new(); @@ -46,7 +46,7 @@ namespace Content.Server.Construction.Components } [DataDefinition] - public sealed class MachineDeconstructedEvent : EntityEventArgs + public sealed partial class MachineDeconstructedEvent : EntityEventArgs { } } diff --git a/Content.Server/Construction/Components/PartExchangerComponent.cs b/Content.Server/Construction/Components/PartExchangerComponent.cs index 1e9a15e243..6cf32a5e46 100644 --- a/Content.Server/Construction/Components/PartExchangerComponent.cs +++ b/Content.Server/Construction/Components/PartExchangerComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Audio; namespace Content.Server.Construction.Components; [RegisterComponent] -public sealed class PartExchangerComponent : Component +public sealed partial class PartExchangerComponent : Component { /// /// How long it takes to exchange the parts diff --git a/Content.Server/Construction/Components/WelderRefinableComponent.cs b/Content.Server/Construction/Components/WelderRefinableComponent.cs index ec2753374a..9d8958f761 100644 --- a/Content.Server/Construction/Components/WelderRefinableComponent.cs +++ b/Content.Server/Construction/Components/WelderRefinableComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Construction.Components /// For example, glass shard can be refined to glass sheet. /// [RegisterComponent] - public sealed class WelderRefinableComponent : Component + public sealed partial class WelderRefinableComponent : Component { [DataField("refineResult")] public HashSet? RefineResult = new(); diff --git a/Content.Server/Construction/Conditions/AirlockBolted.cs b/Content.Server/Construction/Conditions/AirlockBolted.cs index 6f1b98ae0b..7048735f88 100644 --- a/Content.Server/Construction/Conditions/AirlockBolted.cs +++ b/Content.Server/Construction/Conditions/AirlockBolted.cs @@ -7,7 +7,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class DoorBolted : IGraphCondition + public sealed partial class DoorBolted : IGraphCondition { [DataField("value")] public bool Value { get; private set; } = true; diff --git a/Content.Server/Construction/Conditions/AllConditions.cs b/Content.Server/Construction/Conditions/AllConditions.cs index b9815bfe92..626b607521 100644 --- a/Content.Server/Construction/Conditions/AllConditions.cs +++ b/Content.Server/Construction/Conditions/AllConditions.cs @@ -6,10 +6,10 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class AllConditions : IGraphCondition + public sealed partial class AllConditions : IGraphCondition { [DataField("conditions")] - public IGraphCondition[] Conditions { get; } = Array.Empty(); + public IGraphCondition[] Conditions { get; private set; } = Array.Empty(); public bool Condition(EntityUid uid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Conditions/AllWiresCut.cs b/Content.Server/Construction/Conditions/AllWiresCut.cs index 065edd8c85..10cb2e5cf0 100644 --- a/Content.Server/Construction/Conditions/AllWiresCut.cs +++ b/Content.Server/Construction/Conditions/AllWiresCut.cs @@ -11,7 +11,7 @@ namespace Content.Server.Construction.Conditions /// [UsedImplicitly] [DataDefinition] - public sealed class AllWiresCut : IGraphCondition + public sealed partial class AllWiresCut : IGraphCondition { [DataField("value")] public bool Value { get; private set; } = true; diff --git a/Content.Server/Construction/Conditions/AnyConditions.cs b/Content.Server/Construction/Conditions/AnyConditions.cs index 485fbc560b..499bdf54af 100644 --- a/Content.Server/Construction/Conditions/AnyConditions.cs +++ b/Content.Server/Construction/Conditions/AnyConditions.cs @@ -6,10 +6,10 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class AnyConditions : IGraphCondition + public sealed partial class AnyConditions : IGraphCondition { [DataField("conditions")] - public IGraphCondition[] Conditions { get; } = Array.Empty(); + public IGraphCondition[] Conditions { get; private set; } = Array.Empty(); public bool Condition(EntityUid uid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Conditions/ComponentInTile.cs b/Content.Server/Construction/Conditions/ComponentInTile.cs index 1ceb70c822..8ab4046a72 100644 --- a/Content.Server/Construction/Conditions/ComponentInTile.cs +++ b/Content.Server/Construction/Conditions/ComponentInTile.cs @@ -12,7 +12,7 @@ namespace Content.Server.Construction.Conditions /// [UsedImplicitly] [DataDefinition] - public sealed class ComponentInTile : IGraphCondition + public sealed partial class ComponentInTile : IGraphCondition { /// /// If true, any entity on the tile must have the component. @@ -22,13 +22,13 @@ namespace Content.Server.Construction.Conditions public bool HasEntity { get; private set; } [DataField("examineText")] - public string? ExamineText { get; } + public string? ExamineText { get; private set; } [DataField("guideText")] - public string? GuideText { get; } + public string? GuideText { get; private set; } [DataField("guideIcon")] - public SpriteSpecifier? GuideIcon { get; } + public SpriteSpecifier? GuideIcon { get; private set; } /// /// The component name in question. diff --git a/Content.Server/Construction/Conditions/ContainerEmpty.cs b/Content.Server/Construction/Conditions/ContainerEmpty.cs index e37d120137..cc2b25d1ad 100644 --- a/Content.Server/Construction/Conditions/ContainerEmpty.cs +++ b/Content.Server/Construction/Conditions/ContainerEmpty.cs @@ -9,19 +9,19 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class ContainerEmpty : IGraphCondition + public sealed partial class ContainerEmpty : IGraphCondition { [DataField("container")] - public string Container { get; } = string.Empty; + public string Container { get; private set; } = string.Empty; [DataField("examineText")] - public string? ExamineText { get; } + public string? ExamineText { get; private set; } [DataField("guideStep")] - public string? GuideText { get; } + public string? GuideText { get; private set; } [DataField("guideIcon")] - public SpriteSpecifier? GuideIcon { get; } + public SpriteSpecifier? GuideIcon { get; private set; } public bool Condition(EntityUid uid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Conditions/ContainerNotEmpty.cs b/Content.Server/Construction/Conditions/ContainerNotEmpty.cs index 25db10c188..c6e79434f4 100644 --- a/Content.Server/Construction/Conditions/ContainerNotEmpty.cs +++ b/Content.Server/Construction/Conditions/ContainerNotEmpty.cs @@ -9,12 +9,12 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class ContainerNotEmpty : IGraphCondition + public sealed partial class ContainerNotEmpty : IGraphCondition { [DataField("container")] public string Container { get; private set; } = string.Empty; - [DataField("examineText")] public string? ExamineText { get; } - [DataField("guideText")] public string? GuideText { get; } - [DataField("guideIcon")] public SpriteSpecifier? GuideIcon { get; } + [DataField("examineText")] public string? ExamineText { get; private set; } + [DataField("guideText")] public string? GuideText { get; private set; } + [DataField("guideIcon")] public SpriteSpecifier? GuideIcon { get; private set; } public bool Condition(EntityUid uid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Conditions/DoorWelded.cs b/Content.Server/Construction/Conditions/DoorWelded.cs index 3e3042e497..4ae0cc7d90 100644 --- a/Content.Server/Construction/Conditions/DoorWelded.cs +++ b/Content.Server/Construction/Conditions/DoorWelded.cs @@ -7,7 +7,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class DoorWelded : IGraphCondition + public sealed partial class DoorWelded : IGraphCondition { [DataField("welded")] public bool Welded { get; private set; } = true; diff --git a/Content.Server/Construction/Conditions/EntityAnchored.cs b/Content.Server/Construction/Conditions/EntityAnchored.cs index 78b7e33ee9..6bcfe0b772 100644 --- a/Content.Server/Construction/Conditions/EntityAnchored.cs +++ b/Content.Server/Construction/Conditions/EntityAnchored.cs @@ -7,7 +7,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class EntityAnchored : IGraphCondition + public sealed partial class EntityAnchored : IGraphCondition { [DataField("anchored")] public bool Anchored { get; private set; } = true; diff --git a/Content.Server/Construction/Conditions/Locked.cs b/Content.Server/Construction/Conditions/Locked.cs index 2b8abd335c..fde704b161 100644 --- a/Content.Server/Construction/Conditions/Locked.cs +++ b/Content.Server/Construction/Conditions/Locked.cs @@ -7,7 +7,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class Locked : IGraphCondition + public sealed partial class Locked : IGraphCondition { [DataField("locked")] public bool IsLocked { get; private set; } = true; diff --git a/Content.Server/Construction/Conditions/MachineFrameComplete.cs b/Content.Server/Construction/Conditions/MachineFrameComplete.cs index 449418d5e5..bb87676021 100644 --- a/Content.Server/Construction/Conditions/MachineFrameComplete.cs +++ b/Content.Server/Construction/Conditions/MachineFrameComplete.cs @@ -11,13 +11,13 @@ namespace Content.Server.Construction.Conditions /// [UsedImplicitly] [DataDefinition] - public sealed class MachineFrameComplete : IGraphCondition + public sealed partial class MachineFrameComplete : IGraphCondition { [DataField("guideIconBoard")] - public SpriteSpecifier? GuideIconBoard { get; } + public SpriteSpecifier? GuideIconBoard { get; private set; } [DataField("guideIconParts")] - public SpriteSpecifier? GuideIconPart { get; } + public SpriteSpecifier? GuideIconPart { get; private set; } public bool Condition(EntityUid uid, IEntityManager entityManager) diff --git a/Content.Server/Construction/Conditions/StorageWelded.cs b/Content.Server/Construction/Conditions/StorageWelded.cs index 8bc54de1d2..576bb53946 100644 --- a/Content.Server/Construction/Conditions/StorageWelded.cs +++ b/Content.Server/Construction/Conditions/StorageWelded.cs @@ -7,7 +7,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class StorageWelded : IGraphCondition + public sealed partial class StorageWelded : IGraphCondition { [DataField("welded")] public bool Welded { get; private set; } = true; diff --git a/Content.Server/Construction/Conditions/ToiletLidClosed.cs b/Content.Server/Construction/Conditions/ToiletLidClosed.cs index 93e7ee2f74..40a3be006b 100644 --- a/Content.Server/Construction/Conditions/ToiletLidClosed.cs +++ b/Content.Server/Construction/Conditions/ToiletLidClosed.cs @@ -7,7 +7,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class ToiletLidClosed : IGraphCondition + public sealed partial class ToiletLidClosed : IGraphCondition { public bool Condition(EntityUid uid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Conditions/WirePanel.cs b/Content.Server/Construction/Conditions/WirePanel.cs index a4c478026e..9e53b97b09 100644 --- a/Content.Server/Construction/Conditions/WirePanel.cs +++ b/Content.Server/Construction/Conditions/WirePanel.cs @@ -7,7 +7,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class WirePanel : IGraphCondition + public sealed partial class WirePanel : IGraphCondition { [DataField("open")] public bool Open { get; private set; } = true; diff --git a/Content.Server/Construction/NodeEntities/BoardNodeEntity.cs b/Content.Server/Construction/NodeEntities/BoardNodeEntity.cs index 237d13be96..4f95945262 100644 --- a/Content.Server/Construction/NodeEntities/BoardNodeEntity.cs +++ b/Content.Server/Construction/NodeEntities/BoardNodeEntity.cs @@ -12,7 +12,7 @@ namespace Content.Server.Construction.NodeEntities; /// [UsedImplicitly] [DataDefinition] -public sealed class BoardNodeEntity : IGraphNodeEntity +public sealed partial class BoardNodeEntity : IGraphNodeEntity { [DataField("container")] public string Container { get; private set; } = string.Empty; diff --git a/Content.Server/Containers/EmptyOnMachineDeconstructComponent.cs b/Content.Server/Containers/EmptyOnMachineDeconstructComponent.cs index c2cc43d15d..376528b7c4 100644 --- a/Content.Server/Containers/EmptyOnMachineDeconstructComponent.cs +++ b/Content.Server/Containers/EmptyOnMachineDeconstructComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Containers /// Empties a list of containers when the machine is deconstructed via MachineDeconstructedEvent. /// [RegisterComponent] - public sealed class EmptyOnMachineDeconstructComponent : Component + public sealed partial class EmptyOnMachineDeconstructComponent : Component { [DataField("containers")] public HashSet Containers { get; set; } = new(); diff --git a/Content.Server/Coordinates/SpawnRandomOffsetComponent.cs b/Content.Server/Coordinates/SpawnRandomOffsetComponent.cs index 6ae9b927ab..6a844cda39 100644 --- a/Content.Server/Coordinates/SpawnRandomOffsetComponent.cs +++ b/Content.Server/Coordinates/SpawnRandomOffsetComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Coordinates; [RegisterComponent] -public sealed class SpawnRandomOffsetComponent : Component +public sealed partial class SpawnRandomOffsetComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("offset")] public float Offset = 0.5f; diff --git a/Content.Server/Crayon/CrayonComponent.cs b/Content.Server/Crayon/CrayonComponent.cs index df2a2e406e..c1747fc8f1 100644 --- a/Content.Server/Crayon/CrayonComponent.cs +++ b/Content.Server/Crayon/CrayonComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Audio; namespace Content.Server.Crayon { [RegisterComponent] - public sealed class CrayonComponent : SharedCrayonComponent + public sealed partial class CrayonComponent : SharedCrayonComponent { [DataField("useSound")] public SoundSpecifier? UseSound; diff --git a/Content.Server/CrewManifest/CrewManifestViewerComponent.cs b/Content.Server/CrewManifest/CrewManifestViewerComponent.cs index 5c0dc223cb..f66bc4c1af 100644 --- a/Content.Server/CrewManifest/CrewManifestViewerComponent.cs +++ b/Content.Server/CrewManifest/CrewManifestViewerComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.CrewManifest; [RegisterComponent] -public sealed class CrewManifestViewerComponent : Component +public sealed partial class CrewManifestViewerComponent : Component { /// /// If this manifest viewer is unsecure or not. If it is, diff --git a/Content.Server/Damage/Components/DamageOnHighSpeedImpactComponent.cs b/Content.Server/Damage/Components/DamageOnHighSpeedImpactComponent.cs index b1824396f0..243cc70c1a 100644 --- a/Content.Server/Damage/Components/DamageOnHighSpeedImpactComponent.cs +++ b/Content.Server/Damage/Components/DamageOnHighSpeedImpactComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Damage.Components; /// Should the entity take damage / be stunned if colliding at a speed above MinimumSpeed? /// [RegisterComponent, Access(typeof(DamageOnHighSpeedImpactSystem))] -public sealed class DamageOnHighSpeedImpactComponent : Component +public sealed partial class DamageOnHighSpeedImpactComponent : Component { [DataField("minimumSpeed"), ViewVariables(VVAccess.ReadWrite)] public float MinimumSpeed = 20f; diff --git a/Content.Server/Damage/Components/DamageOnHitComponent.cs b/Content.Server/Damage/Components/DamageOnHitComponent.cs index c625168073..3580e9a8d5 100644 --- a/Content.Server/Damage/Components/DamageOnHitComponent.cs +++ b/Content.Server/Damage/Components/DamageOnHitComponent.cs @@ -5,7 +5,7 @@ using Content.Shared.Damage; namespace Content.Server.Damage.Components; [RegisterComponent] -public sealed class DamageOnHitComponent : Component +public sealed partial class DamageOnHitComponent : Component { [DataField("ignoreResistances")] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Damage/Components/DamageOnLandComponent.cs b/Content.Server/Damage/Components/DamageOnLandComponent.cs index 0867bae5c9..b7c5644f82 100644 --- a/Content.Server/Damage/Components/DamageOnLandComponent.cs +++ b/Content.Server/Damage/Components/DamageOnLandComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Damage; namespace Content.Server.Damage.Components { [RegisterComponent] - public sealed class DamageOnLandComponent : Component + public sealed partial class DamageOnLandComponent : Component { [DataField("ignoreResistances")] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Damage/Components/DamageOnToolInteractComponent.cs b/Content.Server/Damage/Components/DamageOnToolInteractComponent.cs index c8e9139a2c..e54090cdbb 100644 --- a/Content.Server/Damage/Components/DamageOnToolInteractComponent.cs +++ b/Content.Server/Damage/Components/DamageOnToolInteractComponent.cs @@ -5,18 +5,18 @@ using Robust.Shared.Utility; namespace Content.Server.Damage.Components { [RegisterComponent] - public sealed class DamageOnToolInteractComponent : Component + public sealed partial class DamageOnToolInteractComponent : Component { [DataField("tools")] - public PrototypeFlags Tools { get; } = new (); + public PrototypeFlags Tools { get; private set; } = new (); // TODO: Remove this snowflake stuff, make damage per-tool quality perhaps? [DataField("weldingDamage")] [ViewVariables(VVAccess.ReadWrite)] - public DamageSpecifier? WeldingDamage { get; } + public DamageSpecifier? WeldingDamage { get; private set; } [DataField("defaultDamage")] [ViewVariables(VVAccess.ReadWrite)] - public DamageSpecifier? DefaultDamage { get; } + public DamageSpecifier? DefaultDamage { get; private set; } } } diff --git a/Content.Server/Damage/Components/DamageOtherOnHitComponent.cs b/Content.Server/Damage/Components/DamageOtherOnHitComponent.cs index 55b4b5f2b1..3123e251af 100644 --- a/Content.Server/Damage/Components/DamageOtherOnHitComponent.cs +++ b/Content.Server/Damage/Components/DamageOtherOnHitComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Damage.Components { [Access(typeof(DamageOtherOnHitSystem))] [RegisterComponent] - public sealed class DamageOtherOnHitComponent : Component + public sealed partial class DamageOtherOnHitComponent : Component { [DataField("ignoreResistances")] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Damage/Components/DamagePopupComponent.cs b/Content.Server/Damage/Components/DamagePopupComponent.cs index bbb9efd77c..b1216069f5 100644 --- a/Content.Server/Damage/Components/DamagePopupComponent.cs +++ b/Content.Server/Damage/Components/DamagePopupComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.Damage.Components; [RegisterComponent, Access(typeof(DamagePopupSystem))] -public sealed class DamagePopupComponent : Component +public sealed partial class DamagePopupComponent : Component { /// /// Enum that will be used to determine the type of damage popup displayed. diff --git a/Content.Server/Damage/Components/DamageUserOnTriggerComponent.cs b/Content.Server/Damage/Components/DamageUserOnTriggerComponent.cs index 4d313e8d6d..2a30374709 100644 --- a/Content.Server/Damage/Components/DamageUserOnTriggerComponent.cs +++ b/Content.Server/Damage/Components/DamageUserOnTriggerComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Damage; namespace Content.Server.Damage.Components; [RegisterComponent] -public sealed class DamageUserOnTriggerComponent : Component +public sealed partial class DamageUserOnTriggerComponent : Component { [DataField("ignoreResistances")] public bool IgnoreResistances; diff --git a/Content.Server/Damage/Components/ExaminableDamageComponent.cs b/Content.Server/Damage/Components/ExaminableDamageComponent.cs index 022b14d19b..46a86012ad 100644 --- a/Content.Server/Damage/Components/ExaminableDamageComponent.cs +++ b/Content.Server/Damage/Components/ExaminableDamageComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Damage.Components; /// This component shows entity damage severity when it is examined by player. /// [RegisterComponent] -public sealed class ExaminableDamageComponent : Component +public sealed partial class ExaminableDamageComponent : Component { [DataField("messages", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string? MessagesProtoId; diff --git a/Content.Server/Destructible/DestructibleComponent.cs b/Content.Server/Destructible/DestructibleComponent.cs index 041809fe33..5c593fb083 100644 --- a/Content.Server/Destructible/DestructibleComponent.cs +++ b/Content.Server/Destructible/DestructibleComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Destructible /// and triggers thresholds when reached. /// [RegisterComponent] - public sealed class DestructibleComponent : Component + public sealed partial class DestructibleComponent : Component { [DataField("thresholds")] public List Thresholds = new(); diff --git a/Content.Server/Destructible/Thresholds/Behaviors/ChangeConstructionNodeBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/ChangeConstructionNodeBehavior.cs index c971ceebe9..add8ce335f 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/ChangeConstructionNodeBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/ChangeConstructionNodeBehavior.cs @@ -4,7 +4,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors { [Serializable] [DataDefinition] - public sealed class ChangeConstructionNodeBehavior : IThresholdBehavior + public sealed partial class ChangeConstructionNodeBehavior : IThresholdBehavior { [DataField("node")] public string Node { get; private set; } = string.Empty; diff --git a/Content.Server/Destructible/Thresholds/Behaviors/DoActsBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/DoActsBehavior.cs index 064afbe26b..bfebae8f92 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/DoActsBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/DoActsBehavior.cs @@ -2,7 +2,7 @@ { [Serializable] [DataDefinition] - public sealed class DoActsBehavior : IThresholdBehavior + public sealed partial class DoActsBehavior : IThresholdBehavior { /// /// What acts should be triggered upon activation. diff --git a/Content.Server/Destructible/Thresholds/Behaviors/DumpCanisterBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/DumpCanisterBehavior.cs index 342edef271..961ccfcb4e 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/DumpCanisterBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/DumpCanisterBehavior.cs @@ -4,7 +4,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors { [Serializable] [DataDefinition] - public sealed class DumpCanisterBehavior : IThresholdBehavior + public sealed partial class DumpCanisterBehavior : IThresholdBehavior { public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null) { diff --git a/Content.Server/Destructible/Thresholds/Behaviors/DumpRestockInventory.cs b/Content.Server/Destructible/Thresholds/Behaviors/DumpRestockInventory.cs index 56c4200fcb..e13fd5e05b 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/DumpRestockInventory.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/DumpRestockInventory.cs @@ -11,7 +11,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors /// [Serializable] [DataDefinition] - public sealed class DumpRestockInventory: IThresholdBehavior + public sealed partial class DumpRestockInventory: IThresholdBehavior { /// /// The percent of each inventory entry that will be salvaged diff --git a/Content.Server/Destructible/Thresholds/Behaviors/EjectVendorItems.cs b/Content.Server/Destructible/Thresholds/Behaviors/EjectVendorItems.cs index 5cd377f0b5..2ffd9a8f9f 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/EjectVendorItems.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/EjectVendorItems.cs @@ -8,7 +8,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors /// [Serializable] [DataDefinition] - public sealed class EjectVendorItems : IThresholdBehavior + public sealed partial class EjectVendorItems : IThresholdBehavior { /// /// The percent amount of the total inventory that will be ejected. diff --git a/Content.Server/Destructible/Thresholds/Behaviors/EmptyAllContainersBehaviour.cs b/Content.Server/Destructible/Thresholds/Behaviors/EmptyAllContainersBehaviour.cs index 1082acb25d..406e7bf7e2 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/EmptyAllContainersBehaviour.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/EmptyAllContainersBehaviour.cs @@ -6,7 +6,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors /// Drop all items from all containers /// [DataDefinition] - public sealed class EmptyAllContainersBehaviour : IThresholdBehavior + public sealed partial class EmptyAllContainersBehaviour : IThresholdBehavior { public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null) { diff --git a/Content.Server/Destructible/Thresholds/Behaviors/EmptyContainersBehaviour.cs b/Content.Server/Destructible/Thresholds/Behaviors/EmptyContainersBehaviour.cs index 253fd19a7f..77f81c062d 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/EmptyContainersBehaviour.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/EmptyContainersBehaviour.cs @@ -7,7 +7,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors /// Drop all items from specified containers /// [DataDefinition] - public sealed class EmptyContainersBehaviour : IThresholdBehavior + public sealed partial class EmptyContainersBehaviour : IThresholdBehavior { [DataField("containers")] public List Containers = new(); diff --git a/Content.Server/Destructible/Thresholds/Behaviors/ExplodeBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/ExplodeBehavior.cs index 261501f817..e3a990c76b 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/ExplodeBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/ExplodeBehavior.cs @@ -8,7 +8,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors /// [UsedImplicitly] [DataDefinition] - public sealed class ExplodeBehavior : IThresholdBehavior + public sealed partial class ExplodeBehavior : IThresholdBehavior { public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null) { diff --git a/Content.Server/Destructible/Thresholds/Behaviors/GibBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/GibBehavior.cs index cca0515112..c83fed1906 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/GibBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/GibBehavior.cs @@ -5,7 +5,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors { [UsedImplicitly] [DataDefinition] - public sealed class GibBehavior : IThresholdBehavior + public sealed partial class GibBehavior : IThresholdBehavior { [DataField("recursive")] private bool _recursive = true; diff --git a/Content.Server/Destructible/Thresholds/Behaviors/PlaySoundBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/PlaySoundBehavior.cs index f1fcfa4449..74a4cdfb1b 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/PlaySoundBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/PlaySoundBehavior.cs @@ -6,7 +6,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors { [Serializable] [DataDefinition] - public sealed class PlaySoundBehavior : IThresholdBehavior + public sealed partial class PlaySoundBehavior : IThresholdBehavior { /// /// Sound played upon destruction. diff --git a/Content.Server/Destructible/Thresholds/Behaviors/SolutionExplosionBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/SolutionExplosionBehavior.cs index 76b76c4dc6..024cb928d0 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/SolutionExplosionBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/SolutionExplosionBehavior.cs @@ -11,7 +11,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors /// [UsedImplicitly] [DataDefinition] - public sealed class SolutionExplosionBehavior : IThresholdBehavior + public sealed partial class SolutionExplosionBehavior : IThresholdBehavior { [DataField("solution", required: true)] public string Solution = default!; diff --git a/Content.Server/Destructible/Thresholds/Behaviors/SpawnEntitiesBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/SpawnEntitiesBehavior.cs index 243ad44c0b..5b9b7596ef 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/SpawnEntitiesBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/SpawnEntitiesBehavior.cs @@ -11,7 +11,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors { [Serializable] [DataDefinition] - public sealed class SpawnEntitiesBehavior : IThresholdBehavior + public sealed partial class SpawnEntitiesBehavior : IThresholdBehavior { /// /// Entities spawned on reaching this threshold, from a min to a max. diff --git a/Content.Server/Destructible/Thresholds/Behaviors/SpawnGasBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/SpawnGasBehavior.cs index 7efd8dfb77..fec93a87f4 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/SpawnGasBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/SpawnGasBehavior.cs @@ -5,7 +5,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors; [UsedImplicitly] [DataDefinition] -public sealed class SpawnGasBehavior : IThresholdBehavior +public sealed partial class SpawnGasBehavior : IThresholdBehavior { [DataField("gasMixture", required: true)] public GasMixture Gas = new(); diff --git a/Content.Server/Destructible/Thresholds/Behaviors/SpillBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/SpillBehavior.cs index 99b6171f7e..588d26e6f4 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/SpillBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/SpillBehavior.cs @@ -7,7 +7,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors { [UsedImplicitly] [DataDefinition] - public sealed class SpillBehavior : IThresholdBehavior + public sealed partial class SpillBehavior : IThresholdBehavior { [DataField("solution")] public string? Solution; diff --git a/Content.Server/Destructible/Thresholds/Behaviors/TriggerBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/TriggerBehavior.cs index 255b4f7ace..03bdb8ff69 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/TriggerBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/TriggerBehavior.cs @@ -1,7 +1,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors; [DataDefinition] -public sealed class TriggerBehavior : IThresholdBehavior +public sealed partial class TriggerBehavior : IThresholdBehavior { public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null) { diff --git a/Content.Server/Destructible/Thresholds/DamageThreshold.cs b/Content.Server/Destructible/Thresholds/DamageThreshold.cs index b7f5bb61f4..e180f5c45c 100644 --- a/Content.Server/Destructible/Thresholds/DamageThreshold.cs +++ b/Content.Server/Destructible/Thresholds/DamageThreshold.cs @@ -5,7 +5,7 @@ using Content.Shared.Damage; namespace Content.Server.Destructible.Thresholds { [DataDefinition] - public sealed class DamageThreshold + public sealed partial class DamageThreshold { [DataField("behaviors")] private List _behaviors = new(); diff --git a/Content.Server/Destructible/Thresholds/MinMax.cs b/Content.Server/Destructible/Thresholds/MinMax.cs index af4bc40fee..b438e7c0e8 100644 --- a/Content.Server/Destructible/Thresholds/MinMax.cs +++ b/Content.Server/Destructible/Thresholds/MinMax.cs @@ -2,7 +2,7 @@ { [Serializable] [DataDefinition] - public struct MinMax + public partial struct MinMax { [DataField("min")] public int Min; diff --git a/Content.Server/Destructible/Thresholds/Triggers/AndTrigger.cs b/Content.Server/Destructible/Thresholds/Triggers/AndTrigger.cs index c4c3537f7f..70e0c3917c 100644 --- a/Content.Server/Destructible/Thresholds/Triggers/AndTrigger.cs +++ b/Content.Server/Destructible/Thresholds/Triggers/AndTrigger.cs @@ -7,7 +7,7 @@ namespace Content.Server.Destructible.Thresholds.Triggers /// [Serializable] [DataDefinition] - public sealed class AndTrigger : IThresholdTrigger + public sealed partial class AndTrigger : IThresholdTrigger { [DataField("triggers")] public List Triggers { get; set; } = new(); diff --git a/Content.Server/Destructible/Thresholds/Triggers/DamageGroupTrigger.cs b/Content.Server/Destructible/Thresholds/Triggers/DamageGroupTrigger.cs index bb47f3151d..09083105ca 100644 --- a/Content.Server/Destructible/Thresholds/Triggers/DamageGroupTrigger.cs +++ b/Content.Server/Destructible/Thresholds/Triggers/DamageGroupTrigger.cs @@ -10,7 +10,7 @@ namespace Content.Server.Destructible.Thresholds.Triggers /// [Serializable] [DataDefinition] - public sealed class DamageGroupTrigger : IThresholdTrigger + public sealed partial class DamageGroupTrigger : IThresholdTrigger { [DataField("damageGroup", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] public string DamageGroup { get; set; } = default!; diff --git a/Content.Server/Destructible/Thresholds/Triggers/DamageTrigger.cs b/Content.Server/Destructible/Thresholds/Triggers/DamageTrigger.cs index 845c773279..ce0106ee2b 100644 --- a/Content.Server/Destructible/Thresholds/Triggers/DamageTrigger.cs +++ b/Content.Server/Destructible/Thresholds/Triggers/DamageTrigger.cs @@ -8,7 +8,7 @@ namespace Content.Server.Destructible.Thresholds.Triggers /// [Serializable] [DataDefinition] - public sealed class DamageTrigger : IThresholdTrigger + public sealed partial class DamageTrigger : IThresholdTrigger { /// /// The amount of damage at which this threshold will trigger. diff --git a/Content.Server/Destructible/Thresholds/Triggers/DamageTypeTrigger.cs b/Content.Server/Destructible/Thresholds/Triggers/DamageTypeTrigger.cs index 36401ae26a..ed9fd27ab7 100644 --- a/Content.Server/Destructible/Thresholds/Triggers/DamageTypeTrigger.cs +++ b/Content.Server/Destructible/Thresholds/Triggers/DamageTypeTrigger.cs @@ -10,7 +10,7 @@ namespace Content.Server.Destructible.Thresholds.Triggers /// [Serializable] [DataDefinition] - public sealed class DamageTypeTrigger : IThresholdTrigger + public sealed partial class DamageTypeTrigger : IThresholdTrigger { [DataField("damageType", required:true, customTypeSerializer: typeof(PrototypeIdSerializer))] public string DamageType { get; set; } = default!; diff --git a/Content.Server/Destructible/Thresholds/Triggers/OrTrigger.cs b/Content.Server/Destructible/Thresholds/Triggers/OrTrigger.cs index 09c38cd968..179141dbf8 100644 --- a/Content.Server/Destructible/Thresholds/Triggers/OrTrigger.cs +++ b/Content.Server/Destructible/Thresholds/Triggers/OrTrigger.cs @@ -7,10 +7,10 @@ namespace Content.Server.Destructible.Thresholds.Triggers /// [Serializable] [DataDefinition] - public sealed class OrTrigger : IThresholdTrigger + public sealed partial class OrTrigger : IThresholdTrigger { [DataField("triggers")] - public List Triggers { get; } = new(); + public List Triggers { get; private set; } = new(); public bool Reached(DamageableComponent damageable, DestructibleSystem system) { diff --git a/Content.Server/DetailExaminable/DetailExaminableComponent.cs b/Content.Server/DetailExaminable/DetailExaminableComponent.cs index ba8741be0b..3cefb75869 100644 --- a/Content.Server/DetailExaminable/DetailExaminableComponent.cs +++ b/Content.Server/DetailExaminable/DetailExaminableComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.DetailExaminable { [RegisterComponent] - public sealed class DetailExaminableComponent : Component + public sealed partial class DetailExaminableComponent : Component { [DataField("content", required: true)] [ViewVariables(VVAccess.ReadWrite)] public string Content = ""; diff --git a/Content.Server/DeviceLinking/Components/ActiveSignalTimerComponent.cs b/Content.Server/DeviceLinking/Components/ActiveSignalTimerComponent.cs index 9cd1a5ff21..5746637ad8 100644 --- a/Content.Server/DeviceLinking/Components/ActiveSignalTimerComponent.cs +++ b/Content.Server/DeviceLinking/Components/ActiveSignalTimerComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Server.DeviceLinking.Components { [RegisterComponent] - public sealed class ActiveSignalTimerComponent : Component + public sealed partial class ActiveSignalTimerComponent : Component { /// /// The time the timer triggers. diff --git a/Content.Server/DeviceLinking/Components/AutoLinkReceiverComponent.cs b/Content.Server/DeviceLinking/Components/AutoLinkReceiverComponent.cs index 6bf8c7fec5..a65e44c98d 100644 --- a/Content.Server/DeviceLinking/Components/AutoLinkReceiverComponent.cs +++ b/Content.Server/DeviceLinking/Components/AutoLinkReceiverComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.DeviceLinking.Components; /// This is used for automatic linkage with buttons and other transmitters. /// [RegisterComponent] -public sealed class AutoLinkReceiverComponent : Component +public sealed partial class AutoLinkReceiverComponent : Component { [DataField("channel", required: true)] public string AutoLinkChannel = default!; diff --git a/Content.Server/DeviceLinking/Components/AutoLinkTransmitterComponent.cs b/Content.Server/DeviceLinking/Components/AutoLinkTransmitterComponent.cs index f42628dff6..b0cd45d062 100644 --- a/Content.Server/DeviceLinking/Components/AutoLinkTransmitterComponent.cs +++ b/Content.Server/DeviceLinking/Components/AutoLinkTransmitterComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.DeviceLinking.Components; /// This is used for automatic linkage with various receivers, like shutters. /// [RegisterComponent] -public sealed class AutoLinkTransmitterComponent : Component +public sealed partial class AutoLinkTransmitterComponent : Component { [DataField("channel", required: true)] public string AutoLinkChannel = default!; diff --git a/Content.Server/DeviceLinking/Components/DoorSignalControlComponent.cs b/Content.Server/DeviceLinking/Components/DoorSignalControlComponent.cs index 205ebb33e4..8d2e984753 100644 --- a/Content.Server/DeviceLinking/Components/DoorSignalControlComponent.cs +++ b/Content.Server/DeviceLinking/Components/DoorSignalControlComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.DeviceLinking.Components { [RegisterComponent] - public sealed class DoorSignalControlComponent : Component + public sealed partial class DoorSignalControlComponent : Component { [DataField("openPort", customTypeSerializer: typeof(PrototypeIdSerializer))] public string OpenPort = "Open"; diff --git a/Content.Server/DeviceLinking/Components/EdgeDetectorComponent.cs b/Content.Server/DeviceLinking/Components/EdgeDetectorComponent.cs index 64926a3d55..603aa2aa20 100644 --- a/Content.Server/DeviceLinking/Components/EdgeDetectorComponent.cs +++ b/Content.Server/DeviceLinking/Components/EdgeDetectorComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.DeviceLinking.Components; /// [RegisterComponent] [Access(typeof(EdgeDetectorSystem))] -public sealed class EdgeDetectorComponent : Component +public sealed partial class EdgeDetectorComponent : Component { /// /// Name of the input port. diff --git a/Content.Server/DeviceLinking/Components/LogicGateComponent.cs b/Content.Server/DeviceLinking/Components/LogicGateComponent.cs index b034335828..ee055c5df8 100644 --- a/Content.Server/DeviceLinking/Components/LogicGateComponent.cs +++ b/Content.Server/DeviceLinking/Components/LogicGateComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.DeviceLinking.Components; /// [RegisterComponent] [Access(typeof(LogicGateSystem))] -public sealed class LogicGateComponent : Component +public sealed partial class LogicGateComponent : Component { /// /// The logic gate operation to use. diff --git a/Content.Server/DeviceLinking/Components/Overload/SoundOnOverloadComponent.cs b/Content.Server/DeviceLinking/Components/Overload/SoundOnOverloadComponent.cs index b1ff146c83..b70ce950a1 100644 --- a/Content.Server/DeviceLinking/Components/Overload/SoundOnOverloadComponent.cs +++ b/Content.Server/DeviceLinking/Components/Overload/SoundOnOverloadComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.DeviceLinking.Components.Overload; /// [RegisterComponent] [Access(typeof(DeviceLinkOverloadSystem))] -public sealed class SoundOnOverloadComponent : Component +public sealed partial class SoundOnOverloadComponent : Component { /// /// Sound to play when the device overloads diff --git a/Content.Server/DeviceLinking/Components/Overload/SpawnOnOverloadComponent.cs b/Content.Server/DeviceLinking/Components/Overload/SpawnOnOverloadComponent.cs index ece7c2b7de..2ee24cf3d1 100644 --- a/Content.Server/DeviceLinking/Components/Overload/SpawnOnOverloadComponent.cs +++ b/Content.Server/DeviceLinking/Components/Overload/SpawnOnOverloadComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.DeviceLinking.Components.Overload; /// [RegisterComponent] [Access(typeof(DeviceLinkOverloadSystem))] -public sealed class SpawnOnOverloadComponent : Component +public sealed partial class SpawnOnOverloadComponent : Component { /// /// The entity prototype to spawn when the device overloads diff --git a/Content.Server/DeviceLinking/Components/SignalSwitchComponent.cs b/Content.Server/DeviceLinking/Components/SignalSwitchComponent.cs index 418b0b02e5..5dd3b9c481 100644 --- a/Content.Server/DeviceLinking/Components/SignalSwitchComponent.cs +++ b/Content.Server/DeviceLinking/Components/SignalSwitchComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.DeviceLinking.Components; /// same port regardless of its state. /// [RegisterComponent, Access(typeof(SignalSwitchSystem))] -public sealed class SignalSwitchComponent : Component +public sealed partial class SignalSwitchComponent : Component { /// /// The port that gets signaled when the switch turns on. diff --git a/Content.Server/DeviceLinking/Components/SignalTimerComponent.cs b/Content.Server/DeviceLinking/Components/SignalTimerComponent.cs index 7711d506c7..00119b1f63 100644 --- a/Content.Server/DeviceLinking/Components/SignalTimerComponent.cs +++ b/Content.Server/DeviceLinking/Components/SignalTimerComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.DeviceLinking.Components; [RegisterComponent] -public sealed class SignalTimerComponent : Component +public sealed partial class SignalTimerComponent : Component { [DataField("delay"), ViewVariables(VVAccess.ReadWrite)] public double Delay = 5; diff --git a/Content.Server/DeviceLinking/Components/SignallerComponent.cs b/Content.Server/DeviceLinking/Components/SignallerComponent.cs index d031272d75..410395c66f 100644 --- a/Content.Server/DeviceLinking/Components/SignallerComponent.cs +++ b/Content.Server/DeviceLinking/Components/SignallerComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.DeviceLinking.Components /// Sends out a signal to machine linked objects. /// [RegisterComponent] - public sealed class SignallerComponent : Component + public sealed partial class SignallerComponent : Component { /// /// The port that gets signaled when the switch turns on. diff --git a/Content.Server/DeviceLinking/Components/TwoWayLeverComponent.cs b/Content.Server/DeviceLinking/Components/TwoWayLeverComponent.cs index dc16a0b650..bbf78b6876 100644 --- a/Content.Server/DeviceLinking/Components/TwoWayLeverComponent.cs +++ b/Content.Server/DeviceLinking/Components/TwoWayLeverComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.DeviceLinking.Components { [RegisterComponent] - public sealed class TwoWayLeverComponent : Component + public sealed partial class TwoWayLeverComponent : Component { [DataField("state")] public TwoWayLeverState State; diff --git a/Content.Server/DeviceNetwork/Components/ApcNetworkComponent.cs b/Content.Server/DeviceNetwork/Components/ApcNetworkComponent.cs index 4a195cf451..4f021e7b71 100644 --- a/Content.Server/DeviceNetwork/Components/ApcNetworkComponent.cs +++ b/Content.Server/DeviceNetwork/Components/ApcNetworkComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.DeviceNetwork.Components [RegisterComponent] [Access(typeof(ApcNetworkSystem))] [ComponentProtoName("ApcNetworkConnection")] - public sealed class ApcNetworkComponent : Component + public sealed partial class ApcNetworkComponent : Component { /// /// The node Group the ApcNetworkConnection is connected to diff --git a/Content.Server/DeviceNetwork/Components/DeviceNetworkComponent.cs b/Content.Server/DeviceNetwork/Components/DeviceNetworkComponent.cs index 55b9170422..7bd89382bc 100644 --- a/Content.Server/DeviceNetwork/Components/DeviceNetworkComponent.cs +++ b/Content.Server/DeviceNetwork/Components/DeviceNetworkComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.DeviceNetwork.Components { [RegisterComponent] [Access(typeof(DeviceNetworkSystem), typeof(DeviceNet))] - public sealed class DeviceNetworkComponent : Component + public sealed partial class DeviceNetworkComponent : Component { public enum DeviceNetIdDefaults { diff --git a/Content.Server/DeviceNetwork/Components/DeviceNetworkRequiresPowerComponent.cs b/Content.Server/DeviceNetwork/Components/DeviceNetworkRequiresPowerComponent.cs index 72d946d313..7a8ca54f05 100644 --- a/Content.Server/DeviceNetwork/Components/DeviceNetworkRequiresPowerComponent.cs +++ b/Content.Server/DeviceNetwork/Components/DeviceNetworkRequiresPowerComponent.cs @@ -6,6 +6,6 @@ namespace Content.Server.DeviceNetwork.Components; /// if the entity is not powered. /// [RegisterComponent] -public sealed class DeviceNetworkRequiresPowerComponent : Component +public sealed partial class DeviceNetworkRequiresPowerComponent : Component { } diff --git a/Content.Server/DeviceNetwork/Components/Devices/ApcNetSwitchComponent.cs b/Content.Server/DeviceNetwork/Components/Devices/ApcNetSwitchComponent.cs index eed039432f..7f298e3cf4 100644 --- a/Content.Server/DeviceNetwork/Components/Devices/ApcNetSwitchComponent.cs +++ b/Content.Server/DeviceNetwork/Components/Devices/ApcNetSwitchComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.DeviceNetwork.Components.Devices { [RegisterComponent] [Access(typeof(ApcNetSwitchSystem))] - public sealed class ApcNetSwitchComponent : Component + public sealed partial class ApcNetSwitchComponent : Component { [ViewVariables] public bool State; } diff --git a/Content.Server/DeviceNetwork/Components/StationLimitedNetworkComponent.cs b/Content.Server/DeviceNetwork/Components/StationLimitedNetworkComponent.cs index 7d69c3c573..29efa50e79 100644 --- a/Content.Server/DeviceNetwork/Components/StationLimitedNetworkComponent.cs +++ b/Content.Server/DeviceNetwork/Components/StationLimitedNetworkComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Map; namespace Content.Server.DeviceNetwork.Components { [RegisterComponent] - public sealed class StationLimitedNetworkComponent : Component + public sealed partial class StationLimitedNetworkComponent : Component { /// /// The station id the device is limited to. diff --git a/Content.Server/DeviceNetwork/Components/WiredNetworkComponent.cs b/Content.Server/DeviceNetwork/Components/WiredNetworkComponent.cs index ad0bc5c0c3..b7bec1415f 100644 --- a/Content.Server/DeviceNetwork/Components/WiredNetworkComponent.cs +++ b/Content.Server/DeviceNetwork/Components/WiredNetworkComponent.cs @@ -2,7 +2,7 @@ namespace Content.Server.DeviceNetwork.Components { [RegisterComponent] [ComponentProtoName("WiredNetworkConnection")] - public sealed class WiredNetworkComponent : Component + public sealed partial class WiredNetworkComponent : Component { } } diff --git a/Content.Server/DeviceNetwork/Components/WirelessNetworkComponent.cs b/Content.Server/DeviceNetwork/Components/WirelessNetworkComponent.cs index 26867fdcf7..6d6a444900 100644 --- a/Content.Server/DeviceNetwork/Components/WirelessNetworkComponent.cs +++ b/Content.Server/DeviceNetwork/Components/WirelessNetworkComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.DeviceNetwork.Components /// [RegisterComponent] [ComponentProtoName("WirelessNetworkConnection")] - public sealed class WirelessNetworkComponent : Component + public sealed partial class WirelessNetworkComponent : Component { [DataField("range")] public int Range { get; set; } diff --git a/Content.Server/Disposal/Mailing/MailingUnitComponent.cs b/Content.Server/Disposal/Mailing/MailingUnitComponent.cs index 598c082688..be5eca99c4 100644 --- a/Content.Server/Disposal/Mailing/MailingUnitComponent.cs +++ b/Content.Server/Disposal/Mailing/MailingUnitComponent.cs @@ -4,14 +4,14 @@ namespace Content.Server.Disposal.Mailing; [Access(typeof(MailingUnitSystem))] [RegisterComponent] -public sealed class MailingUnitComponent : Component +public sealed partial class MailingUnitComponent : Component { /// /// List of targets the mailing unit can send to. /// Each target is just a disposal routing tag /// [DataField("targetList")] - public readonly List TargetList = new(); + public List TargetList = new(); /// /// The target that gets attached to the disposal holders tag list on flush diff --git a/Content.Server/Disposal/Tube/Components/DisposalBendComponent.cs b/Content.Server/Disposal/Tube/Components/DisposalBendComponent.cs index caae2e1036..ace8a68462 100644 --- a/Content.Server/Disposal/Tube/Components/DisposalBendComponent.cs +++ b/Content.Server/Disposal/Tube/Components/DisposalBendComponent.cs @@ -2,6 +2,6 @@ namespace Content.Server.Disposal.Tube.Components; [RegisterComponent] [Access(typeof(DisposalTubeSystem))] -public sealed class DisposalBendComponent : Component +public sealed partial class DisposalBendComponent : Component { } diff --git a/Content.Server/Disposal/Tube/Components/DisposalEntryComponent.cs b/Content.Server/Disposal/Tube/Components/DisposalEntryComponent.cs index 3223de35db..e4b8955c9c 100644 --- a/Content.Server/Disposal/Tube/Components/DisposalEntryComponent.cs +++ b/Content.Server/Disposal/Tube/Components/DisposalEntryComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Disposal.Tube.Components { [RegisterComponent] [Access(typeof(DisposalTubeSystem), typeof(DisposalUnitSystem))] - public sealed class DisposalEntryComponent : Component + public sealed partial class DisposalEntryComponent : Component { public const string HolderPrototypeId = "DisposalHolder"; } diff --git a/Content.Server/Disposal/Tube/Components/DisposalJunctionComponent.cs b/Content.Server/Disposal/Tube/Components/DisposalJunctionComponent.cs index ca1a4cb585..d929dd16bf 100644 --- a/Content.Server/Disposal/Tube/Components/DisposalJunctionComponent.cs +++ b/Content.Server/Disposal/Tube/Components/DisposalJunctionComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.Disposal.Tube.Components; [RegisterComponent] [Access(typeof(DisposalTubeSystem))] [Virtual] -public class DisposalJunctionComponent : Component +public partial class DisposalJunctionComponent : Component { /// /// The angles to connect to. diff --git a/Content.Server/Disposal/Tube/Components/DisposalRouterComponent.cs b/Content.Server/Disposal/Tube/Components/DisposalRouterComponent.cs index 6ab7e3d3be..cfce65d4a6 100644 --- a/Content.Server/Disposal/Tube/Components/DisposalRouterComponent.cs +++ b/Content.Server/Disposal/Tube/Components/DisposalRouterComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Disposal.Tube.Components { [RegisterComponent] [Access(typeof(DisposalTubeSystem))] - public sealed class DisposalRouterComponent : DisposalJunctionComponent + public sealed partial class DisposalRouterComponent : DisposalJunctionComponent { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Disposal/Tube/Components/DisposalTaggerComponent.cs b/Content.Server/Disposal/Tube/Components/DisposalTaggerComponent.cs index a1fbade5e7..a291f4a941 100644 --- a/Content.Server/Disposal/Tube/Components/DisposalTaggerComponent.cs +++ b/Content.Server/Disposal/Tube/Components/DisposalTaggerComponent.cs @@ -10,7 +10,7 @@ using static Content.Shared.Disposal.Components.SharedDisposalTaggerComponent; namespace Content.Server.Disposal.Tube.Components { [RegisterComponent] - public sealed class DisposalTaggerComponent : DisposalTransitComponent + public sealed partial class DisposalTaggerComponent : DisposalTransitComponent { [ViewVariables(VVAccess.ReadWrite)] [DataField("tag")] diff --git a/Content.Server/Disposal/Tube/Components/DisposalTransitComponent.cs b/Content.Server/Disposal/Tube/Components/DisposalTransitComponent.cs index 9753978cd1..e916327516 100644 --- a/Content.Server/Disposal/Tube/Components/DisposalTransitComponent.cs +++ b/Content.Server/Disposal/Tube/Components/DisposalTransitComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Disposal.Tube.Components [RegisterComponent] [Access(typeof(DisposalTubeSystem))] [Virtual] - public class DisposalTransitComponent : Component + public partial class DisposalTransitComponent : Component { } } diff --git a/Content.Server/Disposal/Tube/Components/DisposalTubeComponent.cs b/Content.Server/Disposal/Tube/Components/DisposalTubeComponent.cs index c673e9cca5..84c5262b95 100644 --- a/Content.Server/Disposal/Tube/Components/DisposalTubeComponent.cs +++ b/Content.Server/Disposal/Tube/Components/DisposalTubeComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Disposal.Tube.Components { [RegisterComponent] [Access(typeof(DisposalTubeSystem), typeof(DisposableSystem))] - public sealed class DisposalTubeComponent : Component + public sealed partial class DisposalTubeComponent : Component { [DataField("containerId")] public string ContainerId { get; set; } = "DisposalTube"; diff --git a/Content.Server/Disposal/Unit/Components/BeingDisposedComponent.cs b/Content.Server/Disposal/Unit/Components/BeingDisposedComponent.cs index 0cec11aae0..060c7c98bd 100644 --- a/Content.Server/Disposal/Unit/Components/BeingDisposedComponent.cs +++ b/Content.Server/Disposal/Unit/Components/BeingDisposedComponent.cs @@ -4,7 +4,7 @@ /// A component added to entities that are currently in disposals. /// [RegisterComponent] -public sealed class BeingDisposedComponent : Component +public sealed partial class BeingDisposedComponent : Component { [ViewVariables] public EntityUid Holder; diff --git a/Content.Server/Disposal/Unit/Components/DisposalHolderComponent.cs b/Content.Server/Disposal/Unit/Components/DisposalHolderComponent.cs index 653d7789b0..3df2182b41 100644 --- a/Content.Server/Disposal/Unit/Components/DisposalHolderComponent.cs +++ b/Content.Server/Disposal/Unit/Components/DisposalHolderComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Containers; namespace Content.Server.Disposal.Unit.Components { [RegisterComponent] - public sealed class DisposalHolderComponent : Component, IGasMixtureHolder + public sealed partial class DisposalHolderComponent : Component, IGasMixtureHolder { public Container Container = null!; diff --git a/Content.Server/Disposal/Unit/Components/DisposalUnitComponent.cs b/Content.Server/Disposal/Unit/Components/DisposalUnitComponent.cs index c9608dfba4..01e30109ee 100644 --- a/Content.Server/Disposal/Unit/Components/DisposalUnitComponent.cs +++ b/Content.Server/Disposal/Unit/Components/DisposalUnitComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Disposal.Unit.Components; // GasMixture life. [RegisterComponent] [ComponentReference(typeof(SharedDisposalUnitComponent))] -public sealed class DisposalUnitComponent : SharedDisposalUnitComponent +public sealed partial class DisposalUnitComponent : SharedDisposalUnitComponent { [DataField("air")] public GasMixture Air = new(Atmospherics.CellVolume); diff --git a/Content.Server/Doors/WireActions/DoorBoltLightWireAction.cs b/Content.Server/Doors/WireActions/DoorBoltLightWireAction.cs index 7b81d952f4..233ebfed3f 100644 --- a/Content.Server/Doors/WireActions/DoorBoltLightWireAction.cs +++ b/Content.Server/Doors/WireActions/DoorBoltLightWireAction.cs @@ -6,7 +6,7 @@ using Content.Shared.Wires; namespace Content.Server.Doors; -public sealed class DoorBoltLightWireAction : ComponentWireAction +public sealed partial class DoorBoltLightWireAction : ComponentWireAction { public override Color Color { get; set; } = Color.Lime; public override string Name { get; set; } = "wire-name-bolt-light"; diff --git a/Content.Server/Doors/WireActions/DoorBoltWireAction.cs b/Content.Server/Doors/WireActions/DoorBoltWireAction.cs index af69bdea79..29b5d726a2 100644 --- a/Content.Server/Doors/WireActions/DoorBoltWireAction.cs +++ b/Content.Server/Doors/WireActions/DoorBoltWireAction.cs @@ -7,7 +7,7 @@ using Content.Shared.Wires; namespace Content.Server.Doors; -public sealed class DoorBoltWireAction : ComponentWireAction +public sealed partial class DoorBoltWireAction : ComponentWireAction { public override Color Color { get; set; } = Color.Red; public override string Name { get; set; } = "wire-name-door-bolt"; diff --git a/Content.Server/Doors/WireActions/DoorSafetyWireAction.cs b/Content.Server/Doors/WireActions/DoorSafetyWireAction.cs index 939d617de5..9eef70b488 100644 --- a/Content.Server/Doors/WireActions/DoorSafetyWireAction.cs +++ b/Content.Server/Doors/WireActions/DoorSafetyWireAction.cs @@ -6,7 +6,7 @@ using Content.Shared.Wires; namespace Content.Server.Doors; -public sealed class DoorSafetyWireAction : ComponentWireAction +public sealed partial class DoorSafetyWireAction : ComponentWireAction { public override Color Color { get; set; } = Color.Red; public override string Name { get; set; } = "wire-name-door-safety"; diff --git a/Content.Server/Doors/WireActions/DoorTimingWireAction.cs b/Content.Server/Doors/WireActions/DoorTimingWireAction.cs index 1f576342f0..7fde102228 100644 --- a/Content.Server/Doors/WireActions/DoorTimingWireAction.cs +++ b/Content.Server/Doors/WireActions/DoorTimingWireAction.cs @@ -6,7 +6,7 @@ using Content.Shared.Wires; namespace Content.Server.Doors; -public sealed class DoorTimingWireAction : ComponentWireAction +public sealed partial class DoorTimingWireAction : ComponentWireAction { public override Color Color { get; set; } = Color.Orange; public override string Name { get; set; } = "wire-name-door-timer"; diff --git a/Content.Server/Dragon/Components/DragonComponent.cs b/Content.Server/Dragon/Components/DragonComponent.cs index 430b5d5fc2..8138f2a66b 100644 --- a/Content.Server/Dragon/Components/DragonComponent.cs +++ b/Content.Server/Dragon/Components/DragonComponent.cs @@ -11,7 +11,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Dragon { [RegisterComponent] - public sealed class DragonComponent : Component + public sealed partial class DragonComponent : Component { /// @@ -62,7 +62,7 @@ namespace Content.Server.Dragon }; } - public sealed class DragonDevourActionEvent : EntityTargetActionEvent {} + public sealed partial class DragonDevourActionEvent : EntityTargetActionEvent {} - public sealed class DragonSpawnRiftActionEvent : InstantActionEvent {} + public sealed partial class DragonSpawnRiftActionEvent : InstantActionEvent {} } diff --git a/Content.Server/Dragon/Components/DragonRiftComponent.cs b/Content.Server/Dragon/Components/DragonRiftComponent.cs index b5c7c79a9d..fa49b1f1f1 100644 --- a/Content.Server/Dragon/Components/DragonRiftComponent.cs +++ b/Content.Server/Dragon/Components/DragonRiftComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Dragon; [RegisterComponent] -public sealed class DragonRiftComponent : SharedDragonRiftComponent +public sealed partial class DragonRiftComponent : SharedDragonRiftComponent { /// /// Dragon that spawned this rift. diff --git a/Content.Server/Dragon/Components/DragonRuleComponent.cs b/Content.Server/Dragon/Components/DragonRuleComponent.cs index 8f358c31b0..a87232bebc 100644 --- a/Content.Server/Dragon/Components/DragonRuleComponent.cs +++ b/Content.Server/Dragon/Components/DragonRuleComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Dragon; [RegisterComponent] -public sealed class DragonRuleComponent : Component +public sealed partial class DragonRuleComponent : Component { } diff --git a/Content.Server/Drone/Components/DroneComponent.cs b/Content.Server/Drone/Components/DroneComponent.cs index 73c75aefd4..df7ad2bcc8 100644 --- a/Content.Server/Drone/Components/DroneComponent.cs +++ b/Content.Server/Drone/Components/DroneComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Drone.Components { [RegisterComponent] - public sealed class DroneComponent : Component + public sealed partial class DroneComponent : Component { public float InteractionBlockRange = 2.15f; } diff --git a/Content.Server/Electrocution/Components/ActivatedElectrifiedComponent.cs b/Content.Server/Electrocution/Components/ActivatedElectrifiedComponent.cs index 60c3cff880..3b6822d514 100644 --- a/Content.Server/Electrocution/Components/ActivatedElectrifiedComponent.cs +++ b/Content.Server/Electrocution/Components/ActivatedElectrifiedComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Electrocution; /// Updates every frame for short duration to check if electrifed entity is powered when activated, e.g to play animation /// [RegisterComponent] -public sealed class ActivatedElectrifiedComponent : Component +public sealed partial class ActivatedElectrifiedComponent : Component { /// /// How long electrified entity will remain active diff --git a/Content.Server/Electrocution/Components/ElectrifiedComponent.cs b/Content.Server/Electrocution/Components/ElectrifiedComponent.cs index 97a24ffe0c..d551aa1541 100644 --- a/Content.Server/Electrocution/Components/ElectrifiedComponent.cs +++ b/Content.Server/Electrocution/Components/ElectrifiedComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Electrocution; /// Component for things that shock users on touch. /// [RegisterComponent] -public sealed class ElectrifiedComponent : Component +public sealed partial class ElectrifiedComponent : Component { [DataField("enabled")] public bool Enabled = true; diff --git a/Content.Server/Electrocution/Components/ElectrocutionComponent.cs b/Content.Server/Electrocution/Components/ElectrocutionComponent.cs index 60c752c34d..2534544f6c 100644 --- a/Content.Server/Electrocution/Components/ElectrocutionComponent.cs +++ b/Content.Server/Electrocution/Components/ElectrocutionComponent.cs @@ -5,7 +5,7 @@ /// [RegisterComponent] [Access(typeof(ElectrocutionSystem))] -public sealed class ElectrocutionComponent : Component +public sealed partial class ElectrocutionComponent : Component { [DataField("timeLeft")] public float TimeLeft; diff --git a/Content.Server/Electrocution/ElectrocutionNode.cs b/Content.Server/Electrocution/ElectrocutionNode.cs index 3fdfebaf47..7abcba7666 100644 --- a/Content.Server/Electrocution/ElectrocutionNode.cs +++ b/Content.Server/Electrocution/ElectrocutionNode.cs @@ -6,7 +6,7 @@ using Robust.Shared.Map.Components; namespace Content.Server.Electrocution { [DataDefinition] - public sealed class ElectrocutionNode : Node + public sealed partial class ElectrocutionNode : Node { [DataField("cable")] public EntityUid CableEntity; diff --git a/Content.Server/Electrocution/RandomInsulationComponent.cs b/Content.Server/Electrocution/RandomInsulationComponent.cs index 8d697979a1..9b0511e593 100644 --- a/Content.Server/Electrocution/RandomInsulationComponent.cs +++ b/Content.Server/Electrocution/RandomInsulationComponent.cs @@ -1,9 +1,9 @@ namespace Content.Server.Electrocution { [RegisterComponent] - public sealed class RandomInsulationComponent : Component + public sealed partial class RandomInsulationComponent : Component { [DataField("list")] - public readonly float[] List = { 0f }; + public float[] List = { 0f }; } } diff --git a/Content.Server/Emoting/Components/BodyEmotesComponent.cs b/Content.Server/Emoting/Components/BodyEmotesComponent.cs index dba4cb4806..3fd71def0d 100644 --- a/Content.Server/Emoting/Components/BodyEmotesComponent.cs +++ b/Content.Server/Emoting/Components/BodyEmotesComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Emoting.Components; /// [RegisterComponent] [Access(typeof(BodyEmotesSystem))] -public sealed class BodyEmotesComponent : Component +public sealed partial class BodyEmotesComponent : Component { /// /// Emote sounds prototype id for body emotes. diff --git a/Content.Server/Emp/EmpOnTriggerComponent.cs b/Content.Server/Emp/EmpOnTriggerComponent.cs index b64c34cecf..fac509ea9f 100644 --- a/Content.Server/Emp/EmpOnTriggerComponent.cs +++ b/Content.Server/Emp/EmpOnTriggerComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Emp; /// [RegisterComponent] [Access(typeof(EmpSystem))] -public sealed class EmpOnTriggerComponent : Component +public sealed partial class EmpOnTriggerComponent : Component { [DataField("range"), ViewVariables(VVAccess.ReadWrite)] public float Range = 1.0f; diff --git a/Content.Server/Engineering/Components/DisassembleOnAltVerbComponent.cs b/Content.Server/Engineering/Components/DisassembleOnAltVerbComponent.cs index 7bd620963c..6e4123e04a 100644 --- a/Content.Server/Engineering/Components/DisassembleOnAltVerbComponent.cs +++ b/Content.Server/Engineering/Components/DisassembleOnAltVerbComponent.cs @@ -5,10 +5,10 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Engineering.Components { [RegisterComponent] - public sealed class DisassembleOnAltVerbComponent : Component + public sealed partial class DisassembleOnAltVerbComponent : Component { [DataField("prototype", customTypeSerializer: typeof(PrototypeIdSerializer))] - public string? Prototype { get; } + public string? Prototype { get; private set; } [DataField("doAfter")] public float DoAfterTime = 0; diff --git a/Content.Server/Engineering/Components/SpawnAfterInteractComponent.cs b/Content.Server/Engineering/Components/SpawnAfterInteractComponent.cs index 447bbd5cd3..839932b034 100644 --- a/Content.Server/Engineering/Components/SpawnAfterInteractComponent.cs +++ b/Content.Server/Engineering/Components/SpawnAfterInteractComponent.cs @@ -4,13 +4,13 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Engineering.Components { [RegisterComponent] - public sealed class SpawnAfterInteractComponent : Component + public sealed partial class SpawnAfterInteractComponent : Component { [DataField("prototype", customTypeSerializer: typeof(PrototypeIdSerializer))] - public string? Prototype { get; } + public string? Prototype { get; private set; } [DataField("ignoreDistance")] - public bool IgnoreDistance { get; } + public bool IgnoreDistance { get; private set; } [DataField("doAfter")] public float DoAfterTime = 0; diff --git a/Content.Server/Explosion/Components/ActiveTimerTriggerComponent.cs b/Content.Server/Explosion/Components/ActiveTimerTriggerComponent.cs index 69115f3130..d4f57b7137 100644 --- a/Content.Server/Explosion/Components/ActiveTimerTriggerComponent.cs +++ b/Content.Server/Explosion/Components/ActiveTimerTriggerComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Explosion.Components; /// Component for tracking active trigger timers. A timers can activated by some other component, e.g. . /// [RegisterComponent] -public sealed class ActiveTimerTriggerComponent : Component +public sealed partial class ActiveTimerTriggerComponent : Component { [DataField("timeRemaining")] public float TimeRemaining; diff --git a/Content.Server/Explosion/Components/ActiveTriggerOnTimedCollideComponent.cs b/Content.Server/Explosion/Components/ActiveTriggerOnTimedCollideComponent.cs index 51530d1b22..9d8073413c 100644 --- a/Content.Server/Explosion/Components/ActiveTriggerOnTimedCollideComponent.cs +++ b/Content.Server/Explosion/Components/ActiveTriggerOnTimedCollideComponent.cs @@ -1,4 +1,4 @@ namespace Content.Server.Explosion.Components; [RegisterComponent] -public sealed class ActiveTriggerOnTimedCollideComponent : Component { } +public sealed partial class ActiveTriggerOnTimedCollideComponent : Component { } diff --git a/Content.Server/Explosion/Components/ClusterGrenadeComponent.cs b/Content.Server/Explosion/Components/ClusterGrenadeComponent.cs index e739f4506c..e2e3ca2733 100644 --- a/Content.Server/Explosion/Components/ClusterGrenadeComponent.cs +++ b/Content.Server/Explosion/Components/ClusterGrenadeComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Explosion.Components { [RegisterComponent, Access(typeof(ClusterGrenadeSystem))] - public sealed class ClusterGrenadeComponent : Component + public sealed partial class ClusterGrenadeComponent : Component { public Container GrenadesContainer = default!; diff --git a/Content.Server/Explosion/Components/ExplosionResistanceComponent.cs b/Content.Server/Explosion/Components/ExplosionResistanceComponent.cs index ed30479690..a65764c413 100644 --- a/Content.Server/Explosion/Components/ExplosionResistanceComponent.cs +++ b/Content.Server/Explosion/Components/ExplosionResistanceComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Explosion.Components; /// [RegisterComponent] [Access(typeof(ExplosionSystem))] -public sealed class ExplosionResistanceComponent : Component +public sealed partial class ExplosionResistanceComponent : Component { /// /// The explosive resistance coefficient, This fraction is multiplied into the total resistance. diff --git a/Content.Server/Explosion/Components/ExplosiveComponent.cs b/Content.Server/Explosion/Components/ExplosiveComponent.cs index 88213d61e5..04a08955a3 100644 --- a/Content.Server/Explosion/Components/ExplosiveComponent.cs +++ b/Content.Server/Explosion/Components/ExplosiveComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Explosion.Components; /// component still determines the explosion type and other properties. /// [RegisterComponent] -public sealed class ExplosiveComponent : Component +public sealed partial class ExplosiveComponent : Component { /// diff --git a/Content.Server/Explosion/Components/OnTrigger/AnchorOnTriggerComponent.cs b/Content.Server/Explosion/Components/OnTrigger/AnchorOnTriggerComponent.cs index 41c58c171f..d83b57c188 100644 --- a/Content.Server/Explosion/Components/OnTrigger/AnchorOnTriggerComponent.cs +++ b/Content.Server/Explosion/Components/OnTrigger/AnchorOnTriggerComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Explosion.Components; /// Will anchor the attached entity upon a . /// [RegisterComponent] -public sealed class AnchorOnTriggerComponent : Component +public sealed partial class AnchorOnTriggerComponent : Component { [DataField("removeOnTrigger")] public bool RemoveOnTrigger = true; diff --git a/Content.Server/Explosion/Components/OnTrigger/DeleteOnTriggerComponent.cs b/Content.Server/Explosion/Components/OnTrigger/DeleteOnTriggerComponent.cs index c0f19d9048..9846cad84b 100644 --- a/Content.Server/Explosion/Components/OnTrigger/DeleteOnTriggerComponent.cs +++ b/Content.Server/Explosion/Components/OnTrigger/DeleteOnTriggerComponent.cs @@ -6,6 +6,6 @@ namespace Content.Server.Explosion.Components; /// Will delete the attached entity upon a . /// [RegisterComponent] -public sealed class DeleteOnTriggerComponent : Component +public sealed partial class DeleteOnTriggerComponent : Component { } diff --git a/Content.Server/Explosion/Components/OnTrigger/ExplodeOnTriggerComponent.cs b/Content.Server/Explosion/Components/OnTrigger/ExplodeOnTriggerComponent.cs index a6f2a324ae..326ae6dab5 100644 --- a/Content.Server/Explosion/Components/OnTrigger/ExplodeOnTriggerComponent.cs +++ b/Content.Server/Explosion/Components/OnTrigger/ExplodeOnTriggerComponent.cs @@ -4,6 +4,6 @@ namespace Content.Server.Explosion.Components; /// Explode using the entity's if Triggered. /// [RegisterComponent] -public sealed class ExplodeOnTriggerComponent : Component +public sealed partial class ExplodeOnTriggerComponent : Component { } diff --git a/Content.Server/Explosion/Components/OnTrigger/GibOnTriggerComponent.cs b/Content.Server/Explosion/Components/OnTrigger/GibOnTriggerComponent.cs index 554b5b25d0..da58467659 100644 --- a/Content.Server/Explosion/Components/OnTrigger/GibOnTriggerComponent.cs +++ b/Content.Server/Explosion/Components/OnTrigger/GibOnTriggerComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Explosion.Components; /// Also in case of an implant using this, gibs the implant user instead. /// [RegisterComponent] -public sealed class GibOnTriggerComponent : Component +public sealed partial class GibOnTriggerComponent : Component { /// /// Should gibbing also delete the owners items? diff --git a/Content.Server/Explosion/Components/OnTrigger/SoundOnTriggerComponent.cs b/Content.Server/Explosion/Components/OnTrigger/SoundOnTriggerComponent.cs index 0df3d58731..7f9f16a227 100644 --- a/Content.Server/Explosion/Components/OnTrigger/SoundOnTriggerComponent.cs +++ b/Content.Server/Explosion/Components/OnTrigger/SoundOnTriggerComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Explosion.Components; /// Will play sound from the attached entity upon a . /// [RegisterComponent] -public sealed class SoundOnTriggerComponent : Component +public sealed partial class SoundOnTriggerComponent : Component { [DataField("removeOnTrigger")] public bool RemoveOnTrigger = true; diff --git a/Content.Server/Explosion/Components/OnTrigger/TwoStageTriggerComponent.cs b/Content.Server/Explosion/Components/OnTrigger/TwoStageTriggerComponent.cs index 90cc5e3e3b..abef1ed476 100644 --- a/Content.Server/Explosion/Components/OnTrigger/TwoStageTriggerComponent.cs +++ b/Content.Server/Explosion/Components/OnTrigger/TwoStageTriggerComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Explosion.Components.OnTrigger; /// After being triggered applies the specified components and runs triggers again. /// [RegisterComponent] -public sealed class TwoStageTriggerComponent : Component +public sealed partial class TwoStageTriggerComponent : Component { /// /// How long it takes for the second stage to be triggered. diff --git a/Content.Server/Explosion/Components/OnUseTimerTriggerComponent.cs b/Content.Server/Explosion/Components/OnUseTimerTriggerComponent.cs index f4941350dd..008bbbe284 100644 --- a/Content.Server/Explosion/Components/OnUseTimerTriggerComponent.cs +++ b/Content.Server/Explosion/Components/OnUseTimerTriggerComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Audio; namespace Content.Server.Explosion.Components { [RegisterComponent] - public sealed class OnUseTimerTriggerComponent : Component + public sealed partial class OnUseTimerTriggerComponent : Component { [DataField("delay")] public float Delay = 1f; diff --git a/Content.Server/Explosion/Components/SpawnOnTriggerComponent.cs b/Content.Server/Explosion/Components/SpawnOnTriggerComponent.cs index 0821d30881..a8b36fbd84 100644 --- a/Content.Server/Explosion/Components/SpawnOnTriggerComponent.cs +++ b/Content.Server/Explosion/Components/SpawnOnTriggerComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Explosion.Components; [RegisterComponent, Access(typeof(TriggerSystem))] -public sealed class SpawnOnTriggerComponent : Component +public sealed partial class SpawnOnTriggerComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("proto", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Proto = string.Empty; diff --git a/Content.Server/Explosion/Components/TriggerOnActivateComponent.cs b/Content.Server/Explosion/Components/TriggerOnActivateComponent.cs index 549ab62f8f..1531c7425e 100644 --- a/Content.Server/Explosion/Components/TriggerOnActivateComponent.cs +++ b/Content.Server/Explosion/Components/TriggerOnActivateComponent.cs @@ -4,4 +4,4 @@ /// Triggers on click. /// [RegisterComponent] -public sealed class TriggerOnActivateComponent : Component { } +public sealed partial class TriggerOnActivateComponent : Component { } diff --git a/Content.Server/Explosion/Components/TriggerOnCollideComponent.cs b/Content.Server/Explosion/Components/TriggerOnCollideComponent.cs index b35a3ebb6a..950bd3e462 100644 --- a/Content.Server/Explosion/Components/TriggerOnCollideComponent.cs +++ b/Content.Server/Explosion/Components/TriggerOnCollideComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Explosion.Components { [RegisterComponent] - public sealed class TriggerOnCollideComponent : Component + public sealed partial class TriggerOnCollideComponent : Component { [DataField("fixtureID", required: true)] public string FixtureID = String.Empty; diff --git a/Content.Server/Explosion/Components/TriggerOnMobstateChangeComponent.cs b/Content.Server/Explosion/Components/TriggerOnMobstateChangeComponent.cs index e5d8c6c9bf..a6cdda247c 100644 --- a/Content.Server/Explosion/Components/TriggerOnMobstateChangeComponent.cs +++ b/Content.Server/Explosion/Components/TriggerOnMobstateChangeComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Explosion.Components; /// Use where you want something to trigger on mobstate change /// [RegisterComponent] -public sealed class TriggerOnMobstateChangeComponent : Component +public sealed partial class TriggerOnMobstateChangeComponent : Component { /// /// What state should trigger this? diff --git a/Content.Server/Explosion/Components/TriggerOnProximityComponent.cs b/Content.Server/Explosion/Components/TriggerOnProximityComponent.cs index 720aec0a02..cfa1042245 100644 --- a/Content.Server/Explosion/Components/TriggerOnProximityComponent.cs +++ b/Content.Server/Explosion/Components/TriggerOnProximityComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Explosion.Components /// Raises a whenever an entity collides with a fixture attached to the owner of this component. /// [RegisterComponent] - public sealed class TriggerOnProximityComponent : SharedTriggerOnProximityComponent + public sealed partial class TriggerOnProximityComponent : SharedTriggerOnProximityComponent { public const string FixtureID = "trigger-on-proximity-fixture"; @@ -85,6 +85,6 @@ namespace Content.Server.Explosion.Components /// [ViewVariables] [DataField("layer", customTypeSerializer: typeof(FlagSerializer))] - public readonly int Layer = (int) (CollisionGroup.MidImpassable | CollisionGroup.LowImpassable | CollisionGroup.HighImpassable); + public int Layer = (int) (CollisionGroup.MidImpassable | CollisionGroup.LowImpassable | CollisionGroup.HighImpassable); } } diff --git a/Content.Server/Explosion/Components/TriggerOnSignalComponent.cs b/Content.Server/Explosion/Components/TriggerOnSignalComponent.cs index ed53c2c3f1..fb7495612c 100644 --- a/Content.Server/Explosion/Components/TriggerOnSignalComponent.cs +++ b/Content.Server/Explosion/Components/TriggerOnSignalComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Explosion.Components /// Sends a trigger when signal is received. /// [RegisterComponent] - public sealed class TriggerOnSignalComponent : Component + public sealed partial class TriggerOnSignalComponent : Component { [DataField("port", customTypeSerializer: typeof(PrototypeIdSerializer))] public string Port = "Trigger"; diff --git a/Content.Server/Explosion/Components/TriggerOnSlipComponent.cs b/Content.Server/Explosion/Components/TriggerOnSlipComponent.cs index da9d30240c..16632b9b72 100644 --- a/Content.Server/Explosion/Components/TriggerOnSlipComponent.cs +++ b/Content.Server/Explosion/Components/TriggerOnSlipComponent.cs @@ -1,6 +1,6 @@ namespace Content.Server.Explosion.Components; [RegisterComponent] -public sealed class TriggerOnSlipComponent : Component +public sealed partial class TriggerOnSlipComponent : Component { } diff --git a/Content.Server/Explosion/Components/TriggerOnStepTriggerComponent.cs b/Content.Server/Explosion/Components/TriggerOnStepTriggerComponent.cs index 9539e78768..49e99ff785 100644 --- a/Content.Server/Explosion/Components/TriggerOnStepTriggerComponent.cs +++ b/Content.Server/Explosion/Components/TriggerOnStepTriggerComponent.cs @@ -5,6 +5,6 @@ /// Not done by default, since it's not useful for everything and might cause weird behavior. But it is useful for a lot of stuff like mousetraps. /// [RegisterComponent] -public sealed class TriggerOnStepTriggerComponent : Component +public sealed partial class TriggerOnStepTriggerComponent : Component { } diff --git a/Content.Server/Explosion/Components/TriggerOnTimedCollideComponent.cs b/Content.Server/Explosion/Components/TriggerOnTimedCollideComponent.cs index 892ce33e49..d53bcbcc5d 100644 --- a/Content.Server/Explosion/Components/TriggerOnTimedCollideComponent.cs +++ b/Content.Server/Explosion/Components/TriggerOnTimedCollideComponent.cs @@ -4,7 +4,7 @@ /// Triggers when the entity is overlapped for the specified duration. /// [RegisterComponent] -public sealed class TriggerOnTimedCollideComponent : Component +public sealed partial class TriggerOnTimedCollideComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("threshold")] diff --git a/Content.Server/Explosion/Components/TriggerOnVoiceComponent.cs b/Content.Server/Explosion/Components/TriggerOnVoiceComponent.cs index 1fa28f0f11..7d07f496d0 100644 --- a/Content.Server/Explosion/Components/TriggerOnVoiceComponent.cs +++ b/Content.Server/Explosion/Components/TriggerOnVoiceComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Explosion.Components /// Sends a trigger when the keyphrase is heard /// [RegisterComponent] - public sealed class TriggerOnVoiceComponent : Component + public sealed partial class TriggerOnVoiceComponent : Component { public bool IsListening => IsRecording || !string.IsNullOrWhiteSpace(KeyPhrase); diff --git a/Content.Server/Explosion/Components/TriggerWhenEmptyComponent.cs b/Content.Server/Explosion/Components/TriggerWhenEmptyComponent.cs index 71edd42646..ad39b9c515 100644 --- a/Content.Server/Explosion/Components/TriggerWhenEmptyComponent.cs +++ b/Content.Server/Explosion/Components/TriggerWhenEmptyComponent.cs @@ -4,6 +4,6 @@ namespace Content.Server.Explosion.Components; /// Triggers a gun when attempting to shoot while it's empty /// [RegisterComponent] -public sealed class TriggerWhenEmptyComponent : Component +public sealed partial class TriggerWhenEmptyComponent : Component { } diff --git a/Content.Server/Extinguisher/FireExtinguisherComponent.cs b/Content.Server/Extinguisher/FireExtinguisherComponent.cs index e9bc5d00ce..fe10b4a574 100644 --- a/Content.Server/Extinguisher/FireExtinguisherComponent.cs +++ b/Content.Server/Extinguisher/FireExtinguisherComponent.cs @@ -5,6 +5,6 @@ namespace Content.Server.Extinguisher; [NetworkedComponent, RegisterComponent] [Access(typeof(FireExtinguisherSystem))] -public sealed class FireExtinguisherComponent : SharedFireExtinguisherComponent +public sealed partial class FireExtinguisherComponent : SharedFireExtinguisherComponent { } diff --git a/Content.Server/Eye/Blinding/ActivatableUIRequiresVisionComponent.cs b/Content.Server/Eye/Blinding/ActivatableUIRequiresVisionComponent.cs index 8f8c7f0fb0..725b871b16 100644 --- a/Content.Server/Eye/Blinding/ActivatableUIRequiresVisionComponent.cs +++ b/Content.Server/Eye/Blinding/ActivatableUIRequiresVisionComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Eye.Blinding { [RegisterComponent] - public sealed class ActivatableUIRequiresVisionComponent : Component + public sealed partial class ActivatableUIRequiresVisionComponent : Component { } } diff --git a/Content.Server/Fax/FaxMachineComponent.cs b/Content.Server/Fax/FaxMachineComponent.cs index 2fcc41f5a3..d1f269dd37 100644 --- a/Content.Server/Fax/FaxMachineComponent.cs +++ b/Content.Server/Fax/FaxMachineComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Fax; [RegisterComponent] -public sealed class FaxMachineComponent : Component +public sealed partial class FaxMachineComponent : Component { /// /// Name with which the fax will be visible to others on the network @@ -80,7 +80,7 @@ public sealed class FaxMachineComponent : Component /// [ViewVariables] [DataField("printingQueue")] - public Queue PrintingQueue { get; } = new(); + public Queue PrintingQueue { get; private set; } = new(); /// /// Message sending timeout @@ -122,22 +122,22 @@ public sealed class FaxMachineComponent : Component } [DataDefinition] -public sealed class FaxPrintout +public sealed partial class FaxPrintout { [DataField("name", required: true)] - public string Name { get; } = default!; + public string Name { get; private set; } = default!; [DataField("content", required: true)] - public string Content { get; } = default!; + public string Content { get; private set; } = default!; [DataField("prototypeId", customTypeSerializer: typeof(PrototypeIdSerializer), required: true)] - public string PrototypeId { get; } = default!; + public string PrototypeId { get; private set; } = default!; [DataField("stampState")] - public string? StampState { get; } + public string? StampState { get; private set; } [DataField("stampedBy")] - public List StampedBy { get; } = new(); + public List StampedBy { get; private set; } = new(); private FaxPrintout() { diff --git a/Content.Server/Flash/Components/FlashComponent.cs b/Content.Server/Flash/Components/FlashComponent.cs index 3f2ca0e389..d2b1c7f498 100644 --- a/Content.Server/Flash/Components/FlashComponent.cs +++ b/Content.Server/Flash/Components/FlashComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Audio; namespace Content.Server.Flash.Components { [RegisterComponent, Access(typeof(FlashSystem))] - public sealed class FlashComponent : Component + public sealed partial class FlashComponent : Component { [DataField("duration")] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Flash/Components/FlashImmunityComponent.cs b/Content.Server/Flash/Components/FlashImmunityComponent.cs index fe8fab2803..80bbdd1282 100644 --- a/Content.Server/Flash/Components/FlashImmunityComponent.cs +++ b/Content.Server/Flash/Components/FlashImmunityComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Flash.Components { [RegisterComponent, Access(typeof(FlashSystem))] - public sealed class FlashImmunityComponent : Component + public sealed partial class FlashImmunityComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("enabled")] diff --git a/Content.Server/Flash/Components/FlashOnTriggerComponent.cs b/Content.Server/Flash/Components/FlashOnTriggerComponent.cs index 9017c3fc01..ad12dbdb02 100644 --- a/Content.Server/Flash/Components/FlashOnTriggerComponent.cs +++ b/Content.Server/Flash/Components/FlashOnTriggerComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Flash.Components /// Upon being triggered will flash in an area around it. /// [RegisterComponent] - internal sealed class FlashOnTriggerComponent : Component + internal sealed partial class FlashOnTriggerComponent : Component { [DataField("range")] internal float Range = 1.0f; [DataField("duration")] internal float Duration = 8.0f; diff --git a/Content.Server/Fluids/Components/EvaporationComponent.cs b/Content.Server/Fluids/Components/EvaporationComponent.cs index 0c7a497e00..0f530da79e 100644 --- a/Content.Server/Fluids/Components/EvaporationComponent.cs +++ b/Content.Server/Fluids/Components/EvaporationComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Fluids.Components; /// Added to puddles that contain water so it may evaporate over time. /// [RegisterComponent, Access(typeof(PuddleSystem))] -public sealed class EvaporationComponent : Component +public sealed partial class EvaporationComponent : Component { /// /// The next time we remove the EvaporationSystem reagent amount from this entity. diff --git a/Content.Server/Fluids/Components/EvaporationSparkleComponent.cs b/Content.Server/Fluids/Components/EvaporationSparkleComponent.cs index 393328e579..be4a693e7f 100644 --- a/Content.Server/Fluids/Components/EvaporationSparkleComponent.cs +++ b/Content.Server/Fluids/Components/EvaporationSparkleComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Fluids.Components; /// Used to track evaporation sparkles so we can delete if necessary. /// [RegisterComponent] -public sealed class EvaporationSparkleComponent : Component +public sealed partial class EvaporationSparkleComponent : Component { } diff --git a/Content.Server/Fluids/Components/FootstepTrackComponent.cs b/Content.Server/Fluids/Components/FootstepTrackComponent.cs index 04df4dec75..4807ec3013 100644 --- a/Content.Server/Fluids/Components/FootstepTrackComponent.cs +++ b/Content.Server/Fluids/Components/FootstepTrackComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Fluids.Components; [RegisterComponent] -public sealed class FootstepTrackComponent : Component +public sealed partial class FootstepTrackComponent : Component { } diff --git a/Content.Server/Fluids/Components/SpillableComponent.cs b/Content.Server/Fluids/Components/SpillableComponent.cs index 30a1bc66a0..645b0af612 100644 --- a/Content.Server/Fluids/Components/SpillableComponent.cs +++ b/Content.Server/Fluids/Components/SpillableComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.FixedPoint; namespace Content.Server.Fluids.Components; [RegisterComponent] -public sealed class SpillableComponent : Component +public sealed partial class SpillableComponent : Component { [DataField("solution")] public string SolutionName = "puddle"; diff --git a/Content.Server/Fluids/Components/SprayComponent.cs b/Content.Server/Fluids/Components/SprayComponent.cs index c3c9c0e92b..98e7238889 100644 --- a/Content.Server/Fluids/Components/SprayComponent.cs +++ b/Content.Server/Fluids/Components/SprayComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Fluids.Components; [RegisterComponent] [Access(typeof(SpraySystem))] -public sealed class SprayComponent : Component +public sealed partial class SprayComponent : Component { public const string SolutionName = "spray"; @@ -32,5 +32,5 @@ public sealed class SprayComponent : Component [ViewVariables(VVAccess.ReadWrite), DataField("spraySound", required: true)] [Access(typeof(SpraySystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends - public SoundSpecifier SpraySound { get; } = default!; + public SoundSpecifier SpraySound { get; private set; } = default!; } diff --git a/Content.Server/Forensics/Components/DnaComponent.cs b/Content.Server/Forensics/Components/DnaComponent.cs index 101b9a0900..78857f9f31 100644 --- a/Content.Server/Forensics/Components/DnaComponent.cs +++ b/Content.Server/Forensics/Components/DnaComponent.cs @@ -4,7 +4,7 @@ /// This component is for mobs that have DNA. /// [RegisterComponent] -public sealed class DnaComponent : Component +public sealed partial class DnaComponent : Component { [DataField("dna"), ViewVariables(VVAccess.ReadWrite)] public string DNA = String.Empty; diff --git a/Content.Server/Forensics/Components/FiberComponent.cs b/Content.Server/Forensics/Components/FiberComponent.cs index 2d45730460..766ad979b6 100644 --- a/Content.Server/Forensics/Components/FiberComponent.cs +++ b/Content.Server/Forensics/Components/FiberComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Forensics /// which the forensics system uses. /// [RegisterComponent] - public sealed class FiberComponent : Component + public sealed partial class FiberComponent : Component { [DataField("fiberMaterial")] public string FiberMaterial = "fibers-synthetic"; diff --git a/Content.Server/Forensics/Components/FingerprintComponent.cs b/Content.Server/Forensics/Components/FingerprintComponent.cs index a75b90e3aa..96f8042ddf 100644 --- a/Content.Server/Forensics/Components/FingerprintComponent.cs +++ b/Content.Server/Forensics/Components/FingerprintComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Forensics /// This component is for mobs that leave fingerprints. /// [RegisterComponent] - public sealed class FingerprintComponent : Component + public sealed partial class FingerprintComponent : Component { [DataField("fingerprint")] public string? Fingerprint; diff --git a/Content.Server/Forensics/Components/FingerprintMaskComponent.cs b/Content.Server/Forensics/Components/FingerprintMaskComponent.cs index a9d80d06ba..7371097761 100644 --- a/Content.Server/Forensics/Components/FingerprintMaskComponent.cs +++ b/Content.Server/Forensics/Components/FingerprintMaskComponent.cs @@ -5,6 +5,6 @@ namespace Content.Server.Forensics /// usually so fibres can be left instead. /// [RegisterComponent] - public sealed class FingerprintMaskComponent : Component + public sealed partial class FingerprintMaskComponent : Component {} } diff --git a/Content.Server/Forensics/Components/ForensicPadComponent.cs b/Content.Server/Forensics/Components/ForensicPadComponent.cs index 8476d17a0d..d707886481 100644 --- a/Content.Server/Forensics/Components/ForensicPadComponent.cs +++ b/Content.Server/Forensics/Components/ForensicPadComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Forensics /// Used to take a sample of someone's fingerprints. /// [RegisterComponent] - public sealed class ForensicPadComponent : Component + public sealed partial class ForensicPadComponent : Component { [DataField("scanDelay")] public float ScanDelay = 3.0f; diff --git a/Content.Server/Forensics/Components/ForensicScannerComponent.cs b/Content.Server/Forensics/Components/ForensicScannerComponent.cs index 29a34407fe..16eb852590 100644 --- a/Content.Server/Forensics/Components/ForensicScannerComponent.cs +++ b/Content.Server/Forensics/Components/ForensicScannerComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Forensics { [RegisterComponent] - public sealed class ForensicScannerComponent : Component + public sealed partial class ForensicScannerComponent : Component { public CancellationTokenSource? CancelToken; diff --git a/Content.Server/Forensics/Components/ForensicsComponent.cs b/Content.Server/Forensics/Components/ForensicsComponent.cs index e814cd025f..5a73a6a3e3 100644 --- a/Content.Server/Forensics/Components/ForensicsComponent.cs +++ b/Content.Server/Forensics/Components/ForensicsComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Forensics { [RegisterComponent] - public sealed class ForensicsComponent : Component + public sealed partial class ForensicsComponent : Component { [DataField("fingerprints")] public HashSet Fingerprints = new(); diff --git a/Content.Server/Friends/Components/PettableFriendComponent.cs b/Content.Server/Friends/Components/PettableFriendComponent.cs index 18404931ee..fe68029a66 100644 --- a/Content.Server/Friends/Components/PettableFriendComponent.cs +++ b/Content.Server/Friends/Components/PettableFriendComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Friends.Components; /// Uses FactionExceptionComponent behind the scenes /// [RegisterComponent, Access(typeof(PettableFriendSystem))] -public sealed class PettableFriendComponent : Component +public sealed partial class PettableFriendComponent : Component { /// /// Localized popup sent when petting for the first time diff --git a/Content.Server/GameTicking/Presets/GamePresetPrototype.cs b/Content.Server/GameTicking/Presets/GamePresetPrototype.cs index e3edb894c0..aff42cb4a7 100644 --- a/Content.Server/GameTicking/Presets/GamePresetPrototype.cs +++ b/Content.Server/GameTicking/Presets/GamePresetPrototype.cs @@ -13,34 +13,34 @@ namespace Content.Server.GameTicking.Presets public sealed class GamePresetPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("alias")] - public readonly string[] Alias = Array.Empty(); + public string[] Alias = Array.Empty(); [DataField("name")] - public readonly string ModeTitle = "????"; + public string ModeTitle = "????"; [DataField("description")] - public readonly string Description = string.Empty; + public string Description = string.Empty; [DataField("showInVote")] - public readonly bool ShowInVote; + public bool ShowInVote; [DataField("minPlayers")] - public readonly int? MinPlayers; + public int? MinPlayers; [DataField("maxPlayers")] - public readonly int? MaxPlayers; + public int? MaxPlayers; [DataField("rules", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public IReadOnlyList Rules { get; } = Array.Empty(); + public IReadOnlyList Rules { get; private set; } = Array.Empty(); /// /// If specified, the gamemode will only be run with these maps. /// If none are elligible, the global fallback will be used. /// [DataField("supportedMaps", customTypeSerializer: typeof(PrototypeIdSerializer))] - public readonly string? MapPool; + public string? MapPool; } } diff --git a/Content.Server/GameTicking/Rules/Components/DeathMatchRuleComponent.cs b/Content.Server/GameTicking/Rules/Components/DeathMatchRuleComponent.cs index 7a11eb7b56..17f46ba2f5 100644 --- a/Content.Server/GameTicking/Rules/Components/DeathMatchRuleComponent.cs +++ b/Content.Server/GameTicking/Rules/Components/DeathMatchRuleComponent.cs @@ -5,7 +5,7 @@ /// Kill everybody else to win. /// [RegisterComponent, Access(typeof(DeathMatchRuleSystem))] -public sealed class DeathMatchRuleComponent : Component +public sealed partial class DeathMatchRuleComponent : Component { /// /// How long until the round restarts diff --git a/Content.Server/GameTicking/Rules/Components/GameRuleComponent.cs b/Content.Server/GameTicking/Rules/Components/GameRuleComponent.cs index 640b6cb839..e918a5b796 100644 --- a/Content.Server/GameTicking/Rules/Components/GameRuleComponent.cs +++ b/Content.Server/GameTicking/Rules/Components/GameRuleComponent.cs @@ -5,7 +5,7 @@ /// Used to both track the entity as well as store basic data /// [RegisterComponent] -public sealed class GameRuleComponent : Component +public sealed partial class GameRuleComponent : Component { /// /// Whether or not the rule is active. diff --git a/Content.Server/GameTicking/Rules/Components/InactivityRuleComponent.cs b/Content.Server/GameTicking/Rules/Components/InactivityRuleComponent.cs index ae9657a300..5d1bd5f073 100644 --- a/Content.Server/GameTicking/Rules/Components/InactivityRuleComponent.cs +++ b/Content.Server/GameTicking/Rules/Components/InactivityRuleComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.GameTicking.Rules.Components; /// Gamerule that ends the round after a period of inactivity. /// [RegisterComponent, Access(typeof(InactivityTimeRestartRuleSystem))] -public sealed class InactivityRuleComponent : Component +public sealed partial class InactivityRuleComponent : Component { /// /// How long the round must be inactive to restart diff --git a/Content.Server/GameTicking/Rules/Components/MaxTimeRestartRuleComponent.cs b/Content.Server/GameTicking/Rules/Components/MaxTimeRestartRuleComponent.cs index 45d9d38740..4706f6216b 100644 --- a/Content.Server/GameTicking/Rules/Components/MaxTimeRestartRuleComponent.cs +++ b/Content.Server/GameTicking/Rules/Components/MaxTimeRestartRuleComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.GameTicking.Rules.Components; /// Configures the game rule. /// [RegisterComponent] -public sealed class MaxTimeRestartRuleComponent : Component +public sealed partial class MaxTimeRestartRuleComponent : Component { /// /// The max amount of time the round can last diff --git a/Content.Server/GameTicking/Rules/Components/NukeOperativeComponent.cs b/Content.Server/GameTicking/Rules/Components/NukeOperativeComponent.cs index b27e8b73dc..59fc9526dc 100644 --- a/Content.Server/GameTicking/Rules/Components/NukeOperativeComponent.cs +++ b/Content.Server/GameTicking/Rules/Components/NukeOperativeComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.GameTicking.Rules.Components; /// This is used for tagging a mob as a nuke operative. /// [RegisterComponent] -public sealed class NukeOperativeComponent : Component +public sealed partial class NukeOperativeComponent : Component { /// /// Path to antagonist alert sound. diff --git a/Content.Server/GameTicking/Rules/Components/NukeOperativeSpawnerComponent.cs b/Content.Server/GameTicking/Rules/Components/NukeOperativeSpawnerComponent.cs index b2f63bd1ff..56907788a5 100644 --- a/Content.Server/GameTicking/Rules/Components/NukeOperativeSpawnerComponent.cs +++ b/Content.Server/GameTicking/Rules/Components/NukeOperativeSpawnerComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.GameTicking.Rules.Components; /// TODO: Remove once systems can request spawns from the ghost role system directly. /// [RegisterComponent] -public sealed class NukeOperativeSpawnerComponent : Component +public sealed partial class NukeOperativeSpawnerComponent : Component { [DataField("name", required:true)] public string OperativeName = default!; diff --git a/Content.Server/GameTicking/Rules/Components/NukeopsRuleComponent.cs b/Content.Server/GameTicking/Rules/Components/NukeopsRuleComponent.cs index 185146cffd..d58a90715c 100644 --- a/Content.Server/GameTicking/Rules/Components/NukeopsRuleComponent.cs +++ b/Content.Server/GameTicking/Rules/Components/NukeopsRuleComponent.cs @@ -15,7 +15,7 @@ using Robust.Shared.Utility; namespace Content.Server.GameTicking.Rules.Components; [RegisterComponent, Access(typeof(NukeopsRuleSystem), typeof(LoneOpsSpawnRule))] -public sealed class NukeopsRuleComponent : Component +public sealed partial class NukeopsRuleComponent : Component { /// /// The minimum needed amount of players @@ -98,19 +98,19 @@ public sealed class NukeopsRuleComponent : Component /// Cached starting gear prototypes. /// [DataField("startingGearPrototypes")] - public readonly Dictionary StartingGearPrototypes = new (); + public Dictionary StartingGearPrototypes = new (); /// /// Cached operator name prototypes. /// [DataField("operativeNames")] - public readonly Dictionary> OperativeNames = new(); + public Dictionary> OperativeNames = new(); /// /// Data to be used in for an operative once the Mind has been added. /// [DataField("operativeMindPendingData")] - public readonly Dictionary OperativeMindPendingData = new(); + public Dictionary OperativeMindPendingData = new(); /// /// Players who played as an operative at some point in the round. @@ -118,7 +118,7 @@ public sealed class NukeopsRuleComponent : Component /// /// todo: don't store sessions, dingus [DataField("operativePlayers")] - public readonly Dictionary OperativePlayers = new(); + public Dictionary OperativePlayers = new(); [DataField("faction", customTypeSerializer: typeof(PrototypeIdSerializer), required: true)] public string Faction = default!; diff --git a/Content.Server/GameTicking/Rules/Components/PiratesRuleComponent.cs b/Content.Server/GameTicking/Rules/Components/PiratesRuleComponent.cs index 1c8045d484..def1ed3de0 100644 --- a/Content.Server/GameTicking/Rules/Components/PiratesRuleComponent.cs +++ b/Content.Server/GameTicking/Rules/Components/PiratesRuleComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.GameTicking.Rules.Components; [RegisterComponent, Access(typeof(PiratesRuleSystem))] -public sealed class PiratesRuleComponent : Component +public sealed partial class PiratesRuleComponent : Component { [ViewVariables] public List Pirates = new(); @@ -18,7 +18,7 @@ public sealed class PiratesRuleComponent : Component /// Path to antagonist alert sound. /// [DataField("pirateAlertSound")] - public readonly SoundSpecifier PirateAlertSound = new SoundPathSpecifier( + public SoundSpecifier PirateAlertSound = new SoundPathSpecifier( "/Audio/Ambience/Antag/pirate_start.ogg", AudioParams.Default.WithVolume(4)); } diff --git a/Content.Server/GameTicking/Rules/Components/SandboxRuleComponent.cs b/Content.Server/GameTicking/Rules/Components/SandboxRuleComponent.cs index 6f79b892c5..9ed7b4e529 100644 --- a/Content.Server/GameTicking/Rules/Components/SandboxRuleComponent.cs +++ b/Content.Server/GameTicking/Rules/Components/SandboxRuleComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.GameTicking.Rules.Components; [RegisterComponent, Access(typeof(SandboxRuleSystem))] -public sealed class SandboxRuleComponent : Component +public sealed partial class SandboxRuleComponent : Component { } diff --git a/Content.Server/GameTicking/Rules/Components/SecretRuleComponent.cs b/Content.Server/GameTicking/Rules/Components/SecretRuleComponent.cs index f6a67267a3..f2d21ee93c 100644 --- a/Content.Server/GameTicking/Rules/Components/SecretRuleComponent.cs +++ b/Content.Server/GameTicking/Rules/Components/SecretRuleComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.GameTicking.Rules.Components; [RegisterComponent, Access(typeof(SecretRuleSystem))] -public sealed class SecretRuleComponent : Component +public sealed partial class SecretRuleComponent : Component { /// /// The gamerules that get added by secret. diff --git a/Content.Server/GameTicking/Rules/Components/TraitorRuleComponent.cs b/Content.Server/GameTicking/Rules/Components/TraitorRuleComponent.cs index 844aa74f3d..8c010b17c3 100644 --- a/Content.Server/GameTicking/Rules/Components/TraitorRuleComponent.cs +++ b/Content.Server/GameTicking/Rules/Components/TraitorRuleComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.GameTicking.Rules.Components; [RegisterComponent, Access(typeof(TraitorRuleSystem))] -public sealed class TraitorRuleComponent : Component +public sealed partial class TraitorRuleComponent : Component { public List Traitors = new(); diff --git a/Content.Server/GameTicking/Rules/Components/ZombieRuleComponent.cs b/Content.Server/GameTicking/Rules/Components/ZombieRuleComponent.cs index 699c404b4c..bb708ece3e 100644 --- a/Content.Server/GameTicking/Rules/Components/ZombieRuleComponent.cs +++ b/Content.Server/GameTicking/Rules/Components/ZombieRuleComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.GameTicking.Rules.Components; [RegisterComponent, Access(typeof(ZombieRuleSystem))] -public sealed class ZombieRuleComponent : Component +public sealed partial class ZombieRuleComponent : Component { [DataField("initialInfectedNames")] public Dictionary InitialInfectedNames = new(); diff --git a/Content.Server/GameTicking/Rules/GameRulePrototype.cs b/Content.Server/GameTicking/Rules/GameRulePrototype.cs index c2b55822c8..d4872fdcad 100644 --- a/Content.Server/GameTicking/Rules/GameRulePrototype.cs +++ b/Content.Server/GameTicking/Rules/GameRulePrototype.cs @@ -7,9 +7,9 @@ namespace Content.Server.GameTicking.Rules; public sealed class GameRulePrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("config", required: true)] - public GameRuleConfiguration Configuration { get; } = default!; + public GameRuleConfiguration Configuration { get; private set; } = default!; } */ diff --git a/Content.Server/GameTicking/Rules/GameRuleSystem.cs b/Content.Server/GameTicking/Rules/GameRuleSystem.cs index 4f788e0052..e87660c2cc 100644 --- a/Content.Server/GameTicking/Rules/GameRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/GameRuleSystem.cs @@ -2,7 +2,7 @@ using Content.Server.GameTicking.Rules.Components; namespace Content.Server.GameTicking.Rules; -public abstract class GameRuleSystem : EntitySystem where T : Component +public abstract partial class GameRuleSystem : EntitySystem where T : Component { [Dependency] protected readonly GameTicker GameTicker = default!; diff --git a/Content.Server/Gateway/Components/GatewayComponent.cs b/Content.Server/Gateway/Components/GatewayComponent.cs index 4dda4ad2fc..bc1668b8a8 100644 --- a/Content.Server/Gateway/Components/GatewayComponent.cs +++ b/Content.Server/Gateway/Components/GatewayComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Gateway.Components; /// Controlling gateway that links to other gateway destinations on the server. /// [RegisterComponent, Access(typeof(GatewaySystem))] -public sealed class GatewayComponent : Component +public sealed partial class GatewayComponent : Component { /// /// Sound to play when opening or closing the portal. diff --git a/Content.Server/Gateway/Components/GatewayDestinationComponent.cs b/Content.Server/Gateway/Components/GatewayDestinationComponent.cs index 699c852900..50aff0b24a 100644 --- a/Content.Server/Gateway/Components/GatewayDestinationComponent.cs +++ b/Content.Server/Gateway/Components/GatewayDestinationComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Gateway.Components; /// A gateway destination linked to by station gateway(s). /// [RegisterComponent, Access(typeof(GatewaySystem))] -public sealed class GatewayDestinationComponent : Component +public sealed partial class GatewayDestinationComponent : Component { /// /// Whether this destination is shown in the gateway ui. diff --git a/Content.Server/Gatherable/Components/GatherableComponent.cs b/Content.Server/Gatherable/Components/GatherableComponent.cs index 53775a1124..f1d0c6ef74 100644 --- a/Content.Server/Gatherable/Components/GatherableComponent.cs +++ b/Content.Server/Gatherable/Components/GatherableComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Gatherable.Components; [RegisterComponent] [Access(typeof(GatherableSystem))] -public sealed class GatherableComponent : Component +public sealed partial class GatherableComponent : Component { /// /// Whitelist for specifying the kind of tools can be used on a resource diff --git a/Content.Server/Gatherable/Components/GatheringProjectileComponent.cs b/Content.Server/Gatherable/Components/GatheringProjectileComponent.cs index 0803ee1dde..2ac8eedcd1 100644 --- a/Content.Server/Gatherable/Components/GatheringProjectileComponent.cs +++ b/Content.Server/Gatherable/Components/GatheringProjectileComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Gatherable.Components; /// Destroys a gatherable entity when colliding with it. /// [RegisterComponent] -public sealed class GatheringProjectileComponent : Component +public sealed partial class GatheringProjectileComponent : Component { /// /// How many more times we can gather. diff --git a/Content.Server/Gatherable/Components/SoundOnGatherComponent.cs b/Content.Server/Gatherable/Components/SoundOnGatherComponent.cs index 8471275e03..f46eb281f8 100644 --- a/Content.Server/Gatherable/Components/SoundOnGatherComponent.cs +++ b/Content.Server/Gatherable/Components/SoundOnGatherComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Gatherable.Components; /// Plays the specified sound when this entity is gathered. /// [RegisterComponent, Access(typeof(GatherableSystem))] -public sealed class SoundOnGatherComponent : Component +public sealed partial class SoundOnGatherComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("sound")] public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Effects/break_stone.ogg") diff --git a/Content.Server/Ghost/Components/GhostComponent.cs b/Content.Server/Ghost/Components/GhostComponent.cs index 02f123d6a9..2a0026f4d7 100644 --- a/Content.Server/Ghost/Components/GhostComponent.cs +++ b/Content.Server/Ghost/Components/GhostComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Ghost.Components { [RegisterComponent] [ComponentReference(typeof(SharedGhostComponent))] - public sealed class GhostComponent : SharedGhostComponent + public sealed partial class GhostComponent : SharedGhostComponent { public TimeSpan TimeOfDeath { get; set; } = TimeSpan.Zero; @@ -29,5 +29,5 @@ namespace Content.Server.Ghost.Components }; } - public sealed class BooActionEvent : InstantActionEvent { } + public sealed partial class BooActionEvent : InstantActionEvent { } } diff --git a/Content.Server/Ghost/Components/GhostOnMoveComponent.cs b/Content.Server/Ghost/Components/GhostOnMoveComponent.cs index c4577d36c9..e3abc97688 100644 --- a/Content.Server/Ghost/Components/GhostOnMoveComponent.cs +++ b/Content.Server/Ghost/Components/GhostOnMoveComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Ghost.Components { [RegisterComponent] - public sealed class GhostOnMoveComponent : Component + public sealed partial class GhostOnMoveComponent : Component { [DataField("canReturn")] public bool CanReturn { get; set; } = true; diff --git a/Content.Server/Ghost/Roles/Components/GhostRoleComponent.cs b/Content.Server/Ghost/Roles/Components/GhostRoleComponent.cs index 330adbfe68..775156dc76 100644 --- a/Content.Server/Ghost/Roles/Components/GhostRoleComponent.cs +++ b/Content.Server/Ghost/Roles/Components/GhostRoleComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Ghost.Roles.Components { [RegisterComponent] [Access(typeof(GhostRoleSystem))] - public sealed class GhostRoleComponent : Component + public sealed partial class GhostRoleComponent : Component { [DataField("name")] private string _roleName = "Unknown"; diff --git a/Content.Server/Ghost/Roles/Components/GhostRoleMobSpawnerComponent.cs b/Content.Server/Ghost/Roles/Components/GhostRoleMobSpawnerComponent.cs index 39e22d96c1..4cdab6ce07 100644 --- a/Content.Server/Ghost/Roles/Components/GhostRoleMobSpawnerComponent.cs +++ b/Content.Server/Ghost/Roles/Components/GhostRoleMobSpawnerComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Ghost.Roles.Components /// [RegisterComponent] [Access(typeof(GhostRoleSystem))] - public sealed class GhostRoleMobSpawnerComponent : Component + public sealed partial class GhostRoleMobSpawnerComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("deleteOnSpawn")] public bool DeleteOnSpawn = true; diff --git a/Content.Server/Ghost/Roles/Components/GhostTakeoverAvailableComponent.cs b/Content.Server/Ghost/Roles/Components/GhostTakeoverAvailableComponent.cs index 44c09f3a67..4422cbbb5e 100644 --- a/Content.Server/Ghost/Roles/Components/GhostTakeoverAvailableComponent.cs +++ b/Content.Server/Ghost/Roles/Components/GhostTakeoverAvailableComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Ghost.Roles.Components /// [RegisterComponent] [Access(typeof(GhostRoleSystem))] - public sealed class GhostTakeoverAvailableComponent : Component + public sealed partial class GhostTakeoverAvailableComponent : Component { } } diff --git a/Content.Server/Ghost/Roles/Components/ToggleableGhostRoleComponent.cs b/Content.Server/Ghost/Roles/Components/ToggleableGhostRoleComponent.cs index 8af0886d92..fc10d55069 100644 --- a/Content.Server/Ghost/Roles/Components/ToggleableGhostRoleComponent.cs +++ b/Content.Server/Ghost/Roles/Components/ToggleableGhostRoleComponent.cs @@ -4,7 +4,7 @@ /// This is used for a ghost role which can be toggled on and off at will, like a PAI. /// [RegisterComponent, Access(typeof(ToggleableGhostRoleSystem))] -public sealed class ToggleableGhostRoleComponent : Component +public sealed partial class ToggleableGhostRoleComponent : Component { [DataField("examineTextMindPresent")] public string ExamineTextMindPresent = string.Empty; diff --git a/Content.Server/GhostKick/GhostKickUserOnTriggerComponent.cs b/Content.Server/GhostKick/GhostKickUserOnTriggerComponent.cs index dcbf72deb8..11fb0156a4 100644 --- a/Content.Server/GhostKick/GhostKickUserOnTriggerComponent.cs +++ b/Content.Server/GhostKick/GhostKickUserOnTriggerComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.GhostKick; [RegisterComponent] -public sealed class GhostKickUserOnTriggerComponent : Component +public sealed partial class GhostKickUserOnTriggerComponent : Component { } diff --git a/Content.Server/Gravity/GravityGeneratorComponent.cs b/Content.Server/Gravity/GravityGeneratorComponent.cs index 511fd49bdd..4168de43df 100644 --- a/Content.Server/Gravity/GravityGeneratorComponent.cs +++ b/Content.Server/Gravity/GravityGeneratorComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Gravity { [RegisterComponent] [Access(typeof(GravityGeneratorSystem))] - public sealed class GravityGeneratorComponent : SharedGravityGeneratorComponent + public sealed partial class GravityGeneratorComponent : SharedGravityGeneratorComponent { // 1% charge per second. [ViewVariables(VVAccess.ReadWrite)] [DataField("chargeRate")] public float ChargeRate { get; set; } = 0.01f; diff --git a/Content.Server/Guardian/CanHostGuardianComponent.cs b/Content.Server/Guardian/CanHostGuardianComponent.cs index 9229760226..543a263d85 100644 --- a/Content.Server/Guardian/CanHostGuardianComponent.cs +++ b/Content.Server/Guardian/CanHostGuardianComponent.cs @@ -1,6 +1,6 @@ namespace Content.Server.Guardian; [RegisterComponent] -public sealed class CanHostGuardianComponent : Component +public sealed partial class CanHostGuardianComponent : Component { } diff --git a/Content.Server/Guardian/GuardianComponent.cs b/Content.Server/Guardian/GuardianComponent.cs index 426642f517..dcb9a8c054 100644 --- a/Content.Server/Guardian/GuardianComponent.cs +++ b/Content.Server/Guardian/GuardianComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Guardian /// Given to guardians to monitor their link with the host /// [RegisterComponent] - public sealed class GuardianComponent : Component + public sealed partial class GuardianComponent : Component { /// /// The guardian host entity diff --git a/Content.Server/Guardian/GuardianCreatorComponent.cs b/Content.Server/Guardian/GuardianCreatorComponent.cs index 7729348453..dfe801f290 100644 --- a/Content.Server/Guardian/GuardianCreatorComponent.cs +++ b/Content.Server/Guardian/GuardianCreatorComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Guardian /// Creates a GuardianComponent attached to the user's GuardianHost. /// [RegisterComponent] - public sealed class GuardianCreatorComponent : Component + public sealed partial class GuardianCreatorComponent : Component { /// /// Counts as spent upon exhausting the injection diff --git a/Content.Server/Guardian/GuardianHostComponent.cs b/Content.Server/Guardian/GuardianHostComponent.cs index e317f59be8..e924bed776 100644 --- a/Content.Server/Guardian/GuardianHostComponent.cs +++ b/Content.Server/Guardian/GuardianHostComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Guardian /// Given to guardian users upon establishing a guardian link with the entity /// [RegisterComponent] - public sealed class GuardianHostComponent : Component + public sealed partial class GuardianHostComponent : Component { /// /// Guardian hosted within the component @@ -36,5 +36,5 @@ namespace Content.Server.Guardian }; } - public sealed class GuardianToggleActionEvent : InstantActionEvent { }; + public sealed partial class GuardianToggleActionEvent : InstantActionEvent { }; } diff --git a/Content.Server/HealthExaminable/HealthExaminableComponent.cs b/Content.Server/HealthExaminable/HealthExaminableComponent.cs index 1f3dcb512b..3f434a93cf 100644 --- a/Content.Server/HealthExaminable/HealthExaminableComponent.cs +++ b/Content.Server/HealthExaminable/HealthExaminableComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.HealthExaminable; [RegisterComponent, Access(typeof(HealthExaminableSystem))] -public sealed class HealthExaminableComponent : Component +public sealed partial class HealthExaminableComponent : Component { public List Thresholds = new() { FixedPoint2.New(10), FixedPoint2.New(25), FixedPoint2.New(50), FixedPoint2.New(75) }; diff --git a/Content.Server/Holiday/Christmas/LimitedItemGiverComponent.cs b/Content.Server/Holiday/Christmas/LimitedItemGiverComponent.cs index 119987c8cf..befcfc1e13 100644 --- a/Content.Server/Holiday/Christmas/LimitedItemGiverComponent.cs +++ b/Content.Server/Holiday/Christmas/LimitedItemGiverComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Holiday.Christmas; /// This is used for granting items to lucky souls, exactly once. /// [RegisterComponent, Access(typeof(LimitedItemGiverSystem))] -public sealed class LimitedItemGiverComponent : Component +public sealed partial class LimitedItemGiverComponent : Component { /// /// Santa knows who you are behind the screen, only one gift per player per round! diff --git a/Content.Server/Holiday/Christmas/RandomGiftComponent.cs b/Content.Server/Holiday/Christmas/RandomGiftComponent.cs index e76f1ee9c4..d67f413338 100644 --- a/Content.Server/Holiday/Christmas/RandomGiftComponent.cs +++ b/Content.Server/Holiday/Christmas/RandomGiftComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Holiday.Christmas; /// This is used for gifts with COMPLETELY random things. /// [RegisterComponent, Access(typeof(RandomGiftSystem))] -public sealed class RandomGiftComponent : Component +public sealed partial class RandomGiftComponent : Component { /// /// The wrapper entity to spawn when unwrapping the gift. diff --git a/Content.Server/Holiday/Christmas/SantaComponent.cs b/Content.Server/Holiday/Christmas/SantaComponent.cs index 3769803f93..a0ce54b66d 100644 --- a/Content.Server/Holiday/Christmas/SantaComponent.cs +++ b/Content.Server/Holiday/Christmas/SantaComponent.cs @@ -4,7 +4,7 @@ /// This is used as a marker component, allows them to see gift contents. /// [RegisterComponent] -public sealed class SantaComponent : Component +public sealed partial class SantaComponent : Component { } diff --git a/Content.Server/Holiday/Greet/Custom.cs b/Content.Server/Holiday/Greet/Custom.cs index c0db91e813..1a038fcdf7 100644 --- a/Content.Server/Holiday/Greet/Custom.cs +++ b/Content.Server/Holiday/Greet/Custom.cs @@ -5,7 +5,7 @@ namespace Content.Server.Holiday.Greet { [UsedImplicitly] [DataDefinition] - public sealed class Custom : IHolidayGreet + public sealed partial class Custom : IHolidayGreet { [DataField("text")] private string _greet = string.Empty; diff --git a/Content.Server/Holiday/Greet/DefaultHolidayGreet.cs b/Content.Server/Holiday/Greet/DefaultHolidayGreet.cs index f4bf2fbb20..dcd85318a7 100644 --- a/Content.Server/Holiday/Greet/DefaultHolidayGreet.cs +++ b/Content.Server/Holiday/Greet/DefaultHolidayGreet.cs @@ -3,7 +3,7 @@ using Content.Server.Holiday.Interfaces; namespace Content.Server.Holiday.Greet { [DataDefinition] - public sealed class DefaultHolidayGreet : IHolidayGreet + public sealed partial class DefaultHolidayGreet : IHolidayGreet { public string Greet(HolidayPrototype holiday) { diff --git a/Content.Server/Holiday/HolidayPrototype.cs b/Content.Server/Holiday/HolidayPrototype.cs index 6a3d9770c7..20414ad939 100644 --- a/Content.Server/Holiday/HolidayPrototype.cs +++ b/Content.Server/Holiday/HolidayPrototype.cs @@ -12,7 +12,7 @@ namespace Content.Server.Holiday [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("beginDay")] public byte BeginDay { get; set; } = 1; @@ -33,13 +33,13 @@ namespace Content.Server.Holiday public Month EndMonth { get; set; } = Month.Invalid; [DataField("shouldCelebrate")] - private readonly IHolidayShouldCelebrate _shouldCelebrate = new DefaultHolidayShouldCelebrate(); + private IHolidayShouldCelebrate _shouldCelebrate = new DefaultHolidayShouldCelebrate(); [DataField("greet")] - private readonly IHolidayGreet _greet = new DefaultHolidayGreet(); + private IHolidayGreet _greet = new DefaultHolidayGreet(); [DataField("celebrate")] - private readonly IHolidayCelebrate? _celebrate = null; + private IHolidayCelebrate? _celebrate = null; public bool ShouldCelebrate(DateTime date) { diff --git a/Content.Server/Holiday/Interfaces/IHolidayShouldCelebrate.cs b/Content.Server/Holiday/Interfaces/IHolidayShouldCelebrate.cs index c2414632b8..611c1bbf04 100644 --- a/Content.Server/Holiday/Interfaces/IHolidayShouldCelebrate.cs +++ b/Content.Server/Holiday/Interfaces/IHolidayShouldCelebrate.cs @@ -1,7 +1,7 @@ namespace Content.Server.Holiday.Interfaces { [ImplicitDataDefinitionForInheritors] - public interface IHolidayShouldCelebrate + public partial interface IHolidayShouldCelebrate { bool ShouldCelebrate(DateTime date, HolidayPrototype holiday); } diff --git a/Content.Server/Holiday/ShouldCelebrate/ChineseNewYear.cs b/Content.Server/Holiday/ShouldCelebrate/ChineseNewYear.cs index c4b8a4eaa4..2ccc83953b 100644 --- a/Content.Server/Holiday/ShouldCelebrate/ChineseNewYear.cs +++ b/Content.Server/Holiday/ShouldCelebrate/ChineseNewYear.cs @@ -3,7 +3,7 @@ using Content.Server.Holiday.Interfaces; namespace Content.Server.Holiday.ShouldCelebrate { - public sealed class ChineseNewYear : IHolidayShouldCelebrate + public sealed partial class ChineseNewYear : IHolidayShouldCelebrate { public bool ShouldCelebrate(DateTime date, HolidayPrototype holiday) { diff --git a/Content.Server/Holiday/ShouldCelebrate/Computus.cs b/Content.Server/Holiday/ShouldCelebrate/Computus.cs index ff5fa777e0..ec707d46ea 100644 --- a/Content.Server/Holiday/ShouldCelebrate/Computus.cs +++ b/Content.Server/Holiday/ShouldCelebrate/Computus.cs @@ -8,7 +8,7 @@ namespace Content.Server.Holiday.ShouldCelebrate /// [UsedImplicitly] [DataDefinition] - public sealed class Computus : DefaultHolidayShouldCelebrate + public sealed partial class Computus : DefaultHolidayShouldCelebrate { [DataField("daysEarly")] private byte _daysEarly = 1; diff --git a/Content.Server/Holiday/ShouldCelebrate/DayOfYear.cs b/Content.Server/Holiday/ShouldCelebrate/DayOfYear.cs index 2d777182d1..30b321d69b 100644 --- a/Content.Server/Holiday/ShouldCelebrate/DayOfYear.cs +++ b/Content.Server/Holiday/ShouldCelebrate/DayOfYear.cs @@ -8,7 +8,7 @@ namespace Content.Server.Holiday.ShouldCelebrate /// [UsedImplicitly] [DataDefinition] - public sealed class DayOfYear : IHolidayShouldCelebrate + public sealed partial class DayOfYear : IHolidayShouldCelebrate { [DataField("dayOfYear")] private uint _dayOfYear = 1; diff --git a/Content.Server/Holiday/ShouldCelebrate/DefaultHolidayShouldCelebrate.cs b/Content.Server/Holiday/ShouldCelebrate/DefaultHolidayShouldCelebrate.cs index 342189df66..237bb71e74 100644 --- a/Content.Server/Holiday/ShouldCelebrate/DefaultHolidayShouldCelebrate.cs +++ b/Content.Server/Holiday/ShouldCelebrate/DefaultHolidayShouldCelebrate.cs @@ -3,7 +3,7 @@ using Content.Server.Holiday.Interfaces; namespace Content.Server.Holiday.ShouldCelebrate { [Virtual, DataDefinition] - public class DefaultHolidayShouldCelebrate : IHolidayShouldCelebrate + public partial class DefaultHolidayShouldCelebrate : IHolidayShouldCelebrate { public virtual bool ShouldCelebrate(DateTime date, HolidayPrototype holiday) { diff --git a/Content.Server/Holiday/ShouldCelebrate/FridayThirteenth.cs b/Content.Server/Holiday/ShouldCelebrate/FridayThirteenth.cs index c06202344e..8f4a9341dd 100644 --- a/Content.Server/Holiday/ShouldCelebrate/FridayThirteenth.cs +++ b/Content.Server/Holiday/ShouldCelebrate/FridayThirteenth.cs @@ -7,7 +7,7 @@ namespace Content.Server.Holiday.ShouldCelebrate /// For Friday the 13th. Spooky! /// [UsedImplicitly] - public sealed class FridayThirteenth : IHolidayShouldCelebrate + public sealed partial class FridayThirteenth : IHolidayShouldCelebrate { public bool ShouldCelebrate(DateTime date, HolidayPrototype holiday) { diff --git a/Content.Server/Holiday/ShouldCelebrate/WeekdayInMonth.cs b/Content.Server/Holiday/ShouldCelebrate/WeekdayInMonth.cs index 052054b839..3d626079e6 100644 --- a/Content.Server/Holiday/ShouldCelebrate/WeekdayInMonth.cs +++ b/Content.Server/Holiday/ShouldCelebrate/WeekdayInMonth.cs @@ -7,7 +7,7 @@ namespace Content.Server.Holiday.ShouldCelebrate /// For a holiday that happens the first instance of a weekday on a month. /// [UsedImplicitly] - public sealed class WeekdayInMonth : DefaultHolidayShouldCelebrate + public sealed partial class WeekdayInMonth : DefaultHolidayShouldCelebrate { [DataField("weekday")] private DayOfWeek _weekday = DayOfWeek.Monday; diff --git a/Content.Server/Holosign/HolosignProjectorComponent.cs b/Content.Server/Holosign/HolosignProjectorComponent.cs index be7c712c11..b1d2456221 100644 --- a/Content.Server/Holosign/HolosignProjectorComponent.cs +++ b/Content.Server/Holosign/HolosignProjectorComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Holosign { [RegisterComponent] - public sealed class HolosignProjectorComponent : Component + public sealed partial class HolosignProjectorComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("signProto", customTypeSerializer:typeof(PrototypeIdSerializer))] diff --git a/Content.Server/Humanoid/Components/RandomHumanoidAppearanceComponent.cs b/Content.Server/Humanoid/Components/RandomHumanoidAppearanceComponent.cs index 2d10a4ae14..5a0f6fcef1 100644 --- a/Content.Server/Humanoid/Components/RandomHumanoidAppearanceComponent.cs +++ b/Content.Server/Humanoid/Components/RandomHumanoidAppearanceComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.CharacterAppearance.Components; [RegisterComponent] -public sealed class RandomHumanoidAppearanceComponent : Component +public sealed partial class RandomHumanoidAppearanceComponent : Component { [DataField("randomizeName")] public bool RandomizeName = true; } diff --git a/Content.Server/Humanoid/Components/RandomHumanoidSpawnerComponent.cs b/Content.Server/Humanoid/Components/RandomHumanoidSpawnerComponent.cs index 7abfe096e8..f3b064c132 100644 --- a/Content.Server/Humanoid/Components/RandomHumanoidSpawnerComponent.cs +++ b/Content.Server/Humanoid/Components/RandomHumanoidSpawnerComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Humanoid.Components; /// humanoid ingame. /// [RegisterComponent] -public sealed class RandomHumanoidSpawnerComponent : Component +public sealed partial class RandomHumanoidSpawnerComponent : Component { [DataField("settings", customTypeSerializer: typeof(PrototypeIdSerializer))] public string SettingsPrototypeId = default!; diff --git a/Content.Server/IgnitionSource/IgnitionSourceComponent.cs b/Content.Server/IgnitionSource/IgnitionSourceComponent.cs index 2251013cbe..d5a53c6ddb 100644 --- a/Content.Server/IgnitionSource/IgnitionSourceComponent.cs +++ b/Content.Server/IgnitionSource/IgnitionSourceComponent.cs @@ -5,7 +5,7 @@ /// [RegisterComponent] [Access(typeof(IgnitionSourceSystem))] -public sealed class IgnitionSourceComponent : Component +public sealed partial class IgnitionSourceComponent : Component { [DataField("ignited")] public bool Ignited = false; diff --git a/Content.Server/ImmovableRod/ImmovableRodComponent.cs b/Content.Server/ImmovableRod/ImmovableRodComponent.cs index 5ef5b0e7c7..75b82d117a 100644 --- a/Content.Server/ImmovableRod/ImmovableRodComponent.cs +++ b/Content.Server/ImmovableRod/ImmovableRodComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Audio; namespace Content.Server.ImmovableRod; [RegisterComponent] -public sealed class ImmovableRodComponent : Component +public sealed partial class ImmovableRodComponent : Component { public int MobCount = 0; diff --git a/Content.Server/Instruments/InstrumentComponent.cs b/Content.Server/Instruments/InstrumentComponent.cs index fb56925095..e133025576 100644 --- a/Content.Server/Instruments/InstrumentComponent.cs +++ b/Content.Server/Instruments/InstrumentComponent.cs @@ -6,7 +6,7 @@ using Robust.Server.Player; namespace Content.Server.Instruments; [RegisterComponent, ComponentReference(typeof(SharedInstrumentComponent))] -public sealed class InstrumentComponent : SharedInstrumentComponent +public sealed partial class InstrumentComponent : SharedInstrumentComponent { [Dependency] private readonly IEntityManager _entMan = default!; @@ -25,6 +25,6 @@ public sealed class InstrumentComponent : SharedInstrumentComponent } [RegisterComponent] -public sealed class ActiveInstrumentComponent : Component +public sealed partial class ActiveInstrumentComponent : Component { } diff --git a/Content.Server/Instruments/SwappableInstrumentComponent.cs b/Content.Server/Instruments/SwappableInstrumentComponent.cs index bfe8b5c3a6..f8b2b97a10 100644 --- a/Content.Server/Instruments/SwappableInstrumentComponent.cs +++ b/Content.Server/Instruments/SwappableInstrumentComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Instruments; [RegisterComponent] -public sealed class SwappableInstrumentComponent : Component +public sealed partial class SwappableInstrumentComponent : Component { /// /// Used to store the different instruments that can be swapped between. diff --git a/Content.Server/Interaction/Components/InteractionPopupComponent.cs b/Content.Server/Interaction/Components/InteractionPopupComponent.cs index 0ebc9fe4f7..eef29506b2 100644 --- a/Content.Server/Interaction/Components/InteractionPopupComponent.cs +++ b/Content.Server/Interaction/Components/InteractionPopupComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Audio; namespace Content.Server.Interaction.Components; [RegisterComponent, Access(typeof(InteractionPopupSystem))] -public sealed class InteractionPopupComponent : Component +public sealed partial class InteractionPopupComponent : Component { /// /// Time delay between interactions to avoid spam. diff --git a/Content.Server/Jobs/AddComponentSpecial.cs b/Content.Server/Jobs/AddComponentSpecial.cs index ce2907efc5..1b183c5c3f 100644 --- a/Content.Server/Jobs/AddComponentSpecial.cs +++ b/Content.Server/Jobs/AddComponentSpecial.cs @@ -6,12 +6,11 @@ using Robust.Shared.Serialization.Manager; namespace Content.Server.Jobs { [UsedImplicitly] - public sealed class AddComponentSpecial : JobSpecial + public sealed partial class AddComponentSpecial : JobSpecial { - [DataField("components")] [AlwaysPushInheritance] - public ComponentRegistry Components { get; } = new(); + public ComponentRegistry Components { get; private set; } = new(); public override void AfterEquip(EntityUid mob) { diff --git a/Content.Server/Jobs/AddImplantSpecial.cs b/Content.Server/Jobs/AddImplantSpecial.cs index c1ec09edae..8eb554cc7c 100644 --- a/Content.Server/Jobs/AddImplantSpecial.cs +++ b/Content.Server/Jobs/AddImplantSpecial.cs @@ -11,11 +11,11 @@ namespace Content.Server.Jobs; /// Adds implants on spawn to the entity /// [UsedImplicitly] -public sealed class AddImplantSpecial : JobSpecial +public sealed partial class AddImplantSpecial : JobSpecial { [DataField("implants", customTypeSerializer: typeof(PrototypeIdHashSetSerializer))] - public HashSet Implants { get; } = new(); + public HashSet Implants { get; private set; } = new(); public override void AfterEquip(EntityUid mob) { diff --git a/Content.Server/Jobs/GiveItemOnHolidaySpecial.cs b/Content.Server/Jobs/GiveItemOnHolidaySpecial.cs index 0b5a65bca9..eb767a32a5 100644 --- a/Content.Server/Jobs/GiveItemOnHolidaySpecial.cs +++ b/Content.Server/Jobs/GiveItemOnHolidaySpecial.cs @@ -9,13 +9,13 @@ namespace Content.Server.Jobs { [UsedImplicitly] [DataDefinition] - public sealed class GiveItemOnHolidaySpecial : JobSpecial + public sealed partial class GiveItemOnHolidaySpecial : JobSpecial { [DataField("holiday", customTypeSerializer:typeof(PrototypeIdSerializer))] - public string Holiday { get; } = string.Empty; + public string Holiday { get; private set; } = string.Empty; [DataField("prototype", customTypeSerializer:typeof(PrototypeIdSerializer))] - public string Prototype { get; } = string.Empty; + public string Prototype { get; private set; } = string.Empty; public override void AfterEquip(EntityUid mob) { diff --git a/Content.Server/Kitchen/Components/ActiveMicrowaveComponent.cs b/Content.Server/Kitchen/Components/ActiveMicrowaveComponent.cs index e8cfe86ab3..da8a35a695 100644 --- a/Content.Server/Kitchen/Components/ActiveMicrowaveComponent.cs +++ b/Content.Server/Kitchen/Components/ActiveMicrowaveComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Kitchen.Components; /// Attached to a microwave that is currently in the process of cooking /// [RegisterComponent] -public sealed class ActiveMicrowaveComponent : Component +public sealed partial class ActiveMicrowaveComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public float CookTimeRemaining; diff --git a/Content.Server/Kitchen/Components/ExtractableComponent.cs b/Content.Server/Kitchen/Components/ExtractableComponent.cs index 6c68059428..a1949b87b3 100644 --- a/Content.Server/Kitchen/Components/ExtractableComponent.cs +++ b/Content.Server/Kitchen/Components/ExtractableComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Kitchen.Components /// [RegisterComponent] [Access(typeof(ReagentGrinderSystem))] - public sealed class ExtractableComponent : Component + public sealed partial class ExtractableComponent : Component { [DataField("juiceSolution")] public Solution? JuiceSolution; diff --git a/Content.Server/Kitchen/Components/MicrowaveComponent.cs b/Content.Server/Kitchen/Components/MicrowaveComponent.cs index 11b2568050..538a069d16 100644 --- a/Content.Server/Kitchen/Components/MicrowaveComponent.cs +++ b/Content.Server/Kitchen/Components/MicrowaveComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Kitchen.Components { [RegisterComponent] - public sealed class MicrowaveComponent : Component + public sealed partial class MicrowaveComponent : Component { [DataField("cookTimeMultiplier"), ViewVariables(VVAccess.ReadWrite)] public float CookTimeMultiplier = 1; diff --git a/Content.Server/Kitchen/Components/ReagentGrinderComponent.cs b/Content.Server/Kitchen/Components/ReagentGrinderComponent.cs index 3793cecd4f..4b53049086 100644 --- a/Content.Server/Kitchen/Components/ReagentGrinderComponent.cs +++ b/Content.Server/Kitchen/Components/ReagentGrinderComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Kitchen.Components /// it contained, juice an apple and get "apple juice". /// [Access(typeof(ReagentGrinderSystem)), RegisterComponent] - public sealed class ReagentGrinderComponent : Component + public sealed partial class ReagentGrinderComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public int StorageMaxEntities = 6; @@ -52,7 +52,7 @@ namespace Content.Server.Kitchen.Components } [Access(typeof(ReagentGrinderSystem)), RegisterComponent] - public sealed class ActiveReagentGrinderComponent : Component + public sealed partial class ActiveReagentGrinderComponent : Component { /// /// Remaining time until the grinder finishes grinding/juicing. diff --git a/Content.Server/Kitchen/Components/SharpComponent.cs b/Content.Server/Kitchen/Components/SharpComponent.cs index abe9d3074d..c67c3b8a4d 100644 --- a/Content.Server/Kitchen/Components/SharpComponent.cs +++ b/Content.Server/Kitchen/Components/SharpComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Kitchen.Components; /// are otherwise sharp for some purpose. /// [RegisterComponent] -public sealed class SharpComponent : Component +public sealed partial class SharpComponent : Component { // TODO just make this a tool type. public HashSet Butchering = new(); diff --git a/Content.Server/Labels/Label/Components/HandLabelerComponent.cs b/Content.Server/Labels/Label/Components/HandLabelerComponent.cs index b0e9496a1d..6c96cada9e 100644 --- a/Content.Server/Labels/Label/Components/HandLabelerComponent.cs +++ b/Content.Server/Labels/Label/Components/HandLabelerComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Whitelist; namespace Content.Server.Labels.Components { [RegisterComponent] - public sealed class HandLabelerComponent : Component + public sealed partial class HandLabelerComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("assignedLabel")] diff --git a/Content.Server/Labels/Label/Components/LabelComponent.cs b/Content.Server/Labels/Label/Components/LabelComponent.cs index 272baaa145..d697d6260a 100644 --- a/Content.Server/Labels/Label/Components/LabelComponent.cs +++ b/Content.Server/Labels/Label/Components/LabelComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Labels.Components /// Makes entities have a label in their name. Labels are normally given by /// [RegisterComponent] - public sealed class LabelComponent : Component + public sealed partial class LabelComponent : Component { /// /// The actual text in the label diff --git a/Content.Server/Labels/Label/Components/PaperLabelComponent.cs b/Content.Server/Labels/Label/Components/PaperLabelComponent.cs index d3685a0bcf..5dead98084 100644 --- a/Content.Server/Labels/Label/Components/PaperLabelComponent.cs +++ b/Content.Server/Labels/Label/Components/PaperLabelComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Labels.Components /// This component allows you to attach and remove a piece of paper to an entity. /// [RegisterComponent] - public sealed class PaperLabelComponent : Component + public sealed partial class PaperLabelComponent : Component { [DataField("labelSlot")] public ItemSlot LabelSlot = new(); diff --git a/Content.Server/LandMines/LandMineComponent.cs b/Content.Server/LandMines/LandMineComponent.cs index b2cc775474..63e1e4b99f 100644 --- a/Content.Server/LandMines/LandMineComponent.cs +++ b/Content.Server/LandMines/LandMineComponent.cs @@ -1,6 +1,6 @@ namespace Content.Server.LandMines; [RegisterComponent] -public sealed class LandMineComponent : Component +public sealed partial class LandMineComponent : Component { } diff --git a/Content.Server/Lathe/Components/LatheProducingComponent.cs b/Content.Server/Lathe/Components/LatheProducingComponent.cs index e991dc4248..e60e8eeb52 100644 --- a/Content.Server/Lathe/Components/LatheProducingComponent.cs +++ b/Content.Server/Lathe/Components/LatheProducingComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Lathe.Components; /// For EntityQuery to keep track of which lathes are producing /// [RegisterComponent] -public sealed class LatheProducingComponent : Component +public sealed partial class LatheProducingComponent : Component { /// /// The time at which production began diff --git a/Content.Server/Light/Components/ActiveEmergencyLightComponent.cs b/Content.Server/Light/Components/ActiveEmergencyLightComponent.cs index 964e0d8b1d..cb5a932595 100644 --- a/Content.Server/Light/Components/ActiveEmergencyLightComponent.cs +++ b/Content.Server/Light/Components/ActiveEmergencyLightComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Light.Components; [RegisterComponent] -public sealed class ActiveEmergencyLightComponent : Component +public sealed partial class ActiveEmergencyLightComponent : Component { } diff --git a/Content.Server/Light/Components/EmergencyLightComponent.cs b/Content.Server/Light/Components/EmergencyLightComponent.cs index 3d55b5c559..c86167983b 100644 --- a/Content.Server/Light/Components/EmergencyLightComponent.cs +++ b/Content.Server/Light/Components/EmergencyLightComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Light.Components /// Component that represents an emergency light, it has an internal battery that charges when the power is on. /// [RegisterComponent, Access(typeof(EmergencyLightSystem))] - public sealed class EmergencyLightComponent : SharedEmergencyLightComponent + public sealed partial class EmergencyLightComponent : SharedEmergencyLightComponent { [ViewVariables] public EmergencyLightState State; diff --git a/Content.Server/Light/Components/ExpendableLightComponent.cs b/Content.Server/Light/Components/ExpendableLightComponent.cs index 2b5cb7553c..49c42a718e 100644 --- a/Content.Server/Light/Components/ExpendableLightComponent.cs +++ b/Content.Server/Light/Components/ExpendableLightComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Light.Components /// Component that represents a handheld expendable light which can be activated and eventually dies over time. /// [RegisterComponent] - public sealed class ExpendableLightComponent : SharedExpendableLightComponent + public sealed partial class ExpendableLightComponent : SharedExpendableLightComponent { /// /// Status of light, whether or not it is emitting light. diff --git a/Content.Server/Light/Components/LightBehaviourComponent.cs b/Content.Server/Light/Components/LightBehaviourComponent.cs index 86852bedf6..5698975ea7 100644 --- a/Content.Server/Light/Components/LightBehaviourComponent.cs +++ b/Content.Server/Light/Components/LightBehaviourComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Light.Components /// A component which applies a specific behaviour to a PointLightComponent on its owner. /// [RegisterComponent] - public sealed class LightBehaviourComponent : SharedLightBehaviourComponent + public sealed partial class LightBehaviourComponent : SharedLightBehaviourComponent { } diff --git a/Content.Server/Light/Components/LightReplacerComponent.cs b/Content.Server/Light/Components/LightReplacerComponent.cs index 49c4523b86..cecdba6b47 100644 --- a/Content.Server/Light/Components/LightReplacerComponent.cs +++ b/Content.Server/Light/Components/LightReplacerComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Light.Components; /// Can be reloaded by new light tubes or light bulbs /// [RegisterComponent, Access(typeof(LightReplacerSystem))] -public sealed class LightReplacerComponent : Component +public sealed partial class LightReplacerComponent : Component { [DataField("sound")] public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Weapons/click.ogg") diff --git a/Content.Server/Light/Components/LitOnPoweredComponent.cs b/Content.Server/Light/Components/LitOnPoweredComponent.cs index d456f705c9..c744b0b91f 100644 --- a/Content.Server/Light/Components/LitOnPoweredComponent.cs +++ b/Content.Server/Light/Components/LitOnPoweredComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Light.Components /// state of an entity. /// [RegisterComponent, Access(typeof(PoweredLightSystem))] - public sealed class LitOnPoweredComponent : Component + public sealed partial class LitOnPoweredComponent : Component { } } diff --git a/Content.Server/Light/Components/MatchboxComponent.cs b/Content.Server/Light/Components/MatchboxComponent.cs index 8cb57c793c..12cd4e3880 100644 --- a/Content.Server/Light/Components/MatchboxComponent.cs +++ b/Content.Server/Light/Components/MatchboxComponent.cs @@ -3,7 +3,7 @@ // TODO make changes in icons when different threshold reached // e.g. different icons for 10% 50% 100% [RegisterComponent] - public sealed class MatchboxComponent : Component + public sealed partial class MatchboxComponent : Component { } } diff --git a/Content.Server/Light/Components/MatchstickComponent.cs b/Content.Server/Light/Components/MatchstickComponent.cs index 4837c147c4..3c47f4c18b 100644 --- a/Content.Server/Light/Components/MatchstickComponent.cs +++ b/Content.Server/Light/Components/MatchstickComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Light.Components { [RegisterComponent] [Access(typeof(MatchstickSystem))] - public sealed class MatchstickComponent : Component + public sealed partial class MatchstickComponent : Component { /// /// Current state to matchstick. Can be Unlit, Lit or Burnt. diff --git a/Content.Server/Light/Components/PoweredLightComponent.cs b/Content.Server/Light/Components/PoweredLightComponent.cs index 676aa38223..1985042c2a 100644 --- a/Content.Server/Light/Components/PoweredLightComponent.cs +++ b/Content.Server/Light/Components/PoweredLightComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Light.Components /// Component that represents a wall light. It has a light bulb that can be replaced when broken. /// [RegisterComponent, Access(typeof(PoweredLightSystem))] - public sealed class PoweredLightComponent : Component + public sealed partial class PoweredLightComponent : Component { [DataField("burnHandSound")] public SoundSpecifier BurnHandSound = new SoundPathSpecifier("/Audio/Effects/lightburn.ogg"); diff --git a/Content.Server/Lightning/Components/LightningComponent.cs b/Content.Server/Lightning/Components/LightningComponent.cs index 598d4112a5..138d7010d4 100644 --- a/Content.Server/Lightning/Components/LightningComponent.cs +++ b/Content.Server/Lightning/Components/LightningComponent.cs @@ -2,7 +2,7 @@ namespace Content.Server.Lightning.Components; [RegisterComponent] -public sealed class LightningComponent : SharedLightningComponent +public sealed partial class LightningComponent : SharedLightningComponent { } diff --git a/Content.Server/Magic/Components/SpellbookComponent.cs b/Content.Server/Magic/Components/SpellbookComponent.cs index db6c717061..1f2d12183c 100644 --- a/Content.Server/Magic/Components/SpellbookComponent.cs +++ b/Content.Server/Magic/Components/SpellbookComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Magic.Components; /// Spellbooks for having an entity learn spells as long as they've read the book and it's in their hand. /// [RegisterComponent] -public sealed class SpellbookComponent : Component +public sealed partial class SpellbookComponent : Component { /// /// List of spells that this book has. This is a combination of the WorldSpells, EntitySpells, and InstantSpells. @@ -20,15 +20,15 @@ public sealed class SpellbookComponent : Component /// [DataField("worldSpells", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] [ViewVariables(VVAccess.ReadWrite)] - public readonly Dictionary WorldSpells = new(); + public Dictionary WorldSpells = new(); [DataField("entitySpells", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] [ViewVariables(VVAccess.ReadWrite)] - public readonly Dictionary EntitySpells = new(); + public Dictionary EntitySpells = new(); [DataField("instantSpells", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] [ViewVariables(VVAccess.ReadWrite)] - public readonly Dictionary InstantSpells = new(); + public Dictionary InstantSpells = new(); [DataField("learnTime")] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Magic/Events/ChangeComponentsSpellEvent.cs b/Content.Server/Magic/Events/ChangeComponentsSpellEvent.cs index 2597a3eca9..df8c25f801 100644 --- a/Content.Server/Magic/Events/ChangeComponentsSpellEvent.cs +++ b/Content.Server/Magic/Events/ChangeComponentsSpellEvent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Magic.Events; /// /// Spell that uses the magic of ECS to add & remove components. Components are first removed, then added. /// -public sealed class ChangeComponentsSpellEvent : EntityTargetActionEvent, ISpeakSpell +public sealed partial class ChangeComponentsSpellEvent : EntityTargetActionEvent, ISpeakSpell { // TODO allow it to set component data-fields? // for now a Hackish way to do that is to remove & add, but that doesn't allow you to selectively set specific data fields. @@ -20,5 +20,5 @@ public sealed class ChangeComponentsSpellEvent : EntityTargetActionEvent, ISpeak public HashSet ToRemove = new(); [DataField("speech")] - public string? Speech { get; } + public string? Speech { get; private set; } } diff --git a/Content.Server/Magic/Events/InstantSpawnSpellEvent.cs b/Content.Server/Magic/Events/InstantSpawnSpellEvent.cs index 22f4166b62..f475c33648 100644 --- a/Content.Server/Magic/Events/InstantSpawnSpellEvent.cs +++ b/Content.Server/Magic/Events/InstantSpawnSpellEvent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Magic.Events; -public sealed class InstantSpawnSpellEvent : InstantActionEvent, ISpeakSpell +public sealed partial class InstantSpawnSpellEvent : InstantActionEvent, ISpeakSpell { /// /// What entity should be spawned. @@ -16,7 +16,7 @@ public sealed class InstantSpawnSpellEvent : InstantActionEvent, ISpeakSpell public bool PreventCollideWithCaster = true; [DataField("speech")] - public string? Speech { get; } + public string? Speech { get; private set; } /// /// Gets the targeted spawn positons; may lead to multiple entities being spawned. @@ -25,7 +25,7 @@ public sealed class InstantSpawnSpellEvent : InstantActionEvent, ISpeakSpell } [ImplicitDataDefinitionForInheritors] -public abstract class MagicSpawnData +public abstract partial class MagicSpawnData { } @@ -33,12 +33,12 @@ public abstract class MagicSpawnData /// /// Spawns 1 at the caster's feet. /// -public sealed class TargetCasterPos : MagicSpawnData {} +public sealed partial class TargetCasterPos : MagicSpawnData {} /// /// Targets the 3 tiles in front of the caster. /// -public sealed class TargetInFront : MagicSpawnData +public sealed partial class TargetInFront : MagicSpawnData { [DataField("width")] public int Width = 3; diff --git a/Content.Server/Magic/Events/KnockSpellEvent.cs b/Content.Server/Magic/Events/KnockSpellEvent.cs index 8a25a5f495..3e8897f129 100644 --- a/Content.Server/Magic/Events/KnockSpellEvent.cs +++ b/Content.Server/Magic/Events/KnockSpellEvent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Audio; namespace Content.Server.Magic.Events; -public sealed class KnockSpellEvent : InstantActionEvent, ISpeakSpell +public sealed partial class KnockSpellEvent : InstantActionEvent, ISpeakSpell { /// /// The range this spell opens doors in @@ -22,5 +22,5 @@ public sealed class KnockSpellEvent : InstantActionEvent, ISpeakSpell public float KnockVolume = 5f; [DataField("speech")] - public string? Speech { get; } + public string? Speech { get; private set; } } diff --git a/Content.Server/Magic/Events/ProjectileSpellEvent.cs b/Content.Server/Magic/Events/ProjectileSpellEvent.cs index bede745b92..95a27afe5d 100644 --- a/Content.Server/Magic/Events/ProjectileSpellEvent.cs +++ b/Content.Server/Magic/Events/ProjectileSpellEvent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Magic.Events; -public sealed class ProjectileSpellEvent : WorldTargetActionEvent, ISpeakSpell +public sealed partial class ProjectileSpellEvent : WorldTargetActionEvent, ISpeakSpell { /// /// What entity should be spawned. @@ -19,5 +19,5 @@ public sealed class ProjectileSpellEvent : WorldTargetActionEvent, ISpeakSpell [DataField("posData")] public MagicSpawnData Pos = new TargetCasterPos(); [DataField("speech")] - public string? Speech { get; } + public string? Speech { get; private set; } } diff --git a/Content.Server/Magic/Events/SmiteSpellEvent.cs b/Content.Server/Magic/Events/SmiteSpellEvent.cs index 3a0001fdc3..0311546c4b 100644 --- a/Content.Server/Magic/Events/SmiteSpellEvent.cs +++ b/Content.Server/Magic/Events/SmiteSpellEvent.cs @@ -2,7 +2,7 @@ namespace Content.Server.Magic.Events; -public sealed class SmiteSpellEvent : EntityTargetActionEvent, ISpeakSpell +public sealed partial class SmiteSpellEvent : EntityTargetActionEvent, ISpeakSpell { /// /// Should this smite delete all parts/mechanisms gibbed except for the brain? @@ -11,5 +11,5 @@ public sealed class SmiteSpellEvent : EntityTargetActionEvent, ISpeakSpell public bool DeleteNonBrainParts = true; [DataField("speech")] - public string? Speech { get; } + public string? Speech { get; private set; } } diff --git a/Content.Server/Magic/Events/TeleportSpellEvent.cs b/Content.Server/Magic/Events/TeleportSpellEvent.cs index d26c719a41..50273e742d 100644 --- a/Content.Server/Magic/Events/TeleportSpellEvent.cs +++ b/Content.Server/Magic/Events/TeleportSpellEvent.cs @@ -3,13 +3,13 @@ using Robust.Shared.Audio; namespace Content.Server.Magic.Events; -public sealed class TeleportSpellEvent : WorldTargetActionEvent, ISpeakSpell +public sealed partial class TeleportSpellEvent : WorldTargetActionEvent, ISpeakSpell { [DataField("blinkSound")] public SoundSpecifier BlinkSound = new SoundPathSpecifier("/Audio/Magic/blink.ogg"); [DataField("speech")] - public string? Speech { get; } + public string? Speech { get; private set; } /// /// Volume control for the spell. diff --git a/Content.Server/Magic/Events/WorldSpawnSpellEvent.cs b/Content.Server/Magic/Events/WorldSpawnSpellEvent.cs index 9d1cc2c844..4130eeaa77 100644 --- a/Content.Server/Magic/Events/WorldSpawnSpellEvent.cs +++ b/Content.Server/Magic/Events/WorldSpawnSpellEvent.cs @@ -4,7 +4,7 @@ using Content.Shared.Storage; namespace Content.Server.Magic.Events; -public sealed class WorldSpawnSpellEvent : WorldTargetActionEvent, ISpeakSpell +public sealed partial class WorldSpawnSpellEvent : WorldTargetActionEvent, ISpeakSpell { // TODO:This class needs combining with InstantSpawnSpellEvent @@ -28,6 +28,6 @@ public sealed class WorldSpawnSpellEvent : WorldTargetActionEvent, ISpeakSpell [DataField("lifetime")] public float? Lifetime; [DataField("speech")] - public string? Speech { get; } + public string? Speech { get; private set; } } diff --git a/Content.Server/MagicMirror/MagicMirrorComponent.cs b/Content.Server/MagicMirror/MagicMirrorComponent.cs index 05b12690a0..d9c2fff6da 100644 --- a/Content.Server/MagicMirror/MagicMirrorComponent.cs +++ b/Content.Server/MagicMirror/MagicMirrorComponent.cs @@ -1,6 +1,6 @@ namespace Content.Server.MagicMirror; [RegisterComponent] -public sealed class MagicMirrorComponent : Component +public sealed partial class MagicMirrorComponent : Component { } diff --git a/Content.Server/Maps/Conditions/HolidayMapCondition.cs b/Content.Server/Maps/Conditions/HolidayMapCondition.cs index 4de5d3ad8d..81ecfb356e 100644 --- a/Content.Server/Maps/Conditions/HolidayMapCondition.cs +++ b/Content.Server/Maps/Conditions/HolidayMapCondition.cs @@ -3,10 +3,10 @@ using Content.Server.Holiday; namespace Content.Server.Maps.Conditions; -public sealed class HolidayMapCondition : GameMapCondition +public sealed partial class HolidayMapCondition : GameMapCondition { [DataField("holidays")] - public string[] Holidays { get; } = default!; + public string[] Holidays { get; private set; } = default!; public override bool Check(GameMapPrototype map) { diff --git a/Content.Server/Maps/GameMapCondition.cs b/Content.Server/Maps/GameMapCondition.cs index f25e116684..78c5323777 100644 --- a/Content.Server/Maps/GameMapCondition.cs +++ b/Content.Server/Maps/GameMapCondition.cs @@ -1,9 +1,9 @@ namespace Content.Server.Maps; [ImplicitDataDefinitionForInheritors] -public abstract class GameMapCondition +public abstract partial class GameMapCondition { [DataField("inverted")] - public bool Inverted { get; } + public bool Inverted { get; private set; } public abstract bool Check(GameMapPrototype map); } diff --git a/Content.Server/Maps/GameMapPoolPrototype.cs b/Content.Server/Maps/GameMapPoolPrototype.cs index 2d20084a57..4c439d44a6 100644 --- a/Content.Server/Maps/GameMapPoolPrototype.cs +++ b/Content.Server/Maps/GameMapPoolPrototype.cs @@ -12,11 +12,11 @@ public sealed class GameMapPoolPrototype : IPrototype { /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Which maps are in this pool. /// [DataField("maps", customTypeSerializer:typeof(PrototypeIdHashSetSerializer), required: true)] - public readonly HashSet Maps = new(0); + public HashSet Maps = new(0); } diff --git a/Content.Server/Maps/GameMapPrototype.MapSelection.cs b/Content.Server/Maps/GameMapPrototype.MapSelection.cs index 53ace8e5f4..ff8fd35717 100644 --- a/Content.Server/Maps/GameMapPrototype.MapSelection.cs +++ b/Content.Server/Maps/GameMapPrototype.MapSelection.cs @@ -6,21 +6,21 @@ public sealed partial class GameMapPrototype /// Controls if the map can be used as a fallback if no maps are eligible. /// [DataField("fallback")] - public bool Fallback { get; } + public bool Fallback { get; private set; } /// /// Minimum players for the given map. /// [DataField("minPlayers", required: true)] - public uint MinPlayers { get; } + public uint MinPlayers { get; private set; } /// /// Maximum players for the given map. /// [DataField("maxPlayers")] - public uint MaxPlayers { get; } = uint.MaxValue; + public uint MaxPlayers { get; private set; } = uint.MaxValue; - [DataField("conditions")] private readonly List _conditions = new(); + [DataField("conditions")] private List _conditions = new(); /// /// The game map conditions that must be fulfilled for this map to be selectable. diff --git a/Content.Server/Maps/GameMapPrototype.cs b/Content.Server/Maps/GameMapPrototype.cs index e289b7d1b1..837e838290 100644 --- a/Content.Server/Maps/GameMapPrototype.cs +++ b/Content.Server/Maps/GameMapPrototype.cs @@ -19,19 +19,19 @@ public sealed partial class GameMapPrototype : IPrototype { /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Name of the map to use in generic messages, like the map vote. /// [DataField("mapName", required: true)] - public string MapName { get; } = default!; + public string MapName { get; private set; } = default!; /// /// Relative directory path to the given map, i.e. `/Maps/saltern.yml` /// [DataField("mapPath", required: true)] - public ResPath MapPath { get; } = default!; + public ResPath MapPath { get; private set; } = default!; [DataField("stations", required: true)] private Dictionary _stations = new(); diff --git a/Content.Server/Maps/NameGenerators/NanotrasenNameGenerator.cs b/Content.Server/Maps/NameGenerators/NanotrasenNameGenerator.cs index 12dfc7cb1b..48f12a3882 100644 --- a/Content.Server/Maps/NameGenerators/NanotrasenNameGenerator.cs +++ b/Content.Server/Maps/NameGenerators/NanotrasenNameGenerator.cs @@ -4,7 +4,7 @@ using Robust.Shared.Random; namespace Content.Server.Maps.NameGenerators; [UsedImplicitly] -public sealed class NanotrasenNameGenerator : StationNameGenerator +public sealed partial class NanotrasenNameGenerator : StationNameGenerator { /// /// Where the map comes from. Should be a two or three letter code, for example "VG" for Packedstation. diff --git a/Content.Server/Maps/NameGenerators/StationNameGenerator.cs b/Content.Server/Maps/NameGenerators/StationNameGenerator.cs index bfb8a21867..5dd40e8d72 100644 --- a/Content.Server/Maps/NameGenerators/StationNameGenerator.cs +++ b/Content.Server/Maps/NameGenerators/StationNameGenerator.cs @@ -1,7 +1,7 @@ namespace Content.Server.Maps.NameGenerators; [ImplicitDataDefinitionForInheritors] -public abstract class StationNameGenerator +public abstract partial class StationNameGenerator { public abstract string FormatName(string input); } diff --git a/Content.Server/MassMedia/Components/NewsWriteComponent.cs b/Content.Server/MassMedia/Components/NewsWriteComponent.cs index 7308959d56..c064759610 100644 --- a/Content.Server/MassMedia/Components/NewsWriteComponent.cs +++ b/Content.Server/MassMedia/Components/NewsWriteComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Server.MassMedia.Components { [RegisterComponent] - public sealed class NewsWriteComponent : Component + public sealed partial class NewsWriteComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public bool ShareAvalible = false; diff --git a/Content.Server/Mech/Components/MechAirComponent.cs b/Content.Server/Mech/Components/MechAirComponent.cs index e30a5af80e..7e989f6481 100644 --- a/Content.Server/Mech/Components/MechAirComponent.cs +++ b/Content.Server/Mech/Components/MechAirComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.Mech.Components; [RegisterComponent] -public sealed class MechAirComponent : Component +public sealed partial class MechAirComponent : Component { //TODO: this doesn't support a tank implant for mechs or anything like that [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Mech/Components/MechAssemblyComponent.cs b/Content.Server/Mech/Components/MechAssemblyComponent.cs index 2d99957a31..2d352cbf15 100644 --- a/Content.Server/Mech/Components/MechAssemblyComponent.cs +++ b/Content.Server/Mech/Components/MechAssemblyComponent.cs @@ -18,7 +18,7 @@ namespace Content.Server.Mech.Components; /// done via /// [RegisterComponent] -public sealed class MechAssemblyComponent : Component +public sealed partial class MechAssemblyComponent : Component { /// /// The parts needed to be placed within the assembly, diff --git a/Content.Server/Mech/Equipment/Components/MechGrabberComponent.cs b/Content.Server/Mech/Equipment/Components/MechGrabberComponent.cs index 6b3cceaafe..1424f880f3 100644 --- a/Content.Server/Mech/Equipment/Components/MechGrabberComponent.cs +++ b/Content.Server/Mech/Equipment/Components/MechGrabberComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Mech.Equipment.Components; /// inside of a container so large objects can be moved. /// [RegisterComponent] -public sealed class MechGrabberComponent : Component +public sealed partial class MechGrabberComponent : Component { /// /// The change in energy after each grab. diff --git a/Content.Server/Medical/BiomassReclaimer/ActiveBiomassReclaimerComponent.cs b/Content.Server/Medical/BiomassReclaimer/ActiveBiomassReclaimerComponent.cs index 9e57f38d94..fffe2fdcfd 100644 --- a/Content.Server/Medical/BiomassReclaimer/ActiveBiomassReclaimerComponent.cs +++ b/Content.Server/Medical/BiomassReclaimer/ActiveBiomassReclaimerComponent.cs @@ -1,6 +1,6 @@ namespace Content.Server.Medical.BiomassReclaimer { [RegisterComponent] - public sealed class ActiveBiomassReclaimerComponent : Component + public sealed partial class ActiveBiomassReclaimerComponent : Component {} } diff --git a/Content.Server/Medical/BiomassReclaimer/BiomassReclaimerComponent.cs b/Content.Server/Medical/BiomassReclaimer/BiomassReclaimerComponent.cs index 4281aacc52..744f579af0 100644 --- a/Content.Server/Medical/BiomassReclaimer/BiomassReclaimerComponent.cs +++ b/Content.Server/Medical/BiomassReclaimer/BiomassReclaimerComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Medical.BiomassReclaimer { [RegisterComponent] - public sealed class BiomassReclaimerComponent : Component + public sealed partial class BiomassReclaimerComponent : Component { /// /// This gets set for each mob it processes. diff --git a/Content.Server/Medical/Components/CryoPodAirComponent.cs b/Content.Server/Medical/Components/CryoPodAirComponent.cs index cc5416a4d2..baaa3bcda0 100644 --- a/Content.Server/Medical/Components/CryoPodAirComponent.cs +++ b/Content.Server/Medical/Components/CryoPodAirComponent.cs @@ -4,7 +4,7 @@ using Content.Shared.Atmos; namespace Content.Server.Medical.Components; [RegisterComponent] -public sealed class CryoPodAirComponent : Component +public sealed partial class CryoPodAirComponent : Component { /// /// Local air buffer that will be mixed with the pipenet, if one exists, per tick. diff --git a/Content.Server/Medical/Components/HealingComponent.cs b/Content.Server/Medical/Components/HealingComponent.cs index 22d1f9a7e0..a56bc17143 100644 --- a/Content.Server/Medical/Components/HealingComponent.cs +++ b/Content.Server/Medical/Components/HealingComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Medical.Components /// Applies a damage change to the target when used in an interaction. /// [RegisterComponent] - public sealed class HealingComponent : Component + public sealed partial class HealingComponent : Component { [DataField("damage", required: true)] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Medical/Components/HealthAnalyzerComponent.cs b/Content.Server/Medical/Components/HealthAnalyzerComponent.cs index 788db33fd7..1148c3afff 100644 --- a/Content.Server/Medical/Components/HealthAnalyzerComponent.cs +++ b/Content.Server/Medical/Components/HealthAnalyzerComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Medical.Components /// After scanning, retrieves the target Uid to use with its related UI. /// [RegisterComponent] - public sealed class HealthAnalyzerComponent : Component + public sealed partial class HealthAnalyzerComponent : Component { /// /// How long it takes to scan someone. diff --git a/Content.Server/Medical/Components/MedicalScannerComponent.cs b/Content.Server/Medical/Components/MedicalScannerComponent.cs index fd351c6804..fdfb19cbac 100644 --- a/Content.Server/Medical/Components/MedicalScannerComponent.cs +++ b/Content.Server/Medical/Components/MedicalScannerComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Medical.Components { [RegisterComponent] - public sealed class MedicalScannerComponent : SharedMedicalScannerComponent + public sealed partial class MedicalScannerComponent : SharedMedicalScannerComponent { public const string ScannerPort = "MedicalScannerReceiver"; public ContainerSlot BodyContainer = default!; diff --git a/Content.Server/Medical/CrewMonitoring/CrewMonitoringConsoleComponent.cs b/Content.Server/Medical/CrewMonitoring/CrewMonitoringConsoleComponent.cs index 2ef369bf10..7aaa2ef368 100644 --- a/Content.Server/Medical/CrewMonitoring/CrewMonitoringConsoleComponent.cs +++ b/Content.Server/Medical/CrewMonitoring/CrewMonitoringConsoleComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Medical.CrewMonitoring { [RegisterComponent] [Access(typeof(CrewMonitoringConsoleSystem))] - public sealed class CrewMonitoringConsoleComponent : Component + public sealed partial class CrewMonitoringConsoleComponent : Component { /// /// List of all currently connected sensors to this console. diff --git a/Content.Server/Medical/CrewMonitoring/CrewMonitoringServerComponent.cs b/Content.Server/Medical/CrewMonitoring/CrewMonitoringServerComponent.cs index 3a73f4d0b4..0d95cc48c7 100644 --- a/Content.Server/Medical/CrewMonitoring/CrewMonitoringServerComponent.cs +++ b/Content.Server/Medical/CrewMonitoring/CrewMonitoringServerComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Medical.CrewMonitoring; [RegisterComponent] [Access(typeof(CrewMonitoringServerSystem))] -public sealed class CrewMonitoringServerComponent : Component +public sealed partial class CrewMonitoringServerComponent : Component { /// diff --git a/Content.Server/Medical/CryoPodEjectLockWireAction.cs b/Content.Server/Medical/CryoPodEjectLockWireAction.cs index 93c6a49aa9..6fbf9eb250 100644 --- a/Content.Server/Medical/CryoPodEjectLockWireAction.cs +++ b/Content.Server/Medical/CryoPodEjectLockWireAction.cs @@ -8,7 +8,7 @@ namespace Content.Server.Medical; /// /// Causes a failure in the cryo pod ejection system when cut. A crowbar will be needed to pry open the pod. /// -public sealed class CryoPodEjectLockWireAction: ComponentWireAction +public sealed partial class CryoPodEjectLockWireAction: ComponentWireAction { public override Color Color { get; set; } = Color.Red; public override string Name { get; set; } = "wire-name-lock"; diff --git a/Content.Server/Medical/Stethoscope/Components/StethoscopeComponent.cs b/Content.Server/Medical/Stethoscope/Components/StethoscopeComponent.cs index b16d49f38d..8daf47809d 100644 --- a/Content.Server/Medical/Stethoscope/Components/StethoscopeComponent.cs +++ b/Content.Server/Medical/Stethoscope/Components/StethoscopeComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Medical.Components /// Adds an innate verb when equipped to use a stethoscope. /// [RegisterComponent] - public sealed class StethoscopeComponent : Component + public sealed partial class StethoscopeComponent : Component { public bool IsActive = false; diff --git a/Content.Server/Medical/Stethoscope/Components/WearingStethoscopeComponent.cs b/Content.Server/Medical/Stethoscope/Components/WearingStethoscopeComponent.cs index 64f7694bbc..dfce294a73 100644 --- a/Content.Server/Medical/Stethoscope/Components/WearingStethoscopeComponent.cs +++ b/Content.Server/Medical/Stethoscope/Components/WearingStethoscopeComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Medical.Components /// Used to let doctors use the stethoscope on people. /// [RegisterComponent] - public sealed class WearingStethoscopeComponent : Component + public sealed partial class WearingStethoscopeComponent : Component { public CancellationTokenSource? CancelToken; diff --git a/Content.Server/Medical/Stethoscope/StethoscopeSystem.cs b/Content.Server/Medical/Stethoscope/StethoscopeSystem.cs index 273b2d508b..9aee322667 100644 --- a/Content.Server/Medical/Stethoscope/StethoscopeSystem.cs +++ b/Content.Server/Medical/Stethoscope/StethoscopeSystem.cs @@ -157,5 +157,5 @@ namespace Content.Server.Medical } } - public sealed class StethoscopeActionEvent : EntityTargetActionEvent {} + public sealed partial class StethoscopeActionEvent : EntityTargetActionEvent {} } diff --git a/Content.Server/Medical/SuitSensors/SuitSensorComponent.cs b/Content.Server/Medical/SuitSensors/SuitSensorComponent.cs index 17d1feffa3..294be8c7e1 100644 --- a/Content.Server/Medical/SuitSensors/SuitSensorComponent.cs +++ b/Content.Server/Medical/SuitSensors/SuitSensorComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Medical.SuitSensors /// [RegisterComponent] [Access(typeof(SuitSensorSystem))] - public sealed class SuitSensorComponent : Component + public sealed partial class SuitSensorComponent : Component { /// /// Choose a random sensor mode when item is spawned. diff --git a/Content.Server/Mind/Components/MindContainerComponent.cs b/Content.Server/Mind/Components/MindContainerComponent.cs index 4ff36b60f2..f5274e443f 100644 --- a/Content.Server/Mind/Components/MindContainerComponent.cs +++ b/Content.Server/Mind/Components/MindContainerComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Mind.Components /// Stores a on a mob. /// [RegisterComponent, Access(typeof(MindSystem))] - public sealed class MindContainerComponent : Component + public sealed partial class MindContainerComponent : Component { /// /// The mind controlling this mob. Can be null. diff --git a/Content.Server/Mind/Components/TransferMindOnGibComponent.cs b/Content.Server/Mind/Components/TransferMindOnGibComponent.cs index f2c95982c6..afeb1b4d0a 100644 --- a/Content.Server/Mind/Components/TransferMindOnGibComponent.cs +++ b/Content.Server/Mind/Components/TransferMindOnGibComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Mind.Components; [RegisterComponent] -public sealed class TransferMindOnGibComponent : Component +public sealed partial class TransferMindOnGibComponent : Component { [DataField("targetTag", customTypeSerializer: typeof(PrototypeIdSerializer))] public string TargetTag = "MindTransferTarget"; diff --git a/Content.Server/Mind/Components/VisitingMindComponent.cs b/Content.Server/Mind/Components/VisitingMindComponent.cs index 9b2e0d66e5..e75d1f151d 100644 --- a/Content.Server/Mind/Components/VisitingMindComponent.cs +++ b/Content.Server/Mind/Components/VisitingMindComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Mind.Components { [RegisterComponent] - public sealed class VisitingMindComponent : Component + public sealed partial class VisitingMindComponent : Component { [ViewVariables] public Mind? Mind; diff --git a/Content.Server/Mobs/CritMobActionsSystem.cs b/Content.Server/Mobs/CritMobActionsSystem.cs index d8f8c4ea13..b2c8ccd694 100644 --- a/Content.Server/Mobs/CritMobActionsSystem.cs +++ b/Content.Server/Mobs/CritMobActionsSystem.cs @@ -91,20 +91,20 @@ public sealed class CritMobActionsSystem : EntitySystem /// /// Only applies to mobs in crit capable of ghosting/succumbing /// -public sealed class CritSuccumbEvent : InstantActionEvent +public sealed partial class CritSuccumbEvent : InstantActionEvent { } /// /// Only applies/has functionality to mobs in crit that have /// -public sealed class CritFakeDeathEvent : InstantActionEvent +public sealed partial class CritFakeDeathEvent : InstantActionEvent { } /// /// Only applies to mobs capable of speaking, as a last resort in crit /// -public sealed class CritLastWordsEvent : InstantActionEvent +public sealed partial class CritLastWordsEvent : InstantActionEvent { } diff --git a/Content.Server/Mobs/DeathgaspComponent.cs b/Content.Server/Mobs/DeathgaspComponent.cs index 01d9c321c9..cb1f02f0d9 100644 --- a/Content.Server/Mobs/DeathgaspComponent.cs +++ b/Content.Server/Mobs/DeathgaspComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Mobs; /// /// [RegisterComponent] -public sealed class DeathgaspComponent : Component +public sealed partial class DeathgaspComponent : Component { /// /// The emote prototype to use. diff --git a/Content.Server/Morgue/Components/ActiveCrematoriumComponent.cs b/Content.Server/Morgue/Components/ActiveCrematoriumComponent.cs index 56e0b88e15..e5180cd892 100644 --- a/Content.Server/Morgue/Components/ActiveCrematoriumComponent.cs +++ b/Content.Server/Morgue/Components/ActiveCrematoriumComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Morgue.Components; /// used to track actively cooking crematoriums /// [RegisterComponent] -public sealed class ActiveCrematoriumComponent : Component +public sealed partial class ActiveCrematoriumComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public float Accumulator = 0; diff --git a/Content.Server/Morgue/Components/CrematoriumComponent.cs b/Content.Server/Morgue/Components/CrematoriumComponent.cs index c86220ee05..f00a21b755 100644 --- a/Content.Server/Morgue/Components/CrematoriumComponent.cs +++ b/Content.Server/Morgue/Components/CrematoriumComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Audio; namespace Content.Server.Morgue.Components; [RegisterComponent] -public sealed class CrematoriumComponent : Component +public sealed partial class CrematoriumComponent : Component { /// /// The time it takes to cook in second diff --git a/Content.Server/Morgue/Components/EntityStorageLayingDownOverrideComponent.cs b/Content.Server/Morgue/Components/EntityStorageLayingDownOverrideComponent.cs index b94635f6f1..9726094497 100644 --- a/Content.Server/Morgue/Components/EntityStorageLayingDownOverrideComponent.cs +++ b/Content.Server/Morgue/Components/EntityStorageLayingDownOverrideComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Morgue.Components; [RegisterComponent] -public sealed class EntityStorageLayingDownOverrideComponent : Component +public sealed partial class EntityStorageLayingDownOverrideComponent : Component { } diff --git a/Content.Server/Mousetrap/MousetrapComponent.cs b/Content.Server/Mousetrap/MousetrapComponent.cs index 2cf75e35cb..b666c45a4c 100644 --- a/Content.Server/Mousetrap/MousetrapComponent.cs +++ b/Content.Server/Mousetrap/MousetrapComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Mousetrap; [RegisterComponent] -public sealed class MousetrapComponent : Component +public sealed partial class MousetrapComponent : Component { [ViewVariables] [DataField("isActive")] diff --git a/Content.Server/Movement/Components/ActiveLagCompensationComponent.cs b/Content.Server/Movement/Components/ActiveLagCompensationComponent.cs index ae202b483a..25e65c56b9 100644 --- a/Content.Server/Movement/Components/ActiveLagCompensationComponent.cs +++ b/Content.Server/Movement/Components/ActiveLagCompensationComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Movement.Components; /// Track lag compensation components that may need to have their data culled for memory reasons. /// [RegisterComponent] -public sealed class ActiveLagCompensationComponent : Component +public sealed partial class ActiveLagCompensationComponent : Component { } diff --git a/Content.Server/Movement/Components/LagCompensationComponent.cs b/Content.Server/Movement/Components/LagCompensationComponent.cs index 8178a8f2af..8affd8cd71 100644 --- a/Content.Server/Movement/Components/LagCompensationComponent.cs +++ b/Content.Server/Movement/Components/LagCompensationComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Map; namespace Content.Server.Movement.Components; [RegisterComponent] -public sealed class LagCompensationComponent : Component +public sealed partial class LagCompensationComponent : Component { [ViewVariables] public readonly Queue> Positions = new(); diff --git a/Content.Server/Movement/Components/StressTestMovementComponent.cs b/Content.Server/Movement/Components/StressTestMovementComponent.cs index d897b5fae2..051747a849 100644 --- a/Content.Server/Movement/Components/StressTestMovementComponent.cs +++ b/Content.Server/Movement/Components/StressTestMovementComponent.cs @@ -3,7 +3,7 @@ using System.Numerics; namespace Content.Server.Movement.Components; [RegisterComponent] -public sealed class StressTestMovementComponent : Component +public sealed partial class StressTestMovementComponent : Component { public float Progress { get; set; } public Vector2 Origin { get; set; } diff --git a/Content.Server/NPC/Components/ActiveNPCComponent.cs b/Content.Server/NPC/Components/ActiveNPCComponent.cs index e81ad25a46..75491ee1c8 100644 --- a/Content.Server/NPC/Components/ActiveNPCComponent.cs +++ b/Content.Server/NPC/Components/ActiveNPCComponent.cs @@ -4,4 +4,4 @@ namespace Content.Server.NPC.Components; /// Added to NPCs that are actively being updated. /// [RegisterComponent] -public sealed class ActiveNPCComponent : Component {} +public sealed partial class ActiveNPCComponent : Component {} diff --git a/Content.Server/NPC/Components/FactionExceptionComponent.cs b/Content.Server/NPC/Components/FactionExceptionComponent.cs index 661156668c..e73b34905e 100644 --- a/Content.Server/NPC/Components/FactionExceptionComponent.cs +++ b/Content.Server/NPC/Components/FactionExceptionComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.NPC.Components; /// Can be added to if pettable, see PettableFriendComponent. /// [RegisterComponent, Access(typeof(FactionExceptionSystem))] -public sealed class FactionExceptionComponent : Component +public sealed partial class FactionExceptionComponent : Component { /// /// List of entities that this NPC will refuse to attack diff --git a/Content.Server/NPC/Components/NPCAvoidanceComponent.cs b/Content.Server/NPC/Components/NPCAvoidanceComponent.cs index 57d954d4c1..44fcf00c1c 100644 --- a/Content.Server/NPC/Components/NPCAvoidanceComponent.cs +++ b/Content.Server/NPC/Components/NPCAvoidanceComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.NPC.Components; /// Should this entity be considered for collision avoidance /// [RegisterComponent] -public sealed class NPCAvoidanceComponent : Component +public sealed partial class NPCAvoidanceComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("enabled")] public bool Enabled = true; diff --git a/Content.Server/NPC/Components/NPCComponent.cs b/Content.Server/NPC/Components/NPCComponent.cs index df969048c5..88ec70e0e3 100644 --- a/Content.Server/NPC/Components/NPCComponent.cs +++ b/Content.Server/NPC/Components/NPCComponent.cs @@ -2,7 +2,7 @@ using Content.Shared.NPC; namespace Content.Server.NPC.Components { - public abstract class NPCComponent : SharedNPCComponent + public abstract partial class NPCComponent : SharedNPCComponent { /// /// Contains all of the world data for a particular NPC in terms of how it sees the world. diff --git a/Content.Server/NPC/Components/NPCJukeComponent.cs b/Content.Server/NPC/Components/NPCJukeComponent.cs index 670ea345e8..4cbd8017f2 100644 --- a/Content.Server/NPC/Components/NPCJukeComponent.cs +++ b/Content.Server/NPC/Components/NPCJukeComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Server.NPC.Components; [RegisterComponent] -public sealed class NPCJukeComponent : Component +public sealed partial class NPCJukeComponent : Component { [DataField("jukeType")] public JukeType JukeType = JukeType.Away; diff --git a/Content.Server/NPC/Components/NPCMeleeCombatComponent.cs b/Content.Server/NPC/Components/NPCMeleeCombatComponent.cs index 17f4fee090..810f26b69f 100644 --- a/Content.Server/NPC/Components/NPCMeleeCombatComponent.cs +++ b/Content.Server/NPC/Components/NPCMeleeCombatComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.NPC.Components; /// Added to NPCs whenever they're in melee combat so they can be handled by the dedicated system. /// [RegisterComponent] -public sealed class NPCMeleeCombatComponent : Component +public sealed partial class NPCMeleeCombatComponent : Component { /// /// If the target is moving what is the chance for this NPC to miss. diff --git a/Content.Server/NPC/Components/NPCPathfindPointComponent.cs b/Content.Server/NPC/Components/NPCPathfindPointComponent.cs index 43966da496..ca18674daa 100644 --- a/Content.Server/NPC/Components/NPCPathfindPointComponent.cs +++ b/Content.Server/NPC/Components/NPCPathfindPointComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.NPC.Components; [RegisterComponent] -public sealed class NPCPathfindPointComponent : Component +public sealed partial class NPCPathfindPointComponent : Component { // /// // /// Next point for the NPC to head to. diff --git a/Content.Server/NPC/Components/NPCRangedCombatComponent.cs b/Content.Server/NPC/Components/NPCRangedCombatComponent.cs index 7d6d86dcb5..2e4fcf5298 100644 --- a/Content.Server/NPC/Components/NPCRangedCombatComponent.cs +++ b/Content.Server/NPC/Components/NPCRangedCombatComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.NPC.Components; /// Added to an NPC doing ranged combat. /// [RegisterComponent] -public sealed class NPCRangedCombatComponent : Component +public sealed partial class NPCRangedCombatComponent : Component { [ViewVariables] public EntityUid Target; diff --git a/Content.Server/NPC/Components/NPCRecentlyInjectedComponent.cs b/Content.Server/NPC/Components/NPCRecentlyInjectedComponent.cs index 0e8887eda4..0bc5dce55b 100644 --- a/Content.Server/NPC/Components/NPCRecentlyInjectedComponent.cs +++ b/Content.Server/NPC/Components/NPCRecentlyInjectedComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.NPC.Components /// Added when a medibot injects someone /// So they don't get injected again for at least a minute. [RegisterComponent] - public sealed class NPCRecentlyInjectedComponent : Component + public sealed partial class NPCRecentlyInjectedComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("accumulator")] public float Accumulator = 0f; diff --git a/Content.Server/NPC/Components/NPCSteeringComponent.cs b/Content.Server/NPC/Components/NPCSteeringComponent.cs index 521e0688a1..52f96e9c55 100644 --- a/Content.Server/NPC/Components/NPCSteeringComponent.cs +++ b/Content.Server/NPC/Components/NPCSteeringComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.NPC.Components; /// Added to NPCs that are moving. /// [RegisterComponent] -public sealed class NPCSteeringComponent : Component +public sealed partial class NPCSteeringComponent : Component { #region Context Steering diff --git a/Content.Server/NPC/Components/NpcFactionMemberComponent.cs b/Content.Server/NPC/Components/NpcFactionMemberComponent.cs index 1c54a550a2..72df5d0c8a 100644 --- a/Content.Server/NPC/Components/NpcFactionMemberComponent.cs +++ b/Content.Server/NPC/Components/NpcFactionMemberComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.NPC.Components { [RegisterComponent] [Access(typeof(NpcFactionSystem))] - public sealed class NpcFactionMemberComponent : Component + public sealed partial class NpcFactionMemberComponent : Component { /// /// Factions this entity is a part of. diff --git a/Content.Server/NPC/Components/NpcFactionPrototype.cs b/Content.Server/NPC/Components/NpcFactionPrototype.cs index 53794ac3c1..dba51c6a60 100644 --- a/Content.Server/NPC/Components/NpcFactionPrototype.cs +++ b/Content.Server/NPC/Components/NpcFactionPrototype.cs @@ -11,7 +11,7 @@ namespace Content.Server.NPC.Components { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [ViewVariables(VVAccess.ReadWrite), DataField("friendly", customTypeSerializer:typeof(PrototypeIdListSerializer))] public List Friendly = new(); diff --git a/Content.Server/NPC/HTN/HTNBranch.cs b/Content.Server/NPC/HTN/HTNBranch.cs index 0294134381..256135b1dd 100644 --- a/Content.Server/NPC/HTN/HTNBranch.cs +++ b/Content.Server/NPC/HTN/HTNBranch.cs @@ -6,7 +6,7 @@ namespace Content.Server.NPC.HTN; /// AKA Method. This is a branch available for a compound task. /// [DataDefinition] -public sealed class HTNBranch +public sealed partial class HTNBranch { // Made this its own class if we ever need to change it. [DataField("preconditions")] diff --git a/Content.Server/NPC/HTN/HTNComponent.cs b/Content.Server/NPC/HTN/HTNComponent.cs index f2a8005912..7fe6bd7d98 100644 --- a/Content.Server/NPC/HTN/HTNComponent.cs +++ b/Content.Server/NPC/HTN/HTNComponent.cs @@ -4,7 +4,7 @@ using Content.Server.NPC.Components; namespace Content.Server.NPC.HTN; [RegisterComponent, ComponentReference(typeof(NPCComponent))] -public sealed class HTNComponent : NPCComponent +public sealed partial class HTNComponent : NPCComponent { /// /// The base task to use for planning diff --git a/Content.Server/NPC/HTN/HTNCompoundTask.cs b/Content.Server/NPC/HTN/HTNCompoundTask.cs index 43a10aa356..b2bd4e6c29 100644 --- a/Content.Server/NPC/HTN/HTNCompoundTask.cs +++ b/Content.Server/NPC/HTN/HTNCompoundTask.cs @@ -8,7 +8,7 @@ namespace Content.Server.NPC.HTN; /// /// This just points to a specific htnCompound prototype /// -public sealed class HTNCompoundTask : HTNTask, IHTNCompound +public sealed partial class HTNCompoundTask : HTNTask, IHTNCompound { [DataField("task", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Task = string.Empty; diff --git a/Content.Server/NPC/HTN/HTNTask.cs b/Content.Server/NPC/HTN/HTNTask.cs index f06b15234a..0f7c0a377e 100644 --- a/Content.Server/NPC/HTN/HTNTask.cs +++ b/Content.Server/NPC/HTN/HTNTask.cs @@ -1,6 +1,6 @@ namespace Content.Server.NPC.HTN; [ImplicitDataDefinitionForInheritors] -public abstract class HTNTask +public abstract partial class HTNTask { } diff --git a/Content.Server/NPC/HTN/Preconditions/ActiveHandComponentPrecondition.cs b/Content.Server/NPC/HTN/Preconditions/ActiveHandComponentPrecondition.cs index 063c9f5072..e2e65684ff 100644 --- a/Content.Server/NPC/HTN/Preconditions/ActiveHandComponentPrecondition.cs +++ b/Content.Server/NPC/HTN/Preconditions/ActiveHandComponentPrecondition.cs @@ -6,7 +6,7 @@ namespace Content.Server.NPC.HTN.Preconditions; /// /// Returns true if the active hand entity has the specified components. /// -public sealed class ActiveHandComponentPrecondition : HTNPrecondition +public sealed partial class ActiveHandComponentPrecondition : HTNPrecondition { [Dependency] private readonly IEntityManager _entManager = default!; diff --git a/Content.Server/NPC/HTN/Preconditions/ActiveHandEntityPrecondition.cs b/Content.Server/NPC/HTN/Preconditions/ActiveHandEntityPrecondition.cs index a194ff486b..0e6c63a433 100644 --- a/Content.Server/NPC/HTN/Preconditions/ActiveHandEntityPrecondition.cs +++ b/Content.Server/NPC/HTN/Preconditions/ActiveHandEntityPrecondition.cs @@ -5,7 +5,7 @@ namespace Content.Server.NPC.HTN.Preconditions; /// /// Returns true if an entity is held in the active hand. /// -public sealed class ActiveHandEntityPrecondition : HTNPrecondition +public sealed partial class ActiveHandEntityPrecondition : HTNPrecondition { [Dependency] private readonly IEntityManager _entManager = default!; diff --git a/Content.Server/NPC/HTN/Preconditions/ActiveHandFreePrecondition.cs b/Content.Server/NPC/HTN/Preconditions/ActiveHandFreePrecondition.cs index 041ef085ee..0ad205de74 100644 --- a/Content.Server/NPC/HTN/Preconditions/ActiveHandFreePrecondition.cs +++ b/Content.Server/NPC/HTN/Preconditions/ActiveHandFreePrecondition.cs @@ -5,7 +5,7 @@ namespace Content.Server.NPC.HTN.Preconditions; /// /// Returns true if the active hand is unoccupied. /// -public sealed class ActiveHandFreePrecondition : HTNPrecondition +public sealed partial class ActiveHandFreePrecondition : HTNPrecondition { [Dependency] private readonly IEntityManager _entManager = default!; diff --git a/Content.Server/NPC/HTN/Preconditions/BuckledPrecondition.cs b/Content.Server/NPC/HTN/Preconditions/BuckledPrecondition.cs index b7a07572a6..d4bbfde15a 100644 --- a/Content.Server/NPC/HTN/Preconditions/BuckledPrecondition.cs +++ b/Content.Server/NPC/HTN/Preconditions/BuckledPrecondition.cs @@ -5,7 +5,7 @@ namespace Content.Server.NPC.HTN.Preconditions; /// /// Checks if the owner is buckled or not /// -public sealed class BuckledPrecondition : HTNPrecondition +public sealed partial class BuckledPrecondition : HTNPrecondition { private SharedBuckleSystem _buckle = default!; diff --git a/Content.Server/NPC/HTN/Preconditions/CoordinatesInRangePrecondition.cs b/Content.Server/NPC/HTN/Preconditions/CoordinatesInRangePrecondition.cs index 9d388fc762..3e030aa819 100644 --- a/Content.Server/NPC/HTN/Preconditions/CoordinatesInRangePrecondition.cs +++ b/Content.Server/NPC/HTN/Preconditions/CoordinatesInRangePrecondition.cs @@ -5,7 +5,7 @@ namespace Content.Server.NPC.HTN.Preconditions; /// /// Is the specified coordinate in range of us. /// -public sealed class CoordinatesInRangePrecondition : HTNPrecondition +public sealed partial class CoordinatesInRangePrecondition : HTNPrecondition { [Dependency] private readonly IEntityManager _entManager = default!; diff --git a/Content.Server/NPC/HTN/Preconditions/CoordinatesNotInRangePrecondition.cs b/Content.Server/NPC/HTN/Preconditions/CoordinatesNotInRangePrecondition.cs index 0688fb7e85..6d8977bb7a 100644 --- a/Content.Server/NPC/HTN/Preconditions/CoordinatesNotInRangePrecondition.cs +++ b/Content.Server/NPC/HTN/Preconditions/CoordinatesNotInRangePrecondition.cs @@ -5,7 +5,7 @@ namespace Content.Server.NPC.HTN.Preconditions; /// /// Is the specified coordinate not in range of us. /// -public sealed class CoordinatesNotInRangePrecondition : HTNPrecondition +public sealed partial class CoordinatesNotInRangePrecondition : HTNPrecondition { [Dependency] private readonly IEntityManager _entManager = default!; diff --git a/Content.Server/NPC/HTN/Preconditions/GunAmmoPrecondition.cs b/Content.Server/NPC/HTN/Preconditions/GunAmmoPrecondition.cs index 6bc0bf0ee5..fe3b844ae3 100644 --- a/Content.Server/NPC/HTN/Preconditions/GunAmmoPrecondition.cs +++ b/Content.Server/NPC/HTN/Preconditions/GunAmmoPrecondition.cs @@ -6,7 +6,7 @@ namespace Content.Server.NPC.HTN.Preconditions; /// /// Gets ammo for this NPC's selected gun; either active hand or itself. /// -public sealed class GunAmmoPrecondition : HTNPrecondition +public sealed partial class GunAmmoPrecondition : HTNPrecondition { [Dependency] private readonly IEntityManager _entManager = default!; diff --git a/Content.Server/NPC/HTN/Preconditions/HTNPrecondition.cs b/Content.Server/NPC/HTN/Preconditions/HTNPrecondition.cs index 959acb90e0..9ae18507c7 100644 --- a/Content.Server/NPC/HTN/Preconditions/HTNPrecondition.cs +++ b/Content.Server/NPC/HTN/Preconditions/HTNPrecondition.cs @@ -4,7 +4,7 @@ namespace Content.Server.NPC.HTN.Preconditions; /// Condition that needs to be true for a particular primitive task or compound task branch. /// [ImplicitDataDefinitionForInheritors] -public abstract class HTNPrecondition +public abstract partial class HTNPrecondition { /// /// Handles one-time initialization of this precondition. diff --git a/Content.Server/NPC/HTN/Preconditions/KeyExistsPrecondition.cs b/Content.Server/NPC/HTN/Preconditions/KeyExistsPrecondition.cs index 766f85241f..72c4e6367f 100644 --- a/Content.Server/NPC/HTN/Preconditions/KeyExistsPrecondition.cs +++ b/Content.Server/NPC/HTN/Preconditions/KeyExistsPrecondition.cs @@ -1,6 +1,6 @@ namespace Content.Server.NPC.HTN.Preconditions; -public sealed class KeyExistsPrecondition : HTNPrecondition +public sealed partial class KeyExistsPrecondition : HTNPrecondition { [DataField("key", required: true)] public string Key = string.Empty; diff --git a/Content.Server/NPC/HTN/Preconditions/PulledPrecondition.cs b/Content.Server/NPC/HTN/Preconditions/PulledPrecondition.cs index d20dd55720..64a72b13cf 100644 --- a/Content.Server/NPC/HTN/Preconditions/PulledPrecondition.cs +++ b/Content.Server/NPC/HTN/Preconditions/PulledPrecondition.cs @@ -5,7 +5,7 @@ namespace Content.Server.NPC.HTN.Preconditions; /// /// Checks if the owner is being pulled or not. /// -public sealed class PulledPrecondition : HTNPrecondition +public sealed partial class PulledPrecondition : HTNPrecondition { private SharedPullingSystem _pulling = default!; diff --git a/Content.Server/NPC/HTN/Preconditions/TargetInLOSPrecondition.cs b/Content.Server/NPC/HTN/Preconditions/TargetInLOSPrecondition.cs index a80451075f..0b233292a4 100644 --- a/Content.Server/NPC/HTN/Preconditions/TargetInLOSPrecondition.cs +++ b/Content.Server/NPC/HTN/Preconditions/TargetInLOSPrecondition.cs @@ -2,7 +2,7 @@ using Content.Server.Interaction; namespace Content.Server.NPC.HTN.Preconditions; -public sealed class TargetInLOSPrecondition : HTNPrecondition +public sealed partial class TargetInLOSPrecondition : HTNPrecondition { [Dependency] private readonly IEntityManager _entManager = default!; private InteractionSystem _interaction = default!; diff --git a/Content.Server/NPC/HTN/Preconditions/TargetInRangePrecondition.cs b/Content.Server/NPC/HTN/Preconditions/TargetInRangePrecondition.cs index 85eaf2f7b4..5d616ba630 100644 --- a/Content.Server/NPC/HTN/Preconditions/TargetInRangePrecondition.cs +++ b/Content.Server/NPC/HTN/Preconditions/TargetInRangePrecondition.cs @@ -5,7 +5,7 @@ namespace Content.Server.NPC.HTN.Preconditions; /// /// Is the specified key within the specified range of us. /// -public sealed class TargetInRangePrecondition : HTNPrecondition +public sealed partial class TargetInRangePrecondition : HTNPrecondition { [Dependency] private readonly IEntityManager _entManager = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/HTNOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/HTNOperator.cs index 145fb7a5b9..d89fa92ceb 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/HTNOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/HTNOperator.cs @@ -8,7 +8,7 @@ namespace Content.Server.NPC.HTN.PrimitiveTasks; /// Concrete code that gets run for an NPC task. /// [ImplicitDataDefinitionForInheritors, MeansImplicitUse] -public abstract class HTNOperator +public abstract partial class HTNOperator { /// /// Called once whenever prototypes reload. Typically used to inject dependencies. diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/HTNPrimitiveTask.cs b/Content.Server/NPC/HTN/PrimitiveTasks/HTNPrimitiveTask.cs index 49be119d1b..476f9dcf22 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/HTNPrimitiveTask.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/HTNPrimitiveTask.cs @@ -4,7 +4,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.NPC.HTN.PrimitiveTasks; -public sealed class HTNPrimitiveTask : HTNTask +public sealed partial class HTNPrimitiveTask : HTNTask { /// /// Should we re-apply our blackboard state as a result of our operator during startup? diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Combat/JukeOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Combat/JukeOperator.cs index 8ca900954f..02a3b08510 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Combat/JukeOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Combat/JukeOperator.cs @@ -2,7 +2,7 @@ using Content.Server.NPC.Components; namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators.Combat; -public sealed class JukeOperator : HTNOperator, IHtnConditionalShutdown +public sealed partial class JukeOperator : HTNOperator, IHtnConditionalShutdown { [Dependency] private readonly IEntityManager _entManager = default!; @@ -10,7 +10,7 @@ public sealed class JukeOperator : HTNOperator, IHtnConditionalShutdown public JukeType JukeType = JukeType.AdjacentTile; [DataField("shutdownState")] - public HTNPlanState ShutdownState { get; } = HTNPlanState.PlanFinished; + public HTNPlanState ShutdownState { get; private set; } = HTNPlanState.PlanFinished; public override void Startup(NPCBlackboard blackboard) { diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Combat/Melee/MeleeOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Combat/Melee/MeleeOperator.cs index 80ac6f10e7..c40b037d98 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Combat/Melee/MeleeOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Combat/Melee/MeleeOperator.cs @@ -10,7 +10,7 @@ namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators.Combat.Melee; /// /// Attacks the specified key in melee combat. /// -public sealed class MeleeOperator : HTNOperator, IHtnConditionalShutdown +public sealed partial class MeleeOperator : HTNOperator, IHtnConditionalShutdown { [Dependency] private readonly IEntityManager _entManager = default!; @@ -18,7 +18,7 @@ public sealed class MeleeOperator : HTNOperator, IHtnConditionalShutdown /// When to shut the task down. /// [DataField("shutdownState")] - public HTNPlanState ShutdownState { get; } = HTNPlanState.TaskFinished; + public HTNPlanState ShutdownState { get; private set; } = HTNPlanState.TaskFinished; /// /// Key that contains the target entity. diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Combat/Ranged/GunOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Combat/Ranged/GunOperator.cs index e0fe35fbf2..53c5ed1952 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Combat/Ranged/GunOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Combat/Ranged/GunOperator.cs @@ -8,12 +8,12 @@ using Robust.Shared.Audio; namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators.Combat.Ranged; -public sealed class GunOperator : HTNOperator, IHtnConditionalShutdown +public sealed partial class GunOperator : HTNOperator, IHtnConditionalShutdown { [Dependency] private readonly IEntityManager _entManager = default!; [DataField("shutdownState")] - public HTNPlanState ShutdownState { get; } = HTNPlanState.TaskFinished; + public HTNPlanState ShutdownState { get; private set; } = HTNPlanState.TaskFinished; /// /// Key that contains the target entity. diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/AltInteractOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/AltInteractOperator.cs index 9938613966..c6075961f6 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/AltInteractOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/AltInteractOperator.cs @@ -6,7 +6,7 @@ using Content.Shared.Interaction; namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators.Interactions; -public sealed class AltInteractOperator : HTNOperator +public sealed partial class AltInteractOperator : HTNOperator { [Dependency] private readonly IEntityManager _entManager = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/DropOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/DropOperator.cs index 68d49a60fb..0ea062a910 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/DropOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/DropOperator.cs @@ -6,7 +6,7 @@ namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators.Interactions; /// /// Drops the active hand entity underneath us. /// -public sealed class DropOperator : HTNOperator +public sealed partial class DropOperator : HTNOperator { [Dependency] private readonly IEntityManager _entManager = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/EquipOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/EquipOperator.cs index fbd3d7ab57..e64a7184e4 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/EquipOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/EquipOperator.cs @@ -2,7 +2,7 @@ using Content.Server.Hands.Systems; namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators.Interactions; -public sealed class EquipOperator : HTNOperator +public sealed partial class EquipOperator : HTNOperator { [Dependency] private readonly IEntityManager _entManager = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/InteractWithOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/InteractWithOperator.cs index 133c4f4723..d3f4f2ea8d 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/InteractWithOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/InteractWithOperator.cs @@ -4,7 +4,7 @@ using Content.Shared.Timing; namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators.Interactions; -public sealed class InteractWithOperator : HTNOperator +public sealed partial class InteractWithOperator : HTNOperator { [Dependency] private readonly IEntityManager _entManager = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/SwapToFreeHandOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/SwapToFreeHandOperator.cs index fc1b671762..97307f49dc 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/SwapToFreeHandOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Interactions/SwapToFreeHandOperator.cs @@ -9,7 +9,7 @@ namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators.Interactions; /// /// Swaps to any free hand. /// -public sealed class SwapToFreeHandOperator : HTNOperator +public sealed partial class SwapToFreeHandOperator : HTNOperator { [Dependency] private readonly IEntityManager _entManager = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/MoveToOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/MoveToOperator.cs index e63026a8c9..dd35d2112c 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/MoveToOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/MoveToOperator.cs @@ -11,7 +11,7 @@ namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators; /// /// Moves an NPC to the specified target key. Hands the actual steering off to NPCSystem.Steering /// -public sealed class MoveToOperator : HTNOperator, IHtnConditionalShutdown +public sealed partial class MoveToOperator : HTNOperator, IHtnConditionalShutdown { [Dependency] private readonly IEntityManager _entManager = default!; [Dependency] private readonly IMapManager _mapManager = default!; @@ -23,7 +23,7 @@ public sealed class MoveToOperator : HTNOperator, IHtnConditionalShutdown /// When to shut the task down. /// [DataField("shutdownState")] - public HTNPlanState ShutdownState { get; } = HTNPlanState.TaskFinished; + public HTNPlanState ShutdownState { get; private set; } = HTNPlanState.TaskFinished; /// /// Should we assume the MovementTarget is reachable during planning or should we pathfind to it? diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/NoOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/NoOperator.cs index 550d232a73..672516dbd8 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/NoOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/NoOperator.cs @@ -3,7 +3,7 @@ namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators; /// /// What it sounds like. /// -public sealed class NoOperator : HTNOperator +public sealed partial class NoOperator : HTNOperator { } diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/PickAccessibleComponentOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/PickAccessibleComponentOperator.cs index 53f1826c82..9f89669f2d 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/PickAccessibleComponentOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/PickAccessibleComponentOperator.cs @@ -9,7 +9,7 @@ namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators; /// /// Picks a nearby component that is accessible. /// -public sealed class PickAccessibleComponentOperator : HTNOperator +public sealed partial class PickAccessibleComponentOperator : HTNOperator { [Dependency] private readonly IComponentFactory _factory = default!; [Dependency] private readonly IEntityManager _entManager = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/PickAccessibleOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/PickAccessibleOperator.cs index 2de9b6d695..9025be1258 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/PickAccessibleOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/PickAccessibleOperator.cs @@ -8,7 +8,7 @@ namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators; /// /// Chooses a nearby coordinate and puts it into the resulting key. /// -public sealed class PickAccessibleOperator : HTNOperator +public sealed partial class PickAccessibleOperator : HTNOperator { [Dependency] private readonly IEntityManager _entManager = default!; private PathfindingSystem _pathfinding = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/PickRandomRotationOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/PickRandomRotationOperator.cs index 6e89120219..38f1c87df7 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/PickRandomRotationOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/PickRandomRotationOperator.cs @@ -4,7 +4,7 @@ using Robust.Shared.Random; namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators; -public sealed class PickRandomRotationOperator : HTNOperator +public sealed partial class PickRandomRotationOperator : HTNOperator { [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/RandomOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/RandomOperator.cs index 1d8a23bd12..b7ba118327 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/RandomOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/RandomOperator.cs @@ -4,7 +4,7 @@ using Robust.Shared.Random; namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators; -public sealed class RandomOperator : HTNOperator +public sealed partial class RandomOperator : HTNOperator { [Dependency] private readonly IEntityManager _entManager = default!; [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/RotateToTargetOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/RotateToTargetOperator.cs index 1adc552b30..71a25bc548 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/RotateToTargetOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/RotateToTargetOperator.cs @@ -2,7 +2,7 @@ using Content.Shared.Interaction; namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators; -public sealed class RotateToTargetOperator : HTNOperator +public sealed partial class RotateToTargetOperator : HTNOperator { [Dependency] private readonly IEntityManager _entityManager = default!; private RotateToFaceSystem _rotate = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/SetFloatOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/SetFloatOperator.cs index 43057cda97..7a460592cb 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/SetFloatOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/SetFloatOperator.cs @@ -6,7 +6,7 @@ namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators; /// /// Just sets a blackboard key to a float /// -public sealed class SetFloatOperator : HTNOperator +public sealed partial class SetFloatOperator : HTNOperator { [DataField("targetKey", required: true)] public string TargetKey = string.Empty; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/SpeakOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/SpeakOperator.cs index eb60bba401..7fb2f91b94 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/SpeakOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/SpeakOperator.cs @@ -2,7 +2,7 @@ using Content.Server.Chat.Systems; namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators; -public sealed class SpeakOperator : HTNOperator +public sealed partial class SpeakOperator : HTNOperator { private ChatSystem _chat = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Specific/MedibotInjectOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Specific/MedibotInjectOperator.cs index 7c60add427..fa43c111b9 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Specific/MedibotInjectOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Specific/MedibotInjectOperator.cs @@ -11,7 +11,7 @@ using Robust.Shared.Player; namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators.Specific; -public sealed class MedibotInjectOperator : HTNOperator +public sealed partial class MedibotInjectOperator : HTNOperator { [Dependency] private readonly IEntityManager _entMan = default!; private SharedAudioSystem _audio = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Specific/PickNearbyInjectableOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Specific/PickNearbyInjectableOperator.cs index 57138bf0bf..2103cd737f 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Specific/PickNearbyInjectableOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Specific/PickNearbyInjectableOperator.cs @@ -11,7 +11,7 @@ using Content.Shared.Emag.Components; namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators.Specific; -public sealed class PickNearbyInjectableOperator : HTNOperator +public sealed partial class PickNearbyInjectableOperator : HTNOperator { [Dependency] private readonly IEntityManager _entManager = default!; private EntityLookupSystem _lookup = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Test/PickPathfindPointOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Test/PickPathfindPointOperator.cs index 15a185e4b2..edb597557a 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Test/PickPathfindPointOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Test/PickPathfindPointOperator.cs @@ -6,7 +6,7 @@ using Robust.Shared.Random; namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators.Test; -public sealed class PickPathfindPointOperator : HTNOperator +public sealed partial class PickPathfindPointOperator : HTNOperator { [Dependency] private readonly IEntityManager _entManager = default!; [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/UtilityOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/UtilityOperator.cs index 8f716ceee0..2bf9b09b10 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/UtilityOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/UtilityOperator.cs @@ -11,7 +11,7 @@ namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators; /// /// Utilises a to determine the best target and sets it to the Key. /// -public sealed class UtilityOperator : HTNOperator +public sealed partial class UtilityOperator : HTNOperator { [Dependency] private readonly IEntityManager _entManager = default!; diff --git a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/WaitOperator.cs b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/WaitOperator.cs index 6c45f2daec..26fea76d70 100644 --- a/Content.Server/NPC/HTN/PrimitiveTasks/Operators/WaitOperator.cs +++ b/Content.Server/NPC/HTN/PrimitiveTasks/Operators/WaitOperator.cs @@ -3,7 +3,7 @@ namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators; /// /// Waits the specified amount of time. Removes the key when finished. /// -public sealed class WaitOperator : HTNOperator +public sealed partial class WaitOperator : HTNOperator { [Dependency] private readonly IEntityManager _entManager = default!; diff --git a/Content.Server/NPC/NPCBlackboard.cs b/Content.Server/NPC/NPCBlackboard.cs index 039ad4b3dc..294d9d8027 100644 --- a/Content.Server/NPC/NPCBlackboard.cs +++ b/Content.Server/NPC/NPCBlackboard.cs @@ -12,7 +12,7 @@ using Robust.Shared.Utility; namespace Content.Server.NPC; [DataDefinition] -public sealed class NPCBlackboard : IEnumerable> +public sealed partial class NPCBlackboard : IEnumerable> { /// /// Global defaults for NPCs diff --git a/Content.Server/NPC/Pathfinding/GridPathfindingComponent.cs b/Content.Server/NPC/Pathfinding/GridPathfindingComponent.cs index edd013c574..335a2bbaa1 100644 --- a/Content.Server/NPC/Pathfinding/GridPathfindingComponent.cs +++ b/Content.Server/NPC/Pathfinding/GridPathfindingComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.NPC.Pathfinding; /// Stores the relevant pathfinding data for grids. /// [RegisterComponent, Access(typeof(PathfindingSystem))] -public sealed class GridPathfindingComponent : Component +public sealed partial class GridPathfindingComponent : Component { [ViewVariables] public readonly HashSet DirtyChunks = new(); diff --git a/Content.Server/NPC/Queries/Considerations/DrinkValueCon.cs b/Content.Server/NPC/Queries/Considerations/DrinkValueCon.cs index 1ab5b20438..d45ab16fc2 100644 --- a/Content.Server/NPC/Queries/Considerations/DrinkValueCon.cs +++ b/Content.Server/NPC/Queries/Considerations/DrinkValueCon.cs @@ -1,6 +1,6 @@ namespace Content.Server.NPC.Queries.Considerations; -public sealed class DrinkValueCon : UtilityConsideration +public sealed partial class DrinkValueCon : UtilityConsideration { } diff --git a/Content.Server/NPC/Queries/Considerations/FoodValueCon.cs b/Content.Server/NPC/Queries/Considerations/FoodValueCon.cs index c10213f3f1..9aabe5c56b 100644 --- a/Content.Server/NPC/Queries/Considerations/FoodValueCon.cs +++ b/Content.Server/NPC/Queries/Considerations/FoodValueCon.cs @@ -1,6 +1,6 @@ namespace Content.Server.NPC.Queries.Considerations; -public sealed class FoodValueCon : UtilityConsideration +public sealed partial class FoodValueCon : UtilityConsideration { } diff --git a/Content.Server/NPC/Queries/Considerations/TargetAccessibleCon.cs b/Content.Server/NPC/Queries/Considerations/TargetAccessibleCon.cs index d47f7417eb..3f2318df25 100644 --- a/Content.Server/NPC/Queries/Considerations/TargetAccessibleCon.cs +++ b/Content.Server/NPC/Queries/Considerations/TargetAccessibleCon.cs @@ -3,7 +3,7 @@ namespace Content.Server.NPC.Queries.Considerations; /// /// Returns 1f if the target is freely accessible (e.g. not in locked storage). /// -public sealed class TargetAccessibleCon : UtilityConsideration +public sealed partial class TargetAccessibleCon : UtilityConsideration { } diff --git a/Content.Server/NPC/Queries/Considerations/TargetAmmoCon.cs b/Content.Server/NPC/Queries/Considerations/TargetAmmoCon.cs index afae94eb47..c57d8bc6d3 100644 --- a/Content.Server/NPC/Queries/Considerations/TargetAmmoCon.cs +++ b/Content.Server/NPC/Queries/Considerations/TargetAmmoCon.cs @@ -1,6 +1,6 @@ namespace Content.Server.NPC.Queries.Considerations; -public sealed class TargetAmmoCon : UtilityConsideration +public sealed partial class TargetAmmoCon : UtilityConsideration { } diff --git a/Content.Server/NPC/Queries/Considerations/TargetAmmoMatchesCon.cs b/Content.Server/NPC/Queries/Considerations/TargetAmmoMatchesCon.cs index 4eac5d5138..564848e660 100644 --- a/Content.Server/NPC/Queries/Considerations/TargetAmmoMatchesCon.cs +++ b/Content.Server/NPC/Queries/Considerations/TargetAmmoMatchesCon.cs @@ -3,7 +3,7 @@ namespace Content.Server.NPC.Queries.Considerations; /// /// Returns 1f where the specified target is valid for the active hand's whitelist. /// -public sealed class TargetAmmoMatchesCon : UtilityConsideration +public sealed partial class TargetAmmoMatchesCon : UtilityConsideration { } diff --git a/Content.Server/NPC/Queries/Considerations/TargetDistanceCon.cs b/Content.Server/NPC/Queries/Considerations/TargetDistanceCon.cs index a2cb99baf1..cd7ff54872 100644 --- a/Content.Server/NPC/Queries/Considerations/TargetDistanceCon.cs +++ b/Content.Server/NPC/Queries/Considerations/TargetDistanceCon.cs @@ -1,6 +1,6 @@ namespace Content.Server.NPC.Queries.Considerations; -public sealed class TargetDistanceCon : UtilityConsideration +public sealed partial class TargetDistanceCon : UtilityConsideration { } diff --git a/Content.Server/NPC/Queries/Considerations/TargetHealthCon.cs b/Content.Server/NPC/Queries/Considerations/TargetHealthCon.cs index a6496670af..d4e8a277ea 100644 --- a/Content.Server/NPC/Queries/Considerations/TargetHealthCon.cs +++ b/Content.Server/NPC/Queries/Considerations/TargetHealthCon.cs @@ -1,6 +1,6 @@ namespace Content.Server.NPC.Queries.Considerations; -public sealed class TargetHealthCon : UtilityConsideration +public sealed partial class TargetHealthCon : UtilityConsideration { } diff --git a/Content.Server/NPC/Queries/Considerations/TargetInLOSCon.cs b/Content.Server/NPC/Queries/Considerations/TargetInLOSCon.cs index 219a301f0b..8d4480a305 100644 --- a/Content.Server/NPC/Queries/Considerations/TargetInLOSCon.cs +++ b/Content.Server/NPC/Queries/Considerations/TargetInLOSCon.cs @@ -3,7 +3,7 @@ namespace Content.Server.NPC.Queries.Considerations; /// /// Returns whether the target is in line-of-sight. /// -public sealed class TargetInLOSCon : UtilityConsideration +public sealed partial class TargetInLOSCon : UtilityConsideration { } diff --git a/Content.Server/NPC/Queries/Considerations/TargetInLOSOrCurrentCon.cs b/Content.Server/NPC/Queries/Considerations/TargetInLOSOrCurrentCon.cs index 2919a91c11..8701c17c73 100644 --- a/Content.Server/NPC/Queries/Considerations/TargetInLOSOrCurrentCon.cs +++ b/Content.Server/NPC/Queries/Considerations/TargetInLOSOrCurrentCon.cs @@ -3,7 +3,7 @@ namespace Content.Server.NPC.Queries.Considerations; /// /// Placeholder considerations -> returns 1f if they're in LOS or the current target. /// -public sealed class TargetInLOSOrCurrentCon : UtilityConsideration +public sealed partial class TargetInLOSOrCurrentCon : UtilityConsideration { } diff --git a/Content.Server/NPC/Queries/Considerations/TargetIsAliveCon.cs b/Content.Server/NPC/Queries/Considerations/TargetIsAliveCon.cs index 3c74811ca6..7892d9afb4 100644 --- a/Content.Server/NPC/Queries/Considerations/TargetIsAliveCon.cs +++ b/Content.Server/NPC/Queries/Considerations/TargetIsAliveCon.cs @@ -3,7 +3,7 @@ namespace Content.Server.NPC.Queries.Considerations; /// /// Returns 1f if the target is alive or 0f if not. /// -public sealed class TargetIsAliveCon : UtilityConsideration +public sealed partial class TargetIsAliveCon : UtilityConsideration { } diff --git a/Content.Server/NPC/Queries/Considerations/TargetIsCritCon.cs b/Content.Server/NPC/Queries/Considerations/TargetIsCritCon.cs index 03c73a14df..0eb9f94855 100644 --- a/Content.Server/NPC/Queries/Considerations/TargetIsCritCon.cs +++ b/Content.Server/NPC/Queries/Considerations/TargetIsCritCon.cs @@ -3,7 +3,7 @@ namespace Content.Server.NPC.Queries.Considerations; /// /// Returns 1f if the target is crit or 0f if not. /// -public sealed class TargetIsCritCon : UtilityConsideration +public sealed partial class TargetIsCritCon : UtilityConsideration { } diff --git a/Content.Server/NPC/Queries/Considerations/TargetIsDeadCon.cs b/Content.Server/NPC/Queries/Considerations/TargetIsDeadCon.cs index 53e0a9b595..8a08e1938f 100644 --- a/Content.Server/NPC/Queries/Considerations/TargetIsDeadCon.cs +++ b/Content.Server/NPC/Queries/Considerations/TargetIsDeadCon.cs @@ -3,7 +3,7 @@ namespace Content.Server.NPC.Queries.Considerations; /// /// Returns 1f if the target is dead or 0f if not. /// -public sealed class TargetIsDeadCon : UtilityConsideration +public sealed partial class TargetIsDeadCon : UtilityConsideration { } diff --git a/Content.Server/NPC/Queries/Considerations/TargetMeleeCon.cs b/Content.Server/NPC/Queries/Considerations/TargetMeleeCon.cs index 5be6ee65b5..d825bbde70 100644 --- a/Content.Server/NPC/Queries/Considerations/TargetMeleeCon.cs +++ b/Content.Server/NPC/Queries/Considerations/TargetMeleeCon.cs @@ -3,7 +3,7 @@ namespace Content.Server.NPC.Queries.Considerations; /// /// Gets the DPS out of 100. /// -public sealed class TargetMeleeCon : UtilityConsideration +public sealed partial class TargetMeleeCon : UtilityConsideration { } diff --git a/Content.Server/NPC/Queries/Considerations/UtilityConsideration.cs b/Content.Server/NPC/Queries/Considerations/UtilityConsideration.cs index e74b7aa959..75b215fe68 100644 --- a/Content.Server/NPC/Queries/Considerations/UtilityConsideration.cs +++ b/Content.Server/NPC/Queries/Considerations/UtilityConsideration.cs @@ -4,7 +4,7 @@ using JetBrains.Annotations; namespace Content.Server.NPC.Queries.Considerations; [ImplicitDataDefinitionForInheritors, MeansImplicitUse] -public abstract class UtilityConsideration +public abstract partial class UtilityConsideration { [DataField("curve", required: true)] public IUtilityCurve Curve = default!; diff --git a/Content.Server/NPC/Queries/Curves/BoolCurve.cs b/Content.Server/NPC/Queries/Curves/BoolCurve.cs index 70651167a9..8ba043825c 100644 --- a/Content.Server/NPC/Queries/Curves/BoolCurve.cs +++ b/Content.Server/NPC/Queries/Curves/BoolCurve.cs @@ -1,5 +1,5 @@ namespace Content.Server.NPC.Queries.Curves; -public sealed class BoolCurve : IUtilityCurve +public sealed partial class BoolCurve : IUtilityCurve { } diff --git a/Content.Server/NPC/Queries/Curves/IUtilityCurve.cs b/Content.Server/NPC/Queries/Curves/IUtilityCurve.cs index db48f32d2e..d4dc6ee034 100644 --- a/Content.Server/NPC/Queries/Curves/IUtilityCurve.cs +++ b/Content.Server/NPC/Queries/Curves/IUtilityCurve.cs @@ -1,7 +1,7 @@ namespace Content.Server.NPC.Queries.Curves; [ImplicitDataDefinitionForInheritors] -public interface IUtilityCurve +public partial interface IUtilityCurve { } diff --git a/Content.Server/NPC/Queries/Curves/InverseBoolCurve.cs b/Content.Server/NPC/Queries/Curves/InverseBoolCurve.cs index 13b31771c7..cca7ebd87c 100644 --- a/Content.Server/NPC/Queries/Curves/InverseBoolCurve.cs +++ b/Content.Server/NPC/Queries/Curves/InverseBoolCurve.cs @@ -1,6 +1,6 @@ namespace Content.Server.NPC.Queries.Curves; -public sealed class InverseBoolCurve : IUtilityCurve +public sealed partial class InverseBoolCurve : IUtilityCurve { } diff --git a/Content.Server/NPC/Queries/Curves/PresetCurve.cs b/Content.Server/NPC/Queries/Curves/PresetCurve.cs index 689be8e2ec..8e62e41422 100644 --- a/Content.Server/NPC/Queries/Curves/PresetCurve.cs +++ b/Content.Server/NPC/Queries/Curves/PresetCurve.cs @@ -2,7 +2,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.NPC.Queries.Curves; -public sealed class PresetCurve : IUtilityCurve +public sealed partial class PresetCurve : IUtilityCurve { - [DataField("preset", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public readonly string Preset = default!; + [DataField("preset", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Preset = default!; } diff --git a/Content.Server/NPC/Queries/Curves/QuadraticCurve.cs b/Content.Server/NPC/Queries/Curves/QuadraticCurve.cs index 76ad92c2a4..a20e638c1e 100644 --- a/Content.Server/NPC/Queries/Curves/QuadraticCurve.cs +++ b/Content.Server/NPC/Queries/Curves/QuadraticCurve.cs @@ -1,12 +1,12 @@ namespace Content.Server.NPC.Queries.Curves; -public sealed class QuadraticCurve : IUtilityCurve +public sealed partial class QuadraticCurve : IUtilityCurve { - [DataField("slope")] public readonly float Slope = 1f; + [DataField("slope")] public float Slope = 1f; - [DataField("exponent")] public readonly float Exponent = 1f; + [DataField("exponent")] public float Exponent = 1f; - [DataField("yOffset")] public readonly float YOffset; + [DataField("yOffset")] public float YOffset; - [DataField("xOffset")] public readonly float XOffset; + [DataField("xOffset")] public float XOffset; } diff --git a/Content.Server/NPC/Queries/Queries/ClothingSlotFilter.cs b/Content.Server/NPC/Queries/Queries/ClothingSlotFilter.cs index 427b388112..fab90dd2c1 100644 --- a/Content.Server/NPC/Queries/Queries/ClothingSlotFilter.cs +++ b/Content.Server/NPC/Queries/Queries/ClothingSlotFilter.cs @@ -2,7 +2,7 @@ using Content.Shared.Inventory; namespace Content.Server.NPC.Queries.Queries; -public sealed class ClothingSlotFilter : UtilityQueryFilter +public sealed partial class ClothingSlotFilter : UtilityQueryFilter { [DataField("slotFlags", required: true)] public SlotFlags SlotFlags = SlotFlags.NONE; diff --git a/Content.Server/NPC/Queries/Queries/ComponentFilter.cs b/Content.Server/NPC/Queries/Queries/ComponentFilter.cs index f89a00d77b..0df4bd902f 100644 --- a/Content.Server/NPC/Queries/Queries/ComponentFilter.cs +++ b/Content.Server/NPC/Queries/Queries/ComponentFilter.cs @@ -2,7 +2,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.NPC.Queries.Queries; -public sealed class ComponentFilter : UtilityQueryFilter +public sealed partial class ComponentFilter : UtilityQueryFilter { /// /// Components to filter for. diff --git a/Content.Server/NPC/Queries/Queries/ComponentQuery.cs b/Content.Server/NPC/Queries/Queries/ComponentQuery.cs index f426fc4f40..ed1c37eabc 100644 --- a/Content.Server/NPC/Queries/Queries/ComponentQuery.cs +++ b/Content.Server/NPC/Queries/Queries/ComponentQuery.cs @@ -5,7 +5,7 @@ namespace Content.Server.NPC.Queries.Queries; /// /// Returns nearby components that match the specified components. /// -public sealed class ComponentQuery : UtilityQuery +public sealed partial class ComponentQuery : UtilityQuery { [DataField("components", required: true)] public ComponentRegistry Components = default!; diff --git a/Content.Server/NPC/Queries/Queries/InventoryQuery.cs b/Content.Server/NPC/Queries/Queries/InventoryQuery.cs index b1b250d820..0cb432f664 100644 --- a/Content.Server/NPC/Queries/Queries/InventoryQuery.cs +++ b/Content.Server/NPC/Queries/Queries/InventoryQuery.cs @@ -3,7 +3,7 @@ namespace Content.Server.NPC.Queries.Queries; /// /// Returns inventory entities recursively. /// -public sealed class InventoryQuery : UtilityQuery +public sealed partial class InventoryQuery : UtilityQuery { } diff --git a/Content.Server/NPC/Queries/Queries/NearbyHostilesQuery.cs b/Content.Server/NPC/Queries/Queries/NearbyHostilesQuery.cs index 25e53438f6..d6a6efbdb1 100644 --- a/Content.Server/NPC/Queries/Queries/NearbyHostilesQuery.cs +++ b/Content.Server/NPC/Queries/Queries/NearbyHostilesQuery.cs @@ -5,7 +5,7 @@ namespace Content.Server.NPC.Queries.Queries; /// /// Returns nearby entities considered hostile from /// -public sealed class NearbyHostilesQuery : UtilityQuery +public sealed partial class NearbyHostilesQuery : UtilityQuery { } diff --git a/Content.Server/NPC/Queries/Queries/PuddleFilter.cs b/Content.Server/NPC/Queries/Queries/PuddleFilter.cs index 65ebfda395..436a97d74f 100644 --- a/Content.Server/NPC/Queries/Queries/PuddleFilter.cs +++ b/Content.Server/NPC/Queries/Queries/PuddleFilter.cs @@ -1,6 +1,6 @@ namespace Content.Server.NPC.Queries.Queries; -public sealed class PuddleFilter : UtilityQueryFilter +public sealed partial class PuddleFilter : UtilityQueryFilter { } diff --git a/Content.Server/NPC/Queries/Queries/PuddlesQuery.cs b/Content.Server/NPC/Queries/Queries/PuddlesQuery.cs index 791e5bee82..0c88cc2de6 100644 --- a/Content.Server/NPC/Queries/Queries/PuddlesQuery.cs +++ b/Content.Server/NPC/Queries/Queries/PuddlesQuery.cs @@ -1,6 +1,6 @@ namespace Content.Server.NPC.Queries.Queries; -public sealed class PuddlesQuery : UtilityQuery +public sealed partial class PuddlesQuery : UtilityQuery { } diff --git a/Content.Server/NPC/Queries/Queries/UtilityQuery.cs b/Content.Server/NPC/Queries/Queries/UtilityQuery.cs index 401d41c2a1..c457b8aef7 100644 --- a/Content.Server/NPC/Queries/Queries/UtilityQuery.cs +++ b/Content.Server/NPC/Queries/Queries/UtilityQuery.cs @@ -4,7 +4,7 @@ namespace Content.Server.NPC.Queries.Queries; /// Adds entities to a query. /// [ImplicitDataDefinitionForInheritors] -public abstract class UtilityQuery +public abstract partial class UtilityQuery { -} \ No newline at end of file +} diff --git a/Content.Server/NPC/Queries/Queries/UtilityQueryFilter.cs b/Content.Server/NPC/Queries/Queries/UtilityQueryFilter.cs index 906cf23be3..99f6f86c51 100644 --- a/Content.Server/NPC/Queries/Queries/UtilityQueryFilter.cs +++ b/Content.Server/NPC/Queries/Queries/UtilityQueryFilter.cs @@ -3,7 +3,7 @@ namespace Content.Server.NPC.Queries.Queries; /// /// Removes entities from a query. /// -public abstract class UtilityQueryFilter : UtilityQuery +public abstract partial class UtilityQueryFilter : UtilityQuery { -} \ No newline at end of file +} diff --git a/Content.Server/NPC/Queries/UtilityQueryPrototype.cs b/Content.Server/NPC/Queries/UtilityQueryPrototype.cs index 934ac89926..e9b7e244fd 100644 --- a/Content.Server/NPC/Queries/UtilityQueryPrototype.cs +++ b/Content.Server/NPC/Queries/UtilityQueryPrototype.cs @@ -13,7 +13,7 @@ namespace Content.Server.NPC.Queries; public sealed class UtilityQueryPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [ViewVariables(VVAccess.ReadWrite), DataField("query")] public List Query = new(); diff --git a/Content.Server/NPC/Queries/UtilityService.cs b/Content.Server/NPC/Queries/UtilityService.cs index d8b0a3457d..295cd995b0 100644 --- a/Content.Server/NPC/Queries/UtilityService.cs +++ b/Content.Server/NPC/Queries/UtilityService.cs @@ -6,7 +6,7 @@ namespace Content.Server.NPC.Queries; /// Utility queries that run regularly to update an NPC without re-doing their thinking logic. /// [DataDefinition] -public sealed class UtilityService +public sealed partial class UtilityService { /// /// Identifier to use for this service. This is used to track its cooldown. diff --git a/Content.Server/NodeContainer/NodeContainerComponent.cs b/Content.Server/NodeContainer/NodeContainerComponent.cs index 39a4f48771..de4586d9ac 100644 --- a/Content.Server/NodeContainer/NodeContainerComponent.cs +++ b/Content.Server/NodeContainer/NodeContainerComponent.cs @@ -7,10 +7,10 @@ namespace Content.Server.NodeContainer /// Creates and maintains a set of s. /// [RegisterComponent] - public sealed class NodeContainerComponent : Component + public sealed partial class NodeContainerComponent : Component { //HACK: THIS BEING readOnly IS A FILTHY HACK AND I HATE IT --moony - [DataField("nodes", readOnly: true)] public Dictionary Nodes { get; } = new(); + [DataField("nodes", readOnly: true)] public Dictionary Nodes { get; private set; } = new(); [DataField("examinable")] public bool Examinable = false; } diff --git a/Content.Server/NodeContainer/Nodes/AdjacentNode.cs b/Content.Server/NodeContainer/Nodes/AdjacentNode.cs index cbead87846..6df534b285 100644 --- a/Content.Server/NodeContainer/Nodes/AdjacentNode.cs +++ b/Content.Server/NodeContainer/Nodes/AdjacentNode.cs @@ -7,7 +7,7 @@ namespace Content.Server.NodeContainer.Nodes /// A that can reach other s that are directly adjacent to it. /// [DataDefinition] - public sealed class AdjacentNode : Node + public sealed partial class AdjacentNode : Node { public override IEnumerable GetReachableNodes(TransformComponent xform, EntityQuery nodeQuery, diff --git a/Content.Server/NodeContainer/Nodes/Node.cs b/Content.Server/NodeContainer/Nodes/Node.cs index 480fa271a3..fe9299e453 100644 --- a/Content.Server/NodeContainer/Nodes/Node.cs +++ b/Content.Server/NodeContainer/Nodes/Node.cs @@ -10,7 +10,7 @@ namespace Content.Server.NodeContainer.Nodes /// that they can "reach" and have the same . /// [ImplicitDataDefinitionForInheritors] - public abstract class Node + public abstract partial class Node { /// /// An ID used as a criteria for combining into groups. Determines which @@ -49,7 +49,7 @@ namespace Content.Server.NodeContainer.Nodes [ViewVariables(VVAccess.ReadWrite)] [DataField("needAnchored")] - public bool NeedAnchored { get; } = true; + public bool NeedAnchored { get; private set; } = true; public virtual void OnAnchorStateChanged(IEntityManager entityManager, bool anchored) { } diff --git a/Content.Server/NodeContainer/Nodes/PipeNode.cs b/Content.Server/NodeContainer/Nodes/PipeNode.cs index a10efcfa77..14afa2f108 100644 --- a/Content.Server/NodeContainer/Nodes/PipeNode.cs +++ b/Content.Server/NodeContainer/Nodes/PipeNode.cs @@ -14,7 +14,7 @@ namespace Content.Server.NodeContainer.Nodes /// [DataDefinition] [Virtual] - public class PipeNode : Node, IGasMixtureHolder, IRotatableNode + public partial class PipeNode : Node, IGasMixtureHolder, IRotatableNode { /// /// The directions in which this pipe can connect to other pipes around it. diff --git a/Content.Server/NodeContainer/Nodes/PortPipeNode.cs b/Content.Server/NodeContainer/Nodes/PortPipeNode.cs index 5a11b75286..69d85b4224 100644 --- a/Content.Server/NodeContainer/Nodes/PortPipeNode.cs +++ b/Content.Server/NodeContainer/Nodes/PortPipeNode.cs @@ -4,7 +4,7 @@ using Robust.Shared.Map.Components; namespace Content.Server.NodeContainer.Nodes { [DataDefinition] - public sealed class PortPipeNode : PipeNode + public sealed partial class PortPipeNode : PipeNode { public override IEnumerable GetReachableNodes(TransformComponent xform, EntityQuery nodeQuery, diff --git a/Content.Server/NodeContainer/Nodes/PortablePipeNode.cs b/Content.Server/NodeContainer/Nodes/PortablePipeNode.cs index a8a2dd65de..287cd6b3b5 100644 --- a/Content.Server/NodeContainer/Nodes/PortablePipeNode.cs +++ b/Content.Server/NodeContainer/Nodes/PortablePipeNode.cs @@ -4,7 +4,7 @@ using Robust.Shared.Map.Components; namespace Content.Server.NodeContainer.Nodes { [DataDefinition] - public sealed class PortablePipeNode : PipeNode + public sealed partial class PortablePipeNode : PipeNode { public override IEnumerable GetReachableNodes(TransformComponent xform, EntityQuery nodeQuery, diff --git a/Content.Server/Nuke/NukeCodePaperComponent.cs b/Content.Server/Nuke/NukeCodePaperComponent.cs index 0056503698..7dfda0236a 100644 --- a/Content.Server/Nuke/NukeCodePaperComponent.cs +++ b/Content.Server/Nuke/NukeCodePaperComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Nuke /// Can be used in mapping or admins spawn. /// [RegisterComponent] - public sealed class NukeCodePaperComponent : Component + public sealed partial class NukeCodePaperComponent : Component { /// /// Whether or not paper will contain a code for a nuke on the same diff --git a/Content.Server/Nuke/NukeComponent.cs b/Content.Server/Nuke/NukeComponent.cs index dca093f053..2b9c9fe01e 100644 --- a/Content.Server/Nuke/NukeComponent.cs +++ b/Content.Server/Nuke/NukeComponent.cs @@ -16,7 +16,7 @@ namespace Content.Server.Nuke /// [RegisterComponent] [Access(typeof(NukeSystem))] - public sealed class NukeComponent : SharedNukeComponent + public sealed partial class NukeComponent : SharedNukeComponent { /// /// Default bomb timer value in seconds. diff --git a/Content.Server/Nuke/NukeLabelComponent.cs b/Content.Server/Nuke/NukeLabelComponent.cs index 9156747628..a8e4786888 100644 --- a/Content.Server/Nuke/NukeLabelComponent.cs +++ b/Content.Server/Nuke/NukeLabelComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Nuke; /// This is a separate component because the fake nuclear bomb keg exists. /// [RegisterComponent] -public sealed class NukeLabelComponent : Component +public sealed partial class NukeLabelComponent : Component { [DataField("prefix")] public string NukeLabel = "nuke-label-nanotrasen"; [DataField("serialLength")] public int SerialLength = 6; diff --git a/Content.Server/Nutrition/Components/BadDrinkComponent.cs b/Content.Server/Nutrition/Components/BadDrinkComponent.cs index 6512f44466..5b9e5a6297 100644 --- a/Content.Server/Nutrition/Components/BadDrinkComponent.cs +++ b/Content.Server/Nutrition/Components/BadDrinkComponent.cs @@ -7,6 +7,6 @@ namespace Content.Server.Nutrition.Components; /// Including but not limited to: puddles /// [RegisterComponent, Access(typeof(DrinkSystem))] -public sealed class BadDrinkComponent : Component +public sealed partial class BadDrinkComponent : Component { } diff --git a/Content.Server/Nutrition/Components/BadFoodComponent.cs b/Content.Server/Nutrition/Components/BadFoodComponent.cs index 901575e01c..0924b465a4 100644 --- a/Content.Server/Nutrition/Components/BadFoodComponent.cs +++ b/Content.Server/Nutrition/Components/BadFoodComponent.cs @@ -7,6 +7,6 @@ namespace Content.Server.Nutrition.Components; /// Including but not limited to: uranium, death pills, insulation /// [RegisterComponent, Access(typeof(FoodSystem))] -public sealed class BadFoodComponent : Component +public sealed partial class BadFoodComponent : Component { } diff --git a/Content.Server/Nutrition/Components/CigarComponent.cs b/Content.Server/Nutrition/Components/CigarComponent.cs index b839f97cd0..1ec94d5bd5 100644 --- a/Content.Server/Nutrition/Components/CigarComponent.cs +++ b/Content.Server/Nutrition/Components/CigarComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Nutrition.Components /// A disposable, single-use smokable. /// [RegisterComponent, Access(typeof(SmokingSystem))] - public sealed class CigarComponent : Component + public sealed partial class CigarComponent : Component { } } diff --git a/Content.Server/Nutrition/Components/DrinkComponent.cs b/Content.Server/Nutrition/Components/DrinkComponent.cs index 2ffaa8a357..aa467d3e61 100644 --- a/Content.Server/Nutrition/Components/DrinkComponent.cs +++ b/Content.Server/Nutrition/Components/DrinkComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Nutrition.Components { [RegisterComponent] [Access(typeof(DrinkSystem))] - public sealed class DrinkComponent : Component + public sealed partial class DrinkComponent : Component { [DataField("solution")] public string SolutionName { get; set; } = DefaultSolutionName; diff --git a/Content.Server/Nutrition/Components/FatExtractorComponent.cs b/Content.Server/Nutrition/Components/FatExtractorComponent.cs index 4d70ead8fc..61bb85f9ec 100644 --- a/Content.Server/Nutrition/Components/FatExtractorComponent.cs +++ b/Content.Server/Nutrition/Components/FatExtractorComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Nutrition.Components; /// This is used for a machine that extracts hunger from entities and creates meat. Yum! /// [RegisterComponent, Access(typeof(FatExtractorSystem))] -public sealed class FatExtractorComponent : Component +public sealed partial class FatExtractorComponent : Component { /// /// Whether or not the extractor is currently extracting fat from someone diff --git a/Content.Server/Nutrition/Components/FlavorProfileComponent.cs b/Content.Server/Nutrition/Components/FlavorProfileComponent.cs index 415bcb6367..a4d5c1085a 100644 --- a/Content.Server/Nutrition/Components/FlavorProfileComponent.cs +++ b/Content.Server/Nutrition/Components/FlavorProfileComponent.cs @@ -1,19 +1,19 @@ namespace Content.Server.Nutrition.Components; [RegisterComponent] -public sealed class FlavorProfileComponent : Component +public sealed partial class FlavorProfileComponent : Component { /// /// Localized string containing the base flavor of this entity. /// [DataField("flavors")] - public HashSet Flavors { get; } = new(); + public HashSet Flavors { get; private set; } = new(); /// /// Reagent IDs to ignore when processing this flavor profile. Defaults to nutriment. /// [DataField("ignoreReagents")] - public HashSet IgnoreReagents { get; } = new() + public HashSet IgnoreReagents { get; private set; } = new() { "Nutriment", "Vitamin", diff --git a/Content.Server/Nutrition/Components/FoodComponent.cs b/Content.Server/Nutrition/Components/FoodComponent.cs index 61709e616d..3d75fd633b 100644 --- a/Content.Server/Nutrition/Components/FoodComponent.cs +++ b/Content.Server/Nutrition/Components/FoodComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Nutrition.Components { [RegisterComponent, Access(typeof(FoodSystem))] - public sealed class FoodComponent : Component + public sealed partial class FoodComponent : Component { [DataField("solution")] public string SolutionName { get; set; } = "food"; @@ -39,7 +39,7 @@ namespace Content.Server.Nutrition.Components /// If this is set to true, food can only be eaten if you have a stomach with a /// that includes this entity in its whitelist, /// rather than just being digestible by anything that can eat food. - /// Whitelist the food component to allow eating of normal food. + /// Whitelist the food component to allow eating of normal food. /// [DataField("requiresSpecialDigestion")] public bool RequiresSpecialDigestion = false; diff --git a/Content.Server/Nutrition/Components/IgnoreBadFoodComponent.cs b/Content.Server/Nutrition/Components/IgnoreBadFoodComponent.cs index 734af7000f..cb30b98e19 100644 --- a/Content.Server/Nutrition/Components/IgnoreBadFoodComponent.cs +++ b/Content.Server/Nutrition/Components/IgnoreBadFoodComponent.cs @@ -7,6 +7,6 @@ namespace Content.Server.Nutrition.Components; /// See MobMouseAdmeme for usage. /// [RegisterComponent, Access(typeof(FoodSystem))] -public sealed class IgnoreBadFoodComponent : Component +public sealed partial class IgnoreBadFoodComponent : Component { } diff --git a/Content.Server/Nutrition/Components/IngestionBlockerComponent.cs b/Content.Server/Nutrition/Components/IngestionBlockerComponent.cs index c1764a7e28..68d2b78fba 100644 --- a/Content.Server/Nutrition/Components/IngestionBlockerComponent.cs +++ b/Content.Server/Nutrition/Components/IngestionBlockerComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Nutrition.EntitySystems; /// masks), then this component might become redundant. /// [RegisterComponent, Access(typeof(FoodSystem), typeof(DrinkSystem), typeof(MaskSystem))] -public sealed class IngestionBlockerComponent : Component +public sealed partial class IngestionBlockerComponent : Component { /// /// Is this component currently blocking consumption. diff --git a/Content.Server/Nutrition/Components/SliceableFoodComponent.cs b/Content.Server/Nutrition/Components/SliceableFoodComponent.cs index 26eb0f2d7b..7173e2ecd2 100644 --- a/Content.Server/Nutrition/Components/SliceableFoodComponent.cs +++ b/Content.Server/Nutrition/Components/SliceableFoodComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Audio; namespace Content.Server.Nutrition.Components { [RegisterComponent, Access(typeof(SliceableFoodSystem))] - internal sealed class SliceableFoodComponent : Component + internal sealed partial class SliceableFoodComponent : Component { [DataField("slice")] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Nutrition/Components/SmokingPipeComponent.cs b/Content.Server/Nutrition/Components/SmokingPipeComponent.cs index feafd72a0b..678289a376 100644 --- a/Content.Server/Nutrition/Components/SmokingPipeComponent.cs +++ b/Content.Server/Nutrition/Components/SmokingPipeComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Nutrition.Components /// A reusable vessel for smoking /// [RegisterComponent, Access(typeof(SmokingSystem))] - public sealed class SmokingPipeComponent : Component + public sealed partial class SmokingPipeComponent : Component { public const string BowlSlotId = "bowl_slot"; diff --git a/Content.Server/Nutrition/Components/ThirstComponent.cs b/Content.Server/Nutrition/Components/ThirstComponent.cs index d0fbd00abe..1b2d9049b8 100644 --- a/Content.Server/Nutrition/Components/ThirstComponent.cs +++ b/Content.Server/Nutrition/Components/ThirstComponent.cs @@ -14,7 +14,7 @@ namespace Content.Server.Nutrition.Components } [RegisterComponent] - public sealed class ThirstComponent : Component + public sealed partial class ThirstComponent : Component { // Base stuff [ViewVariables(VVAccess.ReadWrite)] @@ -35,7 +35,7 @@ namespace Content.Server.Nutrition.Components public float CurrentThirst = -1f; [DataField("thresholds")] - public Dictionary ThirstThresholds { get; } = new() + public Dictionary ThirstThresholds { get; private set; } = new() { {ThirstThreshold.OverHydrated, 600.0f}, {ThirstThreshold.Okay, 450.0f}, diff --git a/Content.Server/Nutrition/Components/TrashOnEmptyComponent.cs b/Content.Server/Nutrition/Components/TrashOnEmptyComponent.cs index ee249d703e..b36bd172bf 100644 --- a/Content.Server/Nutrition/Components/TrashOnEmptyComponent.cs +++ b/Content.Server/Nutrition/Components/TrashOnEmptyComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Nutrition.Components /// Used for things like used ketchup packets or used syringes. /// [RegisterComponent] - public sealed class TrashOnEmptyComponent : Component + public sealed partial class TrashOnEmptyComponent : Component { /// /// The name of the solution of which to check emptiness diff --git a/Content.Server/Nutrition/Components/UtensilComponent.cs b/Content.Server/Nutrition/Components/UtensilComponent.cs index 421144011b..4058d7e154 100644 --- a/Content.Server/Nutrition/Components/UtensilComponent.cs +++ b/Content.Server/Nutrition/Components/UtensilComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Audio; namespace Content.Server.Nutrition.Components { [RegisterComponent, Access(typeof(UtensilSystem))] - public sealed class UtensilComponent : Component + public sealed partial class UtensilComponent : Component { [DataField("types")] private UtensilType _types = UtensilType.None; diff --git a/Content.Server/Nutrition/Components/VapeComponent.cs b/Content.Server/Nutrition/Components/VapeComponent.cs index 28b2e6e531..a3d583cffd 100644 --- a/Content.Server/Nutrition/Components/VapeComponent.cs +++ b/Content.Server/Nutrition/Components/VapeComponent.cs @@ -8,8 +8,8 @@ using Content.Shared.Atmos; /// namespace Content.Server.Nutrition.Components { - [RegisterComponent, Access(typeof(SmokingSystem))] - public sealed class VapeComponent : Component + [RegisterComponent, Access(typeof(SmokingSystem))] + public sealed partial class VapeComponent : Component { [DataField("delay")] [ViewVariables(VVAccess.ReadWrite)] @@ -48,4 +48,4 @@ namespace Content.Server.Nutrition.Components public CancellationTokenSource? CancelToken; } -} \ No newline at end of file +} diff --git a/Content.Server/Objectives/Conditions/DieCondition.cs b/Content.Server/Objectives/Conditions/DieCondition.cs index 5a63147ad4..888f6490cd 100644 --- a/Content.Server/Objectives/Conditions/DieCondition.cs +++ b/Content.Server/Objectives/Conditions/DieCondition.cs @@ -7,7 +7,7 @@ namespace Content.Server.Objectives.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class DieCondition : IObjectiveCondition + public sealed partial class DieCondition : IObjectiveCondition { private Mind.Mind? _mind; diff --git a/Content.Server/Objectives/Conditions/EscapeShuttleCondition.cs b/Content.Server/Objectives/Conditions/EscapeShuttleCondition.cs index f26d256446..8d67e1066f 100644 --- a/Content.Server/Objectives/Conditions/EscapeShuttleCondition.cs +++ b/Content.Server/Objectives/Conditions/EscapeShuttleCondition.cs @@ -9,7 +9,7 @@ namespace Content.Server.Objectives.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class EscapeShuttleCondition : IObjectiveCondition + public sealed partial class EscapeShuttleCondition : IObjectiveCondition { private Mind.Mind? _mind; diff --git a/Content.Server/Objectives/Conditions/KillRandomHeadCondition.cs b/Content.Server/Objectives/Conditions/KillRandomHeadCondition.cs index 4476c0106a..f068b76725 100644 --- a/Content.Server/Objectives/Conditions/KillRandomHeadCondition.cs +++ b/Content.Server/Objectives/Conditions/KillRandomHeadCondition.cs @@ -8,7 +8,7 @@ using System.Linq; namespace Content.Server.Objectives.Conditions; [DataDefinition] -public sealed class KillRandomHeadCondition : KillPersonCondition +public sealed partial class KillRandomHeadCondition : KillPersonCondition { public override IObjectiveCondition GetAssigned(Mind.Mind mind) { diff --git a/Content.Server/Objectives/Conditions/KillRandomPersonCondition.cs b/Content.Server/Objectives/Conditions/KillRandomPersonCondition.cs index 94b8794749..5e591ceac7 100644 --- a/Content.Server/Objectives/Conditions/KillRandomPersonCondition.cs +++ b/Content.Server/Objectives/Conditions/KillRandomPersonCondition.cs @@ -7,7 +7,7 @@ using Robust.Shared.Random; namespace Content.Server.Objectives.Conditions; [DataDefinition] -public sealed class KillRandomPersonCondition : KillPersonCondition +public sealed partial class KillRandomPersonCondition : KillPersonCondition { public override IObjectiveCondition GetAssigned(Mind.Mind mind) { diff --git a/Content.Server/Objectives/Conditions/RandomTraitorAliveCondition.cs b/Content.Server/Objectives/Conditions/RandomTraitorAliveCondition.cs index 4e550dcfe0..1a284962cc 100644 --- a/Content.Server/Objectives/Conditions/RandomTraitorAliveCondition.cs +++ b/Content.Server/Objectives/Conditions/RandomTraitorAliveCondition.cs @@ -8,7 +8,7 @@ using Content.Server.Mind; namespace Content.Server.Objectives.Conditions { [DataDefinition] - public sealed class RandomTraitorAliveCondition : IObjectiveCondition + public sealed partial class RandomTraitorAliveCondition : IObjectiveCondition { private Mind.Mind? _target; diff --git a/Content.Server/Objectives/Conditions/RandomTraitorProgressCondition.cs b/Content.Server/Objectives/Conditions/RandomTraitorProgressCondition.cs index 1f8e6ffc2e..5c34202f67 100644 --- a/Content.Server/Objectives/Conditions/RandomTraitorProgressCondition.cs +++ b/Content.Server/Objectives/Conditions/RandomTraitorProgressCondition.cs @@ -8,7 +8,7 @@ using Content.Server.Roles; namespace Content.Server.Objectives.Conditions { [DataDefinition] - public sealed class RandomTraitorProgressCondition : IObjectiveCondition + public sealed partial class RandomTraitorProgressCondition : IObjectiveCondition { private Mind.Mind? _target; diff --git a/Content.Server/Objectives/Conditions/StealCondition.cs b/Content.Server/Objectives/Conditions/StealCondition.cs index 40219b849f..a5f0c9d66e 100644 --- a/Content.Server/Objectives/Conditions/StealCondition.cs +++ b/Content.Server/Objectives/Conditions/StealCondition.cs @@ -10,7 +10,7 @@ namespace Content.Server.Objectives.Conditions // Oh god my eyes [UsedImplicitly] [DataDefinition] - public sealed class StealCondition : IObjectiveCondition, ISerializationHooks + public sealed partial class StealCondition : IObjectiveCondition, ISerializationHooks { private Mind.Mind? _mind; [DataField("prototype")] private string _prototypeId = string.Empty; diff --git a/Content.Server/Objectives/ObjectivePrototype.cs b/Content.Server/Objectives/ObjectivePrototype.cs index 926082d82b..4235e3df35 100644 --- a/Content.Server/Objectives/ObjectivePrototype.cs +++ b/Content.Server/Objectives/ObjectivePrototype.cs @@ -12,7 +12,7 @@ namespace Content.Server.Objectives { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("issuer")] public string Issuer { get; private set; } = "Unknown"; diff --git a/Content.Server/Objectives/Requirements/IncompatibleConditionsRequirement.cs b/Content.Server/Objectives/Requirements/IncompatibleConditionsRequirement.cs index e0bda216d0..42c72da6b9 100644 --- a/Content.Server/Objectives/Requirements/IncompatibleConditionsRequirement.cs +++ b/Content.Server/Objectives/Requirements/IncompatibleConditionsRequirement.cs @@ -3,10 +3,10 @@ namespace Content.Server.Objectives.Requirements { [DataDefinition] - public sealed class IncompatibleConditionsRequirement : IObjectiveRequirement + public sealed partial class IncompatibleConditionsRequirement : IObjectiveRequirement { [DataField("conditions")] - private readonly List _incompatibleConditions = new(); + private List _incompatibleConditions = new(); public bool CanBeAssigned(Mind.Mind mind) { diff --git a/Content.Server/Objectives/Requirements/IncompatibleObjectivesRequirement.cs b/Content.Server/Objectives/Requirements/IncompatibleObjectivesRequirement.cs index 15e11efbd5..152d739341 100644 --- a/Content.Server/Objectives/Requirements/IncompatibleObjectivesRequirement.cs +++ b/Content.Server/Objectives/Requirements/IncompatibleObjectivesRequirement.cs @@ -3,10 +3,10 @@ namespace Content.Server.Objectives.Requirements { [DataDefinition] - public sealed class IncompatibleObjectivesRequirement : IObjectiveRequirement + public sealed partial class IncompatibleObjectivesRequirement : IObjectiveRequirement { [DataField("objectives")] - private readonly List _incompatibleObjectives = new(); + private List _incompatibleObjectives = new(); public bool CanBeAssigned(Mind.Mind mind) { diff --git a/Content.Server/Objectives/Requirements/MultipleTraitorsRequirement.cs b/Content.Server/Objectives/Requirements/MultipleTraitorsRequirement.cs index 5d4e458297..6a12980dd7 100644 --- a/Content.Server/Objectives/Requirements/MultipleTraitorsRequirement.cs +++ b/Content.Server/Objectives/Requirements/MultipleTraitorsRequirement.cs @@ -4,10 +4,10 @@ using Content.Server.GameTicking.Rules; namespace Content.Server.Objectives.Requirements { [DataDefinition] - public sealed class MultipleTraitorsRequirement : IObjectiveRequirement + public sealed partial class MultipleTraitorsRequirement : IObjectiveRequirement { [DataField("traitors")] - private readonly int _requiredTraitors = 2; + private int _requiredTraitors = 2; public bool CanBeAssigned(Mind.Mind mind) { diff --git a/Content.Server/Objectives/Requirements/NotRoleRequirement.cs b/Content.Server/Objectives/Requirements/NotRoleRequirement.cs index 9e9c4dfde2..5e0ecdab19 100644 --- a/Content.Server/Objectives/Requirements/NotRoleRequirement.cs +++ b/Content.Server/Objectives/Requirements/NotRoleRequirement.cs @@ -6,7 +6,7 @@ namespace Content.Server.Objectives.Requirements { [DataDefinition] - public sealed class NotRoleRequirement : IObjectiveRequirement + public sealed partial class NotRoleRequirement : IObjectiveRequirement { [DataField("roleId", customTypeSerializer:typeof(PrototypeIdSerializer), required:true)] private string _roleId = default!; diff --git a/Content.Server/Objectives/Requirements/TraitorRequirement.cs b/Content.Server/Objectives/Requirements/TraitorRequirement.cs index 5ddcaa673d..263718232a 100644 --- a/Content.Server/Objectives/Requirements/TraitorRequirement.cs +++ b/Content.Server/Objectives/Requirements/TraitorRequirement.cs @@ -7,7 +7,7 @@ namespace Content.Server.Objectives.Requirements { [UsedImplicitly] [DataDefinition] - public sealed class TraitorRequirement : IObjectiveRequirement + public sealed partial class TraitorRequirement : IObjectiveRequirement { public bool CanBeAssigned(Mind.Mind mind) { diff --git a/Content.Server/PDA/Ringer/RingerComponent.cs b/Content.Server/PDA/Ringer/RingerComponent.cs index 5ef26a8426..55dc458b74 100644 --- a/Content.Server/PDA/Ringer/RingerComponent.cs +++ b/Content.Server/PDA/Ringer/RingerComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.PDA; namespace Content.Server.PDA.Ringer { [RegisterComponent] - public sealed class RingerComponent : Component + public sealed partial class RingerComponent : Component { [DataField("ringtone")] public Note[] Ringtone = new Note[SharedRingerSystem.RingtoneLength]; @@ -30,7 +30,7 @@ namespace Content.Server.PDA.Ringer } [RegisterComponent] - public sealed class ActiveRingerComponent : Component + public sealed partial class ActiveRingerComponent : Component { } } diff --git a/Content.Server/PDA/Ringer/RingerUplinkComponent.cs b/Content.Server/PDA/Ringer/RingerUplinkComponent.cs index a446468ee1..4ffedf3af4 100644 --- a/Content.Server/PDA/Ringer/RingerUplinkComponent.cs +++ b/Content.Server/PDA/Ringer/RingerUplinkComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.PDA.Ringer; /// Traitors are told the code when greeted. /// [RegisterComponent, Access(typeof(RingerSystem))] -public sealed class RingerUplinkComponent : Component +public sealed partial class RingerUplinkComponent : Component { /// /// Notes to set ringtone to in order to lock or unlock the uplink. diff --git a/Content.Server/Paper/ActivateOnPaperOpenedComponent.cs b/Content.Server/Paper/ActivateOnPaperOpenedComponent.cs index c702ec5850..0d0f72b612 100644 --- a/Content.Server/Paper/ActivateOnPaperOpenedComponent.cs +++ b/Content.Server/Paper/ActivateOnPaperOpenedComponent.cs @@ -5,6 +5,6 @@ namespace Content.Server.Paper; /// [RegisterComponent] [Access(typeof(PaperSystem))] -public sealed class ActivateOnPaperOpenedComponent : Component +public sealed partial class ActivateOnPaperOpenedComponent : Component { } diff --git a/Content.Server/Paper/PaperComponent.cs b/Content.Server/Paper/PaperComponent.cs index 33418ffb15..3cf011e34d 100644 --- a/Content.Server/Paper/PaperComponent.cs +++ b/Content.Server/Paper/PaperComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameStates; namespace Content.Server.Paper; [NetworkedComponent, RegisterComponent] -public sealed class PaperComponent : SharedPaperComponent +public sealed partial class PaperComponent : SharedPaperComponent { public PaperAction Mode; [DataField("content")] diff --git a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorControlBoxComponent.cs b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorControlBoxComponent.cs index 035c6ead72..2adbbe05f7 100644 --- a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorControlBoxComponent.cs +++ b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorControlBoxComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.ParticleAccelerator.Components; /// Also contains primary logic for actual PA behavior, part scanning, etc... /// [RegisterComponent] -public sealed class ParticleAcceleratorControlBoxComponent : Component +public sealed partial class ParticleAcceleratorControlBoxComponent : Component { /// /// Whether the PA parts have been correctly arranged to make a functional device. diff --git a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEmitterComponent.cs b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEmitterComponent.cs index 434aa6b59c..05ab81c0f5 100644 --- a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEmitterComponent.cs +++ b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEmitterComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.ParticleAccelerator.Components; [RegisterComponent] -public sealed class ParticleAcceleratorEmitterComponent : Component +public sealed partial class ParticleAcceleratorEmitterComponent : Component { [DataField("emittedPrototype")] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEndCapComponent.cs b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEndCapComponent.cs index 4103e89ff9..9c111d1ea9 100644 --- a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEndCapComponent.cs +++ b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEndCapComponent.cs @@ -1,6 +1,6 @@ namespace Content.Server.ParticleAccelerator.Components; [RegisterComponent] -public sealed class ParticleAcceleratorEndCapComponent : Component +public sealed partial class ParticleAcceleratorEndCapComponent : Component { } diff --git a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorFuelChamberComponent.cs b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorFuelChamberComponent.cs index 2a87bcdeb8..9029e880d9 100644 --- a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorFuelChamberComponent.cs +++ b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorFuelChamberComponent.cs @@ -1,6 +1,6 @@ namespace Content.Server.ParticleAccelerator.Components; [RegisterComponent] -public sealed class ParticleAcceleratorFuelChamberComponent : Component +public sealed partial class ParticleAcceleratorFuelChamberComponent : Component { } diff --git a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorPartComponent.cs b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorPartComponent.cs index e539ff30a3..6d2b7b8960 100644 --- a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorPartComponent.cs +++ b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorPartComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.ParticleAccelerator.Components; [RegisterComponent] -public sealed class ParticleAcceleratorPartComponent : Component +public sealed partial class ParticleAcceleratorPartComponent : Component { [ViewVariables] public EntityUid? Master; diff --git a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorPowerBoxComponent.cs b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorPowerBoxComponent.cs index a0cbe06f4b..f8ad4ef5d2 100644 --- a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorPowerBoxComponent.cs +++ b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorPowerBoxComponent.cs @@ -1,6 +1,6 @@ namespace Content.Server.ParticleAccelerator.Components; [RegisterComponent] -public sealed class ParticleAcceleratorPowerBoxComponent : Component +public sealed partial class ParticleAcceleratorPowerBoxComponent : Component { } diff --git a/Content.Server/ParticleAccelerator/Components/ParticleProjectileComponent.cs b/Content.Server/ParticleAccelerator/Components/ParticleProjectileComponent.cs index b2438f0700..25d6816020 100644 --- a/Content.Server/ParticleAccelerator/Components/ParticleProjectileComponent.cs +++ b/Content.Server/ParticleAccelerator/Components/ParticleProjectileComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Singularity.Components; namespace Content.Server.ParticleAccelerator.Components; [RegisterComponent] -public sealed class ParticleProjectileComponent : Component +public sealed partial class ParticleProjectileComponent : Component { public ParticleAcceleratorPowerState State; } diff --git a/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorInterfaceWireAction.cs b/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorInterfaceWireAction.cs index 8c6046a72d..4e70854d6b 100644 --- a/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorInterfaceWireAction.cs +++ b/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorInterfaceWireAction.cs @@ -5,7 +5,7 @@ using Content.Shared.Wires; namespace Content.Server.ParticleAccelerator.Wires; -public sealed class ParticleAcceleratorKeyboardWireAction : ComponentWireAction +public sealed partial class ParticleAcceleratorKeyboardWireAction : ComponentWireAction { public override string Name { get; set; } = "wire-name-pa-keyboard"; public override Color Color { get; set; } = Color.LimeGreen; diff --git a/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorLimiterWireAction.cs b/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorLimiterWireAction.cs index dabebf7ebb..09700e2193 100644 --- a/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorLimiterWireAction.cs +++ b/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorLimiterWireAction.cs @@ -9,7 +9,7 @@ using Robust.Server.GameObjects; namespace Content.Server.ParticleAccelerator.Wires; -public sealed class ParticleAcceleratorLimiterWireAction : ComponentWireAction +public sealed partial class ParticleAcceleratorLimiterWireAction : ComponentWireAction { public override string Name { get; set; } = "wire-name-pa-limiter"; public override Color Color { get; set; } = Color.Teal; diff --git a/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorStrengthWireAction.cs b/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorStrengthWireAction.cs index 3e5c78d4ad..8577590671 100644 --- a/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorStrengthWireAction.cs +++ b/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorStrengthWireAction.cs @@ -8,7 +8,7 @@ using Robust.Shared.Random; namespace Content.Server.ParticleAccelerator.Wires; -public sealed class ParticleAcceleratorStrengthWireAction : ComponentWireAction +public sealed partial class ParticleAcceleratorStrengthWireAction : ComponentWireAction { public override string Name { get; set; } = "wire-name-pa-strength"; public override Color Color { get; set; } = Color.Blue; diff --git a/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorToggleWireAction.cs b/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorToggleWireAction.cs index 22dbf95196..00c5845713 100644 --- a/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorToggleWireAction.cs +++ b/Content.Server/ParticleAccelerator/Wires/ParticleAcceleratorToggleWireAction.cs @@ -7,7 +7,7 @@ using Robust.Server.GameObjects; namespace Content.Server.ParticleAccelerator.Wires; -public sealed class ParticleAcceleratorPowerWireAction : ComponentWireAction +public sealed partial class ParticleAcceleratorPowerWireAction : ComponentWireAction { public override string Name { get; set; } = "wire-name-pa-power"; public override Color Color { get; set; } = Color.Yellow; diff --git a/Content.Server/Physics/Components/RandomWalkComponent.cs b/Content.Server/Physics/Components/RandomWalkComponent.cs index 63ba22d7cc..e017f61ddd 100644 --- a/Content.Server/Physics/Components/RandomWalkComponent.cs +++ b/Content.Server/Physics/Components/RandomWalkComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Physics.Components; /// A component which makes its entity move around at random. /// [RegisterComponent] -public sealed class RandomWalkComponent : Component +public sealed partial class RandomWalkComponent : Component { /// /// The minimum speed at which this entity will move. diff --git a/Content.Server/Pinpointer/ProximityBeeperComponent.cs b/Content.Server/Pinpointer/ProximityBeeperComponent.cs index 8abc7b6df7..0fc73b5e79 100644 --- a/Content.Server/Pinpointer/ProximityBeeperComponent.cs +++ b/Content.Server/Pinpointer/ProximityBeeperComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Pinpointer; /// proximity to a specified component. /// [RegisterComponent, Access(typeof(ProximityBeeperSystem))] -public sealed class ProximityBeeperComponent : Component +public sealed partial class ProximityBeeperComponent : Component { /// /// Whether or not it's on. diff --git a/Content.Server/Pinpointer/StationMapComponent.cs b/Content.Server/Pinpointer/StationMapComponent.cs index 0e60289876..942ea1aba8 100644 --- a/Content.Server/Pinpointer/StationMapComponent.cs +++ b/Content.Server/Pinpointer/StationMapComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Pinpointer; [RegisterComponent] -public sealed class StationMapComponent : Component +public sealed partial class StationMapComponent : Component { } @@ -10,7 +10,7 @@ public sealed class StationMapComponent : Component /// Added to an entity using station map so when its parent changes we reset it. /// [RegisterComponent] -public sealed class StationMapUserComponent : Component +public sealed partial class StationMapUserComponent : Component { [DataField("mapUid")] public EntityUid Map; diff --git a/Content.Server/Plants/Components/PottedPlantHideComponent.cs b/Content.Server/Plants/Components/PottedPlantHideComponent.cs index 93e6e138af..bc35bbe44f 100644 --- a/Content.Server/Plants/Components/PottedPlantHideComponent.cs +++ b/Content.Server/Plants/Components/PottedPlantHideComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Plants.Components /// [RegisterComponent] [Access(typeof(PottedPlantHideSystem))] - public sealed class PottedPlantHideComponent : Component + public sealed partial class PottedPlantHideComponent : Component { [DataField("rustleSound")] public SoundSpecifier RustleSound = new SoundPathSpecifier("/Audio/Effects/plant_rustle.ogg"); diff --git a/Content.Server/Pointing/Components/PointingArrowAngeringComponent.cs b/Content.Server/Pointing/Components/PointingArrowAngeringComponent.cs index 42d8e3c154..446be1b119 100644 --- a/Content.Server/Pointing/Components/PointingArrowAngeringComponent.cs +++ b/Content.Server/Pointing/Components/PointingArrowAngeringComponent.cs @@ -4,7 +4,7 @@ /// Causes pointing arrows to go mode and murder this entity. /// [RegisterComponent] -public sealed class PointingArrowAngeringComponent : Component +public sealed partial class PointingArrowAngeringComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("remainingAnger")] diff --git a/Content.Server/Pointing/Components/PointingArrowComponent.cs b/Content.Server/Pointing/Components/PointingArrowComponent.cs index 309440aea1..11a5532bc9 100644 --- a/Content.Server/Pointing/Components/PointingArrowComponent.cs +++ b/Content.Server/Pointing/Components/PointingArrowComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Pointing.Components { [RegisterComponent] [Access(typeof(PointingSystem))] - public sealed class PointingArrowComponent : SharedPointingArrowComponent + public sealed partial class PointingArrowComponent : SharedPointingArrowComponent { /// /// Whether or not this arrow will convert into a diff --git a/Content.Server/Pointing/Components/RoguePointingArrowComponent.cs b/Content.Server/Pointing/Components/RoguePointingArrowComponent.cs index ad5e95b7de..dfdb3b9229 100644 --- a/Content.Server/Pointing/Components/RoguePointingArrowComponent.cs +++ b/Content.Server/Pointing/Components/RoguePointingArrowComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Pointing.Components { [RegisterComponent] [Access(typeof(RoguePointingSystem))] - public sealed class RoguePointingArrowComponent : SharedRoguePointingArrowComponent + public sealed partial class RoguePointingArrowComponent : SharedRoguePointingArrowComponent { [ViewVariables] public EntityUid? Chasing; diff --git a/Content.Server/Polymorph/Components/PolymorphOnCollideComponent.cs b/Content.Server/Polymorph/Components/PolymorphOnCollideComponent.cs index 3cb322ea5a..5d513df933 100644 --- a/Content.Server/Polymorph/Components/PolymorphOnCollideComponent.cs +++ b/Content.Server/Polymorph/Components/PolymorphOnCollideComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Polymorph.Components; [RegisterComponent] -public sealed class PolymorphOnCollideComponent : Component +public sealed partial class PolymorphOnCollideComponent : Component { [DataField("polymorph", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Polymorph = default!; diff --git a/Content.Server/Polymorph/Components/PolymorphableComponent.cs b/Content.Server/Polymorph/Components/PolymorphableComponent.cs index 80211d7680..cd928637e7 100644 --- a/Content.Server/Polymorph/Components/PolymorphableComponent.cs +++ b/Content.Server/Polymorph/Components/PolymorphableComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Polymorph.Components { [RegisterComponent] - public sealed class PolymorphableComponent : Component + public sealed partial class PolymorphableComponent : Component { /// /// A list of all the polymorphs that the entity has. diff --git a/Content.Server/Polymorph/Components/PolymorphedEntityComponent.cs b/Content.Server/Polymorph/Components/PolymorphedEntityComponent.cs index 3263832e13..d295031a5b 100644 --- a/Content.Server/Polymorph/Components/PolymorphedEntityComponent.cs +++ b/Content.Server/Polymorph/Components/PolymorphedEntityComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Polymorph.Components { [RegisterComponent] - public sealed class PolymorphedEntityComponent : Component + public sealed partial class PolymorphedEntityComponent : Component { /// /// The polymorph prototype, used to track various information diff --git a/Content.Server/Polymorph/Systems/PolymorphSystem.cs b/Content.Server/Polymorph/Systems/PolymorphSystem.cs index 7b7e2a0a8c..8db66ad129 100644 --- a/Content.Server/Polymorph/Systems/PolymorphSystem.cs +++ b/Content.Server/Polymorph/Systems/PolymorphSystem.cs @@ -402,7 +402,7 @@ namespace Content.Server.Polymorph.Systems } } - public sealed class PolymorphActionEvent : InstantActionEvent + public sealed partial class PolymorphActionEvent : InstantActionEvent { /// /// The polymorph prototype containing all the information about @@ -411,7 +411,7 @@ namespace Content.Server.Polymorph.Systems public PolymorphPrototype Prototype = default!; } - public sealed class RevertPolymorphActionEvent : InstantActionEvent + public sealed partial class RevertPolymorphActionEvent : InstantActionEvent { } diff --git a/Content.Server/Power/Components/ActivatableUIRequiresPowerComponent.cs b/Content.Server/Power/Components/ActivatableUIRequiresPowerComponent.cs index 3ae50b7f76..c387457adb 100644 --- a/Content.Server/Power/Components/ActivatableUIRequiresPowerComponent.cs +++ b/Content.Server/Power/Components/ActivatableUIRequiresPowerComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Power.Components { [RegisterComponent] - public sealed class ActivatableUIRequiresPowerComponent : Component + public sealed partial class ActivatableUIRequiresPowerComponent : Component { } } diff --git a/Content.Server/Power/Components/ActiveChargerComponent.cs b/Content.Server/Power/Components/ActiveChargerComponent.cs index 57f2f1a79c..f3d863c9e4 100644 --- a/Content.Server/Power/Components/ActiveChargerComponent.cs +++ b/Content.Server/Power/Components/ActiveChargerComponent.cs @@ -4,7 +4,7 @@ using Content.Shared.Power; namespace Content.Server.Power.Components { [RegisterComponent] - public sealed class ActiveChargerComponent : Component + public sealed partial class ActiveChargerComponent : Component { } } diff --git a/Content.Server/Power/Components/ApcComponent.cs b/Content.Server/Power/Components/ApcComponent.cs index e6e6dc5845..1729dcd10a 100644 --- a/Content.Server/Power/Components/ApcComponent.cs +++ b/Content.Server/Power/Components/ApcComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Audio; namespace Content.Server.Power.Components; [RegisterComponent] -public sealed class ApcComponent : BaseApcNetComponent +public sealed partial class ApcComponent : BaseApcNetComponent { [DataField("onReceiveMessageSound")] public SoundSpecifier OnReceiveMessageSound = new SoundPathSpecifier("/Audio/Machines/machine_switch.ogg"); diff --git a/Content.Server/Power/Components/ApcElectronicsComponent.cs b/Content.Server/Power/Components/ApcElectronicsComponent.cs index 80339cf11b..6d19a16ee1 100644 --- a/Content.Server/Power/Components/ApcElectronicsComponent.cs +++ b/Content.Server/Power/Components/ApcElectronicsComponent.cs @@ -6,6 +6,6 @@ namespace Content.Server.Power.Components /// This object is an APC electronics, used for constructing APCs /// [RegisterComponent] - public sealed class ApcElectronicsComponent : Component + public sealed partial class ApcElectronicsComponent : Component { } } diff --git a/Content.Server/Power/Components/ApcPowerProviderComponent.cs b/Content.Server/Power/Components/ApcPowerProviderComponent.cs index 20a547f0db..de18985e89 100644 --- a/Content.Server/Power/Components/ApcPowerProviderComponent.cs +++ b/Content.Server/Power/Components/ApcPowerProviderComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Power.Components { [RegisterComponent] [ComponentProtoName("PowerProvider")] - public sealed class ApcPowerProviderComponent : BaseApcNetComponent + public sealed partial class ApcPowerProviderComponent : BaseApcNetComponent { [ViewVariables] public List LinkedReceivers { get; } = new(); diff --git a/Content.Server/Power/Components/ApcPowerReceiverComponent.cs b/Content.Server/Power/Components/ApcPowerReceiverComponent.cs index bb8d5549da..ae4d739430 100644 --- a/Content.Server/Power/Components/ApcPowerReceiverComponent.cs +++ b/Content.Server/Power/Components/ApcPowerReceiverComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Power.Components /// so that it can receive power from a . /// [RegisterComponent] - public sealed class ApcPowerReceiverComponent : Component + public sealed partial class ApcPowerReceiverComponent : Component { [ViewVariables] public bool Powered => (MathHelper.CloseToPercent(NetworkLoad.ReceivingPower, Load) || !NeedsPower) && !PowerDisabled; diff --git a/Content.Server/Power/Components/BaseApcNetComponent.cs b/Content.Server/Power/Components/BaseApcNetComponent.cs index 634653c022..6c4fa80494 100644 --- a/Content.Server/Power/Components/BaseApcNetComponent.cs +++ b/Content.Server/Power/Components/BaseApcNetComponent.cs @@ -2,7 +2,7 @@ using Content.Server.Power.NodeGroups; namespace Content.Server.Power.Components { - public abstract class BaseApcNetComponent : BaseNetConnectorComponent + public abstract partial class BaseApcNetComponent : BaseNetConnectorComponent { } } diff --git a/Content.Server/Power/Components/BaseNetConnectorComponent.cs b/Content.Server/Power/Components/BaseNetConnectorComponent.cs index e452474a2d..0b0492d1b8 100644 --- a/Content.Server/Power/Components/BaseNetConnectorComponent.cs +++ b/Content.Server/Power/Components/BaseNetConnectorComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Power.Components public string? NodeId { get; } } - public abstract class BaseNetConnectorComponent : Component, IBaseNetConnectorComponent + public abstract partial class BaseNetConnectorComponent : Component, IBaseNetConnectorComponent { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Power/Components/BasePowerNetComponent.cs b/Content.Server/Power/Components/BasePowerNetComponent.cs index ccd3b6bc3a..5c7a760983 100644 --- a/Content.Server/Power/Components/BasePowerNetComponent.cs +++ b/Content.Server/Power/Components/BasePowerNetComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Power.Components } - public abstract class BasePowerNetComponent : BaseNetConnectorComponent + public abstract partial class BasePowerNetComponent : BaseNetConnectorComponent { } } diff --git a/Content.Server/Power/Components/BatteryChargerComponent.cs b/Content.Server/Power/Components/BatteryChargerComponent.cs index b4f2a0bb79..99284e44ac 100644 --- a/Content.Server/Power/Components/BatteryChargerComponent.cs +++ b/Content.Server/Power/Components/BatteryChargerComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Power.Components /// Connects the loading side of a to a non-APC power network. /// [RegisterComponent] - public sealed class BatteryChargerComponent : BasePowerNetComponent + public sealed partial class BatteryChargerComponent : BasePowerNetComponent { protected override void AddSelfToNet(IPowerNet net) { diff --git a/Content.Server/Power/Components/BatteryComponent.cs b/Content.Server/Power/Components/BatteryComponent.cs index 7581e9af9b..0fbee9aa34 100644 --- a/Content.Server/Power/Components/BatteryComponent.cs +++ b/Content.Server/Power/Components/BatteryComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Power.Components /// [RegisterComponent] [Virtual] - public class BatteryComponent : Component + public partial class BatteryComponent : Component { [Dependency] private readonly IEntityManager _entMan = default!; public string SolutionName = "battery"; diff --git a/Content.Server/Power/Components/BatteryDischargerComponent.cs b/Content.Server/Power/Components/BatteryDischargerComponent.cs index f06949fea9..c716338546 100644 --- a/Content.Server/Power/Components/BatteryDischargerComponent.cs +++ b/Content.Server/Power/Components/BatteryDischargerComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.Power.Components { [RegisterComponent] - public sealed class BatteryDischargerComponent : BasePowerNetComponent + public sealed partial class BatteryDischargerComponent : BasePowerNetComponent { protected override void AddSelfToNet(IPowerNet net) { diff --git a/Content.Server/Power/Components/BatterySelfRechargerComponent.cs b/Content.Server/Power/Components/BatterySelfRechargerComponent.cs index d67b6f693f..4798beb757 100644 --- a/Content.Server/Power/Components/BatterySelfRechargerComponent.cs +++ b/Content.Server/Power/Components/BatterySelfRechargerComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Power.Components /// Self-recharging battery. /// [RegisterComponent] - public sealed class BatterySelfRechargerComponent : Component + public sealed partial class BatterySelfRechargerComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("autoRecharge")] public bool AutoRecharge { get; set; } diff --git a/Content.Server/Power/Components/CableComponent.cs b/Content.Server/Power/Components/CableComponent.cs index 970ef46468..306c9f732e 100644 --- a/Content.Server/Power/Components/CableComponent.cs +++ b/Content.Server/Power/Components/CableComponent.cs @@ -10,10 +10,10 @@ namespace Content.Server.Power.Components /// [RegisterComponent] [Access(typeof(CableSystem))] - public sealed class CableComponent : Component + public sealed partial class CableComponent : Component { [DataField("cableDroppedOnCutPrototype", customTypeSerializer: typeof(PrototypeIdSerializer))] - public readonly string CableDroppedOnCutPrototype = "CableHVStack1"; + public string CableDroppedOnCutPrototype = "CableHVStack1"; [DataField("cuttingQuality", customTypeSerializer:typeof(PrototypeIdSerializer))] public string CuttingQuality = "Cutting"; diff --git a/Content.Server/Power/Components/CablePlacerComponent.cs b/Content.Server/Power/Components/CablePlacerComponent.cs index 49b18ddb8f..affe3c77a4 100644 --- a/Content.Server/Power/Components/CablePlacerComponent.cs +++ b/Content.Server/Power/Components/CablePlacerComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Power.Components { [RegisterComponent] - public sealed class CablePlacerComponent : Component + public sealed partial class CablePlacerComponent : Component { [DataField("cablePrototypeID", customTypeSerializer:typeof(PrototypeIdSerializer))] public string? CablePrototypeId = "CableHV"; diff --git a/Content.Server/Power/Components/CableVisComponent.cs b/Content.Server/Power/Components/CableVisComponent.cs index fe73960c61..bd9c62ba80 100644 --- a/Content.Server/Power/Components/CableVisComponent.cs +++ b/Content.Server/Power/Components/CableVisComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Power.Components { [RegisterComponent] - public sealed class CableVisComponent : Component + public sealed partial class CableVisComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("node")] diff --git a/Content.Server/Power/Components/ChargerComponent.cs b/Content.Server/Power/Components/ChargerComponent.cs index e93dcd3c1e..b7e3b3da8c 100644 --- a/Content.Server/Power/Components/ChargerComponent.cs +++ b/Content.Server/Power/Components/ChargerComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Power.Components { [RegisterComponent] - public sealed class ChargerComponent : Component + public sealed partial class ChargerComponent : Component { [ViewVariables] public CellChargerStatus Status; diff --git a/Content.Server/Power/Components/ExaminableBatteryComponent.cs b/Content.Server/Power/Components/ExaminableBatteryComponent.cs index de4154afbc..4cf4abd3cf 100644 --- a/Content.Server/Power/Components/ExaminableBatteryComponent.cs +++ b/Content.Server/Power/Components/ExaminableBatteryComponent.cs @@ -1,6 +1,6 @@ namespace Content.Server.Power.Components { [RegisterComponent] - public sealed class ExaminableBatteryComponent : Component + public sealed partial class ExaminableBatteryComponent : Component {} } diff --git a/Content.Server/Power/Components/ExtensionCableProviderComponent.cs b/Content.Server/Power/Components/ExtensionCableProviderComponent.cs index efcca65503..27dae2ed76 100644 --- a/Content.Server/Power/Components/ExtensionCableProviderComponent.cs +++ b/Content.Server/Power/Components/ExtensionCableProviderComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Power.Components { [RegisterComponent] [Access(typeof(ExtensionCableSystem))] - public sealed class ExtensionCableProviderComponent : Component + public sealed partial class ExtensionCableProviderComponent : Component { /// /// The max distance this can connect to s from. diff --git a/Content.Server/Power/Components/ExtensionCableReceiverComponent.cs b/Content.Server/Power/Components/ExtensionCableReceiverComponent.cs index 835698f4c1..58e5c05dd0 100644 --- a/Content.Server/Power/Components/ExtensionCableReceiverComponent.cs +++ b/Content.Server/Power/Components/ExtensionCableReceiverComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Power.Components { [RegisterComponent] [Access(typeof(ExtensionCableSystem))] - public sealed class ExtensionCableReceiverComponent : Component + public sealed partial class ExtensionCableReceiverComponent : Component { [ViewVariables] public ExtensionCableProviderComponent? Provider { get; set; } diff --git a/Content.Server/Power/Components/PowerConsumerComponent.cs b/Content.Server/Power/Components/PowerConsumerComponent.cs index 73c49d0f38..eb704c61c4 100644 --- a/Content.Server/Power/Components/PowerConsumerComponent.cs +++ b/Content.Server/Power/Components/PowerConsumerComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Power.Components /// Draws power directly from an MV or HV wire it is on top of. /// [RegisterComponent] - public sealed class PowerConsumerComponent : BaseNetConnectorComponent + public sealed partial class PowerConsumerComponent : BaseNetConnectorComponent { /// /// How much power this needs to be fully powered. diff --git a/Content.Server/Power/Components/PowerMonitoringConsoleComponent.cs b/Content.Server/Power/Components/PowerMonitoringConsoleComponent.cs index 076c873de1..7bf8a3b414 100644 --- a/Content.Server/Power/Components/PowerMonitoringConsoleComponent.cs +++ b/Content.Server/Power/Components/PowerMonitoringConsoleComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Power.Components; [RegisterComponent] -public sealed class PowerMonitoringConsoleComponent : Component +public sealed partial class PowerMonitoringConsoleComponent : Component { } diff --git a/Content.Server/Power/Components/PowerNetworkBatteryComponent.cs b/Content.Server/Power/Components/PowerNetworkBatteryComponent.cs index a5215fba1a..a0f74df6a1 100644 --- a/Content.Server/Power/Components/PowerNetworkBatteryComponent.cs +++ b/Content.Server/Power/Components/PowerNetworkBatteryComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Power.Components /// and battery storage should be handed off to components like . /// [RegisterComponent] - public sealed class PowerNetworkBatteryComponent : Component + public sealed partial class PowerNetworkBatteryComponent : Component { [ViewVariables] public float LastSupply = 0f; diff --git a/Content.Server/Power/Components/PowerSupplierComponent.cs b/Content.Server/Power/Components/PowerSupplierComponent.cs index cd55940a63..9097521efc 100644 --- a/Content.Server/Power/Components/PowerSupplierComponent.cs +++ b/Content.Server/Power/Components/PowerSupplierComponent.cs @@ -4,7 +4,7 @@ using Content.Server.Power.Pow3r; namespace Content.Server.Power.Components { [RegisterComponent] - public sealed class PowerSupplierComponent : BasePowerNetComponent + public sealed partial class PowerSupplierComponent : BasePowerNetComponent { [ViewVariables(VVAccess.ReadWrite)] [DataField("supplyRate")] diff --git a/Content.Server/Power/Components/PowerSwitchComponent.cs b/Content.Server/Power/Components/PowerSwitchComponent.cs index 3124557f81..42e787e6d7 100644 --- a/Content.Server/Power/Components/PowerSwitchComponent.cs +++ b/Content.Server/Power/Components/PowerSwitchComponent.cs @@ -4,6 +4,6 @@ namespace Content.Server.Power.Components /// Provides an alt verb to toggle power. /// [RegisterComponent] - public sealed class PowerSwitchComponent : Component + public sealed partial class PowerSwitchComponent : Component {} } diff --git a/Content.Server/Power/Components/RiggableComponent.cs b/Content.Server/Power/Components/RiggableComponent.cs index 0983989670..eaf216fd5f 100644 --- a/Content.Server/Power/Components/RiggableComponent.cs +++ b/Content.Server/Power/Components/RiggableComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Power.Components; [RegisterComponent] -public sealed class RiggableComponent : Component +public sealed partial class RiggableComponent : Component { public const string SolutionName = "battery"; diff --git a/Content.Server/Power/Components/UpgradeBatteryComponent.cs b/Content.Server/Power/Components/UpgradeBatteryComponent.cs index 74a5328148..e1fc4d2bb8 100644 --- a/Content.Server/Power/Components/UpgradeBatteryComponent.cs +++ b/Content.Server/Power/Components/UpgradeBatteryComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Power.Components { [RegisterComponent] - public sealed class UpgradeBatteryComponent : Component + public sealed partial class UpgradeBatteryComponent : Component { /// /// The machine part that affects the power capacity. diff --git a/Content.Server/Power/Components/UpgradePowerDrawComponent.cs b/Content.Server/Power/Components/UpgradePowerDrawComponent.cs index 2ecd1d4a05..02a6c57b9b 100644 --- a/Content.Server/Power/Components/UpgradePowerDrawComponent.cs +++ b/Content.Server/Power/Components/UpgradePowerDrawComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Power.Components; /// can be decreased through machine part upgrades. /// [RegisterComponent] -public sealed class UpgradePowerDrawComponent : Component +public sealed partial class UpgradePowerDrawComponent : Component { /// /// The base power draw of the machine. diff --git a/Content.Server/Power/Components/UpgradePowerSupplierComponent.cs b/Content.Server/Power/Components/UpgradePowerSupplierComponent.cs index e9262f481e..35b43867d2 100644 --- a/Content.Server/Power/Components/UpgradePowerSupplierComponent.cs +++ b/Content.Server/Power/Components/UpgradePowerSupplierComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Power.Components; [RegisterComponent] -public sealed class UpgradePowerSupplierComponent : Component +public sealed partial class UpgradePowerSupplierComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public float BaseSupplyRate; diff --git a/Content.Server/Power/Generation/Teg/TegCirculatorComponent.cs b/Content.Server/Power/Generation/Teg/TegCirculatorComponent.cs index 636ccdd17a..95f3b919f2 100644 --- a/Content.Server/Power/Generation/Teg/TegCirculatorComponent.cs +++ b/Content.Server/Power/Generation/Teg/TegCirculatorComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Power.Generation.Teg; /// [RegisterComponent] [Access(typeof(TegSystem))] -public sealed class TegCirculatorComponent : Component +public sealed partial class TegCirculatorComponent : Component { /// /// The difference between the inlet and outlet pressure at the start of the previous tick. diff --git a/Content.Server/Power/Generation/Teg/TegGeneratorComponent.cs b/Content.Server/Power/Generation/Teg/TegGeneratorComponent.cs index 13ccc50eae..87998e5d82 100644 --- a/Content.Server/Power/Generation/Teg/TegGeneratorComponent.cs +++ b/Content.Server/Power/Generation/Teg/TegGeneratorComponent.cs @@ -6,7 +6,7 @@ /// [RegisterComponent] [Access(typeof(TegSystem))] -public sealed class TegGeneratorComponent : Component +public sealed partial class TegGeneratorComponent : Component { /// /// When transferring energy from the hot to cold side, diff --git a/Content.Server/Power/Generation/Teg/TegNodeGroup.cs b/Content.Server/Power/Generation/Teg/TegNodeGroup.cs index 7d844afcc4..ed6b46e304 100644 --- a/Content.Server/Power/Generation/Teg/TegNodeGroup.cs +++ b/Content.Server/Power/Generation/Teg/TegNodeGroup.cs @@ -117,7 +117,7 @@ public sealed class TegNodeGroup : BaseNodeGroup /// /// [DataDefinition] -public sealed class TegNodeGenerator : Node +public sealed partial class TegNodeGenerator : Node { public override IEnumerable GetReachableNodes( TransformComponent xform, @@ -169,7 +169,7 @@ public sealed class TegNodeGenerator : Node /// /// [DataDefinition] -public sealed class TegNodeCirculator : Node +public sealed partial class TegNodeCirculator : Node { public override IEnumerable GetReachableNodes( TransformComponent xform, diff --git a/Content.Server/Power/Generator/ChemicalFuelGeneratorAdapterComponent.cs b/Content.Server/Power/Generator/ChemicalFuelGeneratorAdapterComponent.cs index a16bdbbca1..2b9fc81ecd 100644 --- a/Content.Server/Power/Generator/ChemicalFuelGeneratorAdapterComponent.cs +++ b/Content.Server/Power/Generator/ChemicalFuelGeneratorAdapterComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Power.Generator; /// This is used for chemical fuel input into generators. /// [RegisterComponent, Access(typeof(GeneratorSystem))] -public sealed class ChemicalFuelGeneratorAdapterComponent : Component +public sealed partial class ChemicalFuelGeneratorAdapterComponent : Component { /// /// The acceptable list of input entities. diff --git a/Content.Server/Power/Generator/ChemicalFuelGeneratorDirectSourceComponent.cs b/Content.Server/Power/Generator/ChemicalFuelGeneratorDirectSourceComponent.cs index 3904a3bdf7..2e8be84822 100644 --- a/Content.Server/Power/Generator/ChemicalFuelGeneratorDirectSourceComponent.cs +++ b/Content.Server/Power/Generator/ChemicalFuelGeneratorDirectSourceComponent.cs @@ -4,7 +4,7 @@ /// This is used for stuff that can directly be shoved into a generator. /// [RegisterComponent, Access(typeof(GeneratorSystem))] -public sealed class ChemicalFuelGeneratorDirectSourceComponent : Component +public sealed partial class ChemicalFuelGeneratorDirectSourceComponent : Component { /// /// The solution to pull fuel material from. diff --git a/Content.Server/Power/Generator/GasPowerReceiverComponent.cs b/Content.Server/Power/Generator/GasPowerReceiverComponent.cs index 2eede9f243..4d26f28185 100644 --- a/Content.Server/Power/Generator/GasPowerReceiverComponent.cs +++ b/Content.Server/Power/Generator/GasPowerReceiverComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Power.Generator; /// This is used for providing gas power to machinery. /// [RegisterComponent, Access(typeof(GasPowerReceiverSystem))] -public sealed class GasPowerReceiverComponent : Component +public sealed partial class GasPowerReceiverComponent : Component { /// /// Past this temperature we assume we're in reaction mass mode and not magic mode. diff --git a/Content.Server/Power/Generator/SolidFuelGeneratorAdapterComponent.cs b/Content.Server/Power/Generator/SolidFuelGeneratorAdapterComponent.cs index 70e3d16410..295b63e084 100644 --- a/Content.Server/Power/Generator/SolidFuelGeneratorAdapterComponent.cs +++ b/Content.Server/Power/Generator/SolidFuelGeneratorAdapterComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Power.Generator; /// This is used for allowing you to insert fuel into gens. /// [RegisterComponent, Access(typeof(GeneratorSystem))] -public sealed class SolidFuelGeneratorAdapterComponent : Component +public sealed partial class SolidFuelGeneratorAdapterComponent : Component { /// /// The material to accept as fuel. diff --git a/Content.Server/Power/NodeGroups/ApcNet.cs b/Content.Server/Power/NodeGroups/ApcNet.cs index a3adf2a820..8540eb4253 100644 --- a/Content.Server/Power/NodeGroups/ApcNet.cs +++ b/Content.Server/Power/NodeGroups/ApcNet.cs @@ -24,7 +24,7 @@ namespace Content.Server.Power.NodeGroups [NodeGroup(NodeGroupID.Apc)] [UsedImplicitly] - public sealed class ApcNet : BaseNetConnectorNodeGroup, IApcNet + public sealed partial class ApcNet : BaseNetConnectorNodeGroup, IApcNet { private PowerNetSystem? _powerNetSystem; diff --git a/Content.Server/Power/NodeGroups/PowerNet.cs b/Content.Server/Power/NodeGroups/PowerNet.cs index a266c98499..2fe479af72 100644 --- a/Content.Server/Power/NodeGroups/PowerNet.cs +++ b/Content.Server/Power/NodeGroups/PowerNet.cs @@ -26,7 +26,7 @@ namespace Content.Server.Power.NodeGroups [NodeGroup(NodeGroupID.HVPower, NodeGroupID.MVPower)] [UsedImplicitly] - public sealed class PowerNet : BaseNetConnectorNodeGroup, IPowerNet + public sealed partial class PowerNet : BaseNetConnectorNodeGroup, IPowerNet { private PowerNetSystem? _powerNetSystem; private IEntityManager? _entMan; diff --git a/Content.Server/Power/Nodes/CableDeviceNode.cs b/Content.Server/Power/Nodes/CableDeviceNode.cs index d823247f39..e024516e6e 100644 --- a/Content.Server/Power/Nodes/CableDeviceNode.cs +++ b/Content.Server/Power/Nodes/CableDeviceNode.cs @@ -10,7 +10,7 @@ namespace Content.Server.Power.Nodes /// [DataDefinition] [Virtual] - public class CableDeviceNode : Node + public partial class CableDeviceNode : Node { public override IEnumerable GetReachableNodes(TransformComponent xform, EntityQuery nodeQuery, diff --git a/Content.Server/Power/Nodes/CableNode.cs b/Content.Server/Power/Nodes/CableNode.cs index 16968ed5a7..4f2dbd42df 100644 --- a/Content.Server/Power/Nodes/CableNode.cs +++ b/Content.Server/Power/Nodes/CableNode.cs @@ -6,7 +6,7 @@ using Robust.Shared.Map.Components; namespace Content.Server.Power.Nodes { [DataDefinition] - public sealed class CableNode : Node + public sealed partial class CableNode : Node { public override IEnumerable GetReachableNodes(TransformComponent xform, EntityQuery nodeQuery, diff --git a/Content.Server/Power/Nodes/CableTerminalNode.cs b/Content.Server/Power/Nodes/CableTerminalNode.cs index de56810a13..bb44e86256 100644 --- a/Content.Server/Power/Nodes/CableTerminalNode.cs +++ b/Content.Server/Power/Nodes/CableTerminalNode.cs @@ -6,7 +6,7 @@ using Robust.Shared.Map.Components; namespace Content.Server.Power.Nodes { [DataDefinition] - public sealed class CableTerminalNode : CableDeviceNode + public sealed partial class CableTerminalNode : CableDeviceNode { public override IEnumerable GetReachableNodes(TransformComponent xform, EntityQuery nodeQuery, diff --git a/Content.Server/Power/Nodes/CableTerminalPortNode.cs b/Content.Server/Power/Nodes/CableTerminalPortNode.cs index 72baf124af..bbce1aff74 100644 --- a/Content.Server/Power/Nodes/CableTerminalPortNode.cs +++ b/Content.Server/Power/Nodes/CableTerminalPortNode.cs @@ -6,7 +6,7 @@ using Robust.Shared.Map.Components; namespace Content.Server.Power.Nodes { [DataDefinition] - public sealed class CableTerminalPortNode : Node + public sealed partial class CableTerminalPortNode : Node { public override IEnumerable GetReachableNodes(TransformComponent xform, EntityQuery nodeQuery, diff --git a/Content.Server/Power/PowerWireAction.cs b/Content.Server/Power/PowerWireAction.cs index a5925742e0..785eac91db 100644 --- a/Content.Server/Power/PowerWireAction.cs +++ b/Content.Server/Power/PowerWireAction.cs @@ -8,7 +8,7 @@ namespace Content.Server.Power; // Generic power wire action. Use on anything // that requires power. -public sealed class PowerWireAction : BaseWireAction +public sealed partial class PowerWireAction : BaseWireAction { public override Color Color { get; set; } = Color.Red; public override string Name { get; set; } = "wire-name-power"; diff --git a/Content.Server/Power/SMES/SmesComponent.cs b/Content.Server/Power/SMES/SmesComponent.cs index 29e1dbd7cb..6a375d9092 100644 --- a/Content.Server/Power/SMES/SmesComponent.cs +++ b/Content.Server/Power/SMES/SmesComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Power.SMES; /// Code interfacing with the powernet is handled in and . /// [RegisterComponent, Access(typeof(SmesSystem))] -public sealed class SmesComponent : Component +public sealed partial class SmesComponent : Component { [ViewVariables] public ChargeState LastChargeState; diff --git a/Content.Server/PowerSink/PowerSinkComponent.cs b/Content.Server/PowerSink/PowerSinkComponent.cs index 1b55739c8c..f1df042179 100644 --- a/Content.Server/PowerSink/PowerSinkComponent.cs +++ b/Content.Server/PowerSink/PowerSinkComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.PowerSink /// Absorbs power up to its capacity when anchored then explodes. /// [RegisterComponent] - public sealed class PowerSinkComponent : Component + public sealed partial class PowerSinkComponent : Component { /// /// When the power sink is nearing its explosion, warn the crew so they can look for it diff --git a/Content.Server/Procedural/DungeonAtlasTemplateComponent.cs b/Content.Server/Procedural/DungeonAtlasTemplateComponent.cs index 95f48da643..119320b589 100644 --- a/Content.Server/Procedural/DungeonAtlasTemplateComponent.cs +++ b/Content.Server/Procedural/DungeonAtlasTemplateComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Procedural; /// Added to pre-loaded maps for dungeon templates. /// [RegisterComponent] -public sealed class DungeonAtlasTemplateComponent : Component +public sealed partial class DungeonAtlasTemplateComponent : Component { [DataField("path", required: true)] public ResPath Path; diff --git a/Content.Server/Radiation/Components/RadiationBlockerComponent.cs b/Content.Server/Radiation/Components/RadiationBlockerComponent.cs index d030048a94..a034bb415b 100644 --- a/Content.Server/Radiation/Components/RadiationBlockerComponent.cs +++ b/Content.Server/Radiation/Components/RadiationBlockerComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Radiation.Components; /// [RegisterComponent] [Access(typeof(RadiationSystem))] -public sealed class RadiationBlockerComponent : Component +public sealed partial class RadiationBlockerComponent : Component { /// /// Does it block radiation at all? diff --git a/Content.Server/Radiation/Components/RadiationGridResistanceComponent.cs b/Content.Server/Radiation/Components/RadiationGridResistanceComponent.cs index 72f49f1297..12f04261a5 100644 --- a/Content.Server/Radiation/Components/RadiationGridResistanceComponent.cs +++ b/Content.Server/Radiation/Components/RadiationGridResistanceComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Radiation.Components; /// [RegisterComponent] [Access(typeof(RadiationSystem), Other = AccessPermissions.ReadExecute)] -public sealed class RadiationGridResistanceComponent : Component +public sealed partial class RadiationGridResistanceComponent : Component { /// /// Radiation resistance per tile. diff --git a/Content.Server/Radiation/Components/RadiationReceiverComponent.cs b/Content.Server/Radiation/Components/RadiationReceiverComponent.cs index 3021f2907f..4a47007a9a 100644 --- a/Content.Server/Radiation/Components/RadiationReceiverComponent.cs +++ b/Content.Server/Radiation/Components/RadiationReceiverComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Radiation.Components; /// [RegisterComponent] [Access(typeof(RadiationSystem))] -public sealed class RadiationReceiverComponent : Component +public sealed partial class RadiationReceiverComponent : Component { /// /// Current radiation value in rads per second. diff --git a/Content.Server/Radio/Components/ActiveRadioComponent.cs b/Content.Server/Radio/Components/ActiveRadioComponent.cs index 2c3ed9defa..6428c0946e 100644 --- a/Content.Server/Radio/Components/ActiveRadioComponent.cs +++ b/Content.Server/Radio/Components/ActiveRadioComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Radio.Components; /// This component is required to receive radio message events. /// [RegisterComponent] -public sealed class ActiveRadioComponent : Component +public sealed partial class ActiveRadioComponent : Component { /// /// The channels that this radio is listening on. diff --git a/Content.Server/Radio/Components/ActiveRadioJammerComponent.cs b/Content.Server/Radio/Components/ActiveRadioJammerComponent.cs index e608f0be7a..ff3e6271be 100644 --- a/Content.Server/Radio/Components/ActiveRadioJammerComponent.cs +++ b/Content.Server/Radio/Components/ActiveRadioJammerComponent.cs @@ -7,6 +7,6 @@ namespace Content.Server.Radio.Components; /// [RegisterComponent] [Access(typeof(JammerSystem))] -public sealed class ActiveRadioJammerComponent : Component +public sealed partial class ActiveRadioJammerComponent : Component { } diff --git a/Content.Server/Radio/Components/IntrinsicRadioReceiverComponent.cs b/Content.Server/Radio/Components/IntrinsicRadioReceiverComponent.cs index 3683049c09..416dfe39cb 100644 --- a/Content.Server/Radio/Components/IntrinsicRadioReceiverComponent.cs +++ b/Content.Server/Radio/Components/IntrinsicRadioReceiverComponent.cs @@ -6,6 +6,6 @@ namespace Content.Server.Radio.Components; /// channels. /// [RegisterComponent] -public sealed class IntrinsicRadioReceiverComponent : Component +public sealed partial class IntrinsicRadioReceiverComponent : Component { } diff --git a/Content.Server/Radio/Components/IntrinsicRadioTransmitterComponent.cs b/Content.Server/Radio/Components/IntrinsicRadioTransmitterComponent.cs index eb28bac4ec..13cc090663 100644 --- a/Content.Server/Radio/Components/IntrinsicRadioTransmitterComponent.cs +++ b/Content.Server/Radio/Components/IntrinsicRadioTransmitterComponent.cs @@ -10,8 +10,8 @@ namespace Content.Server.Radio.Components; /// radio headset). /// [RegisterComponent] -public sealed class IntrinsicRadioTransmitterComponent : Component +public sealed partial class IntrinsicRadioTransmitterComponent : Component { [DataField("channels", customTypeSerializer: typeof(PrototypeIdHashSetSerializer))] - public readonly HashSet Channels = new() { SharedChatSystem.CommonChannel }; + public HashSet Channels = new() { SharedChatSystem.CommonChannel }; } diff --git a/Content.Server/Radio/Components/RadioJammerComponent.cs b/Content.Server/Radio/Components/RadioJammerComponent.cs index ef451b0630..69837200ac 100644 --- a/Content.Server/Radio/Components/RadioJammerComponent.cs +++ b/Content.Server/Radio/Components/RadioJammerComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Radio.Components; /// [RegisterComponent] [Access(typeof(JammerSystem))] -public sealed class RadioJammerComponent : Component +public sealed partial class RadioJammerComponent : Component { [DataField("range"), ViewVariables(VVAccess.ReadWrite)] public float Range = 8f; diff --git a/Content.Server/Radio/Components/RadioMicrophoneComponent.cs b/Content.Server/Radio/Components/RadioMicrophoneComponent.cs index 162eeb6110..af01f86f23 100644 --- a/Content.Server/Radio/Components/RadioMicrophoneComponent.cs +++ b/Content.Server/Radio/Components/RadioMicrophoneComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Radio.Components; /// [RegisterComponent] [Access(typeof(RadioDeviceSystem))] -public sealed class RadioMicrophoneComponent : Component +public sealed partial class RadioMicrophoneComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("broadcastChannel", customTypeSerializer: typeof(PrototypeIdSerializer))] diff --git a/Content.Server/Radio/Components/RadioSpeakerComponent.cs b/Content.Server/Radio/Components/RadioSpeakerComponent.cs index 1b842fbd0d..150e903e52 100644 --- a/Content.Server/Radio/Components/RadioSpeakerComponent.cs +++ b/Content.Server/Radio/Components/RadioSpeakerComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Radio.Components; /// [RegisterComponent] [Access(typeof(RadioDeviceSystem))] -public sealed class RadioSpeakerComponent : Component +public sealed partial class RadioSpeakerComponent : Component { /// /// Whether or not interacting with this entity diff --git a/Content.Server/Radio/Components/WearingHeadsetComponent.cs b/Content.Server/Radio/Components/WearingHeadsetComponent.cs index d175b4dbab..2d68b44a3c 100644 --- a/Content.Server/Radio/Components/WearingHeadsetComponent.cs +++ b/Content.Server/Radio/Components/WearingHeadsetComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Radio.Components; /// This component is used to tag players that are currently wearing an ACTIVE headset. /// [RegisterComponent] -public sealed class WearingHeadsetComponent : Component +public sealed partial class WearingHeadsetComponent : Component { [DataField("headset")] public EntityUid Headset; diff --git a/Content.Server/RandomAppearance/RandomAppearanceComponent.cs b/Content.Server/RandomAppearance/RandomAppearanceComponent.cs index c61e04404b..8560eebb57 100644 --- a/Content.Server/RandomAppearance/RandomAppearanceComponent.cs +++ b/Content.Server/RandomAppearance/RandomAppearanceComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.RandomAppearance; [RegisterComponent] [Access(typeof(RandomAppearanceSystem))] -public sealed class RandomAppearanceComponent : Component, ISerializationHooks +public sealed partial class RandomAppearanceComponent : Component, ISerializationHooks { [DataField("spriteStates")] public string[] SpriteStates = { "0", "1", "2", "3", "4" }; diff --git a/Content.Server/RandomMetadata/RandomMetadataComponent.cs b/Content.Server/RandomMetadata/RandomMetadataComponent.cs index 29aef86751..7ad97625e3 100644 --- a/Content.Server/RandomMetadata/RandomMetadataComponent.cs +++ b/Content.Server/RandomMetadata/RandomMetadataComponent.cs @@ -4,7 +4,7 @@ /// Randomizes the description and/or the name for an entity by creating it from list of dataset prototypes or strings. /// [RegisterComponent] -public sealed class RandomMetadataComponent : Component +public sealed partial class RandomMetadataComponent : Component { [DataField("descriptionSegments")] public List? DescriptionSegments; diff --git a/Content.Server/RatKing/RatKingComponent.cs b/Content.Server/RatKing/RatKingComponent.cs index bca37237a9..c38c922243 100644 --- a/Content.Server/RatKing/RatKingComponent.cs +++ b/Content.Server/RatKing/RatKingComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.RatKing { [RegisterComponent] - public sealed class RatKingComponent : Component + public sealed partial class RatKingComponent : Component { /// /// The action for the Raise Army ability diff --git a/Content.Server/RatKing/RatKingSystem.cs b/Content.Server/RatKing/RatKingSystem.cs index 6dee181d59..5f9d7376a0 100644 --- a/Content.Server/RatKing/RatKingSystem.cs +++ b/Content.Server/RatKing/RatKingSystem.cs @@ -87,12 +87,12 @@ namespace Content.Server.RatKing } } - public sealed class RatKingRaiseArmyActionEvent : InstantActionEvent + public sealed partial class RatKingRaiseArmyActionEvent : InstantActionEvent { } - public sealed class RatKingDomainActionEvent : InstantActionEvent + public sealed partial class RatKingDomainActionEvent : InstantActionEvent { } diff --git a/Content.Server/Remotes/DoorRemoteComponent.cs b/Content.Server/Remotes/DoorRemoteComponent.cs index 92187e2543..91cb7ccad1 100644 --- a/Content.Server/Remotes/DoorRemoteComponent.cs +++ b/Content.Server/Remotes/DoorRemoteComponent.cs @@ -2,7 +2,7 @@ namespace Content.Server.Remotes { [RegisterComponent] [Access(typeof(DoorRemoteSystem))] - public sealed class DoorRemoteComponent : Component + public sealed partial class DoorRemoteComponent : Component { public OperatingMode Mode = OperatingMode.OpenClose; diff --git a/Content.Server/Repairable/RepairableComponent.cs b/Content.Server/Repairable/RepairableComponent.cs index 911397ec94..c436386110 100644 --- a/Content.Server/Repairable/RepairableComponent.cs +++ b/Content.Server/Repairable/RepairableComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Repairable { [RegisterComponent] - public sealed class RepairableComponent : Component + public sealed partial class RepairableComponent : Component { /// /// All the damage to change information is stored in this . diff --git a/Content.Server/Research/Components/ResearchConsoleComponent.cs b/Content.Server/Research/Components/ResearchConsoleComponent.cs index 39910a3283..038357ef8b 100644 --- a/Content.Server/Research/Components/ResearchConsoleComponent.cs +++ b/Content.Server/Research/Components/ResearchConsoleComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Research.Components; [RegisterComponent] -public sealed class ResearchConsoleComponent : Component +public sealed partial class ResearchConsoleComponent : Component { } diff --git a/Content.Server/Research/Components/ResearchPointSourceComponent.cs b/Content.Server/Research/Components/ResearchPointSourceComponent.cs index 10fc27ba87..90785b1db1 100644 --- a/Content.Server/Research/Components/ResearchPointSourceComponent.cs +++ b/Content.Server/Research/Components/ResearchPointSourceComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Research.Components; [RegisterComponent] -public sealed class ResearchPointSourceComponent : Component +public sealed partial class ResearchPointSourceComponent : Component { [DataField("pointspersecond"), ViewVariables(VVAccess.ReadWrite)] public int PointsPerSecond; diff --git a/Content.Server/Research/Disk/ResearchDiskComponent.cs b/Content.Server/Research/Disk/ResearchDiskComponent.cs index 1d4beee1ab..b3356b4714 100644 --- a/Content.Server/Research/Disk/ResearchDiskComponent.cs +++ b/Content.Server/Research/Disk/ResearchDiskComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Research.Disk { [RegisterComponent] - public sealed class ResearchDiskComponent : Component + public sealed partial class ResearchDiskComponent : Component { [DataField("points"), ViewVariables(VVAccess.ReadWrite)] public int Points = 1000; diff --git a/Content.Server/Research/TechnologyDisk/Components/DiskConsoleComponent.cs b/Content.Server/Research/TechnologyDisk/Components/DiskConsoleComponent.cs index 09b1972e5f..93d5bb43b6 100644 --- a/Content.Server/Research/TechnologyDisk/Components/DiskConsoleComponent.cs +++ b/Content.Server/Research/TechnologyDisk/Components/DiskConsoleComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Research.TechnologyDisk.Components; [RegisterComponent] -public sealed class DiskConsoleComponent : Component +public sealed partial class DiskConsoleComponent : Component { /// /// How much it costs to print a disk diff --git a/Content.Server/Research/TechnologyDisk/Components/DiskConsolePrintingComponent.cs b/Content.Server/Research/TechnologyDisk/Components/DiskConsolePrintingComponent.cs index 3823027983..ab3b7ef9bb 100644 --- a/Content.Server/Research/TechnologyDisk/Components/DiskConsolePrintingComponent.cs +++ b/Content.Server/Research/TechnologyDisk/Components/DiskConsolePrintingComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Research.TechnologyDisk.Components; [RegisterComponent] -public sealed class DiskConsolePrintingComponent : Component +public sealed partial class DiskConsolePrintingComponent : Component { public TimeSpan FinishTime; } diff --git a/Content.Server/Research/TechnologyDisk/Components/TechnologyDiskComponent.cs b/Content.Server/Research/TechnologyDisk/Components/TechnologyDiskComponent.cs index a3aee909f7..eb5a0623a0 100644 --- a/Content.Server/Research/TechnologyDisk/Components/TechnologyDiskComponent.cs +++ b/Content.Server/Research/TechnologyDisk/Components/TechnologyDiskComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Research.TechnologyDisk.Components; [RegisterComponent] -public sealed class TechnologyDiskComponent : Component +public sealed partial class TechnologyDiskComponent : Component { /// /// The recipe that will be added. If null, one will be randomly generated diff --git a/Content.Server/Resist/CanEscapeInventoryComponent.cs b/Content.Server/Resist/CanEscapeInventoryComponent.cs index 6572eca330..19b4abf7d0 100644 --- a/Content.Server/Resist/CanEscapeInventoryComponent.cs +++ b/Content.Server/Resist/CanEscapeInventoryComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.DoAfter; namespace Content.Server.Resist; [RegisterComponent] -public sealed class CanEscapeInventoryComponent : Component +public sealed partial class CanEscapeInventoryComponent : Component { /// /// Base doafter length for uncontested breakouts. diff --git a/Content.Server/Resist/ResistLockerComponent.cs b/Content.Server/Resist/ResistLockerComponent.cs index 52a4683abf..922c83d255 100644 --- a/Content.Server/Resist/ResistLockerComponent.cs +++ b/Content.Server/Resist/ResistLockerComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Resist; [RegisterComponent] [Access(typeof(ResistLockerSystem))] -public sealed class ResistLockerComponent : Component +public sealed partial class ResistLockerComponent : Component { /// /// How long will this locker take to kick open, defaults to 2 minutes diff --git a/Content.Server/Revenant/Components/EssenceComponent.cs b/Content.Server/Revenant/Components/EssenceComponent.cs index bafd926aca..19cdcfd32b 100644 --- a/Content.Server/Revenant/Components/EssenceComponent.cs +++ b/Content.Server/Revenant/Components/EssenceComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Revenant.Components; [RegisterComponent] -public sealed class EssenceComponent : Component +public sealed partial class EssenceComponent : Component { /// /// Whether or not the entity has been harvested yet. diff --git a/Content.Server/Rotatable/FlippableComponent.cs b/Content.Server/Rotatable/FlippableComponent.cs index 0e7464ec9e..98eb0f6d5c 100644 --- a/Content.Server/Rotatable/FlippableComponent.cs +++ b/Content.Server/Rotatable/FlippableComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Rotatable { [RegisterComponent] - public sealed class FlippableComponent : Component + public sealed partial class FlippableComponent : Component { /// /// Entity to replace this entity with when the current one is 'flipped'. diff --git a/Content.Server/Salvage/Expeditions/SalvageEliminationExpeditionComponent.cs b/Content.Server/Salvage/Expeditions/SalvageEliminationExpeditionComponent.cs index 045b7b444e..a3ec66ff30 100644 --- a/Content.Server/Salvage/Expeditions/SalvageEliminationExpeditionComponent.cs +++ b/Content.Server/Salvage/Expeditions/SalvageEliminationExpeditionComponent.cs @@ -6,11 +6,11 @@ namespace Content.Server.Salvage.Expeditions.Structure; /// Tracks expedition data for /// [RegisterComponent, Access(typeof(SalvageSystem), typeof(SpawnSalvageMissionJob))] -public sealed class SalvageEliminationExpeditionComponent : Component +public sealed partial class SalvageEliminationExpeditionComponent : Component { /// /// List of mobs that need to be killed for the mission to be complete. /// [DataField("megafauna")] - public readonly List Megafauna = new(); + public List Megafauna = new(); } diff --git a/Content.Server/Salvage/Expeditions/SalvageExpeditionComponent.cs b/Content.Server/Salvage/Expeditions/SalvageExpeditionComponent.cs index e7938ae5d9..ee4b7c88cd 100644 --- a/Content.Server/Salvage/Expeditions/SalvageExpeditionComponent.cs +++ b/Content.Server/Salvage/Expeditions/SalvageExpeditionComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Salvage.Expeditions; /// Designates this entity as holding a salvage expedition. /// [RegisterComponent] -public sealed class SalvageExpeditionComponent : SharedSalvageExpeditionComponent +public sealed partial class SalvageExpeditionComponent : SharedSalvageExpeditionComponent { public SalvageMissionParams MissionParams = default!; diff --git a/Content.Server/Salvage/Expeditions/SalvageMiningExpeditionComponent.cs b/Content.Server/Salvage/Expeditions/SalvageMiningExpeditionComponent.cs index 6fdbc7d57e..b9a1379aab 100644 --- a/Content.Server/Salvage/Expeditions/SalvageMiningExpeditionComponent.cs +++ b/Content.Server/Salvage/Expeditions/SalvageMiningExpeditionComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Salvage.Expeditions; /// Tracks expedition data for /// [RegisterComponent, Access(typeof(SalvageSystem))] -public sealed class SalvageMiningExpeditionComponent : Component +public sealed partial class SalvageMiningExpeditionComponent : Component { /// /// Entities that were present on the shuttle and match the loot tax. diff --git a/Content.Server/Salvage/Expeditions/SalvageShuttleComponent.cs b/Content.Server/Salvage/Expeditions/SalvageShuttleComponent.cs index 067d7d2482..99f63d41da 100644 --- a/Content.Server/Salvage/Expeditions/SalvageShuttleComponent.cs +++ b/Content.Server/Salvage/Expeditions/SalvageShuttleComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Salvage.Expeditions; /// Added to salvage shuttle. Used for drone control. /// [RegisterComponent] -public sealed class SalvageShuttleComponent : Component +public sealed partial class SalvageShuttleComponent : Component { } diff --git a/Content.Server/Salvage/Expeditions/SalvageStructureComponent.cs b/Content.Server/Salvage/Expeditions/SalvageStructureComponent.cs index 3abce55e41..f79d33412a 100644 --- a/Content.Server/Salvage/Expeditions/SalvageStructureComponent.cs +++ b/Content.Server/Salvage/Expeditions/SalvageStructureComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Salvage.Expeditions.Structure; /// Mission objective for salvage expeditions. /// [RegisterComponent, Access(typeof(SalvageSystem))] -public sealed class SalvageStructureComponent : Component +public sealed partial class SalvageStructureComponent : Component { } diff --git a/Content.Server/Salvage/Expeditions/SalvageStructureExpeditionComponent.cs b/Content.Server/Salvage/Expeditions/SalvageStructureExpeditionComponent.cs index daa704cb91..0dec1f81ad 100644 --- a/Content.Server/Salvage/Expeditions/SalvageStructureExpeditionComponent.cs +++ b/Content.Server/Salvage/Expeditions/SalvageStructureExpeditionComponent.cs @@ -6,8 +6,8 @@ namespace Content.Server.Salvage.Expeditions.Structure; /// Tracks expedition data for /// [RegisterComponent, Access(typeof(SalvageSystem), typeof(SpawnSalvageMissionJob))] -public sealed class SalvageStructureExpeditionComponent : Component +public sealed partial class SalvageStructureExpeditionComponent : Component { [DataField("structures")] - public readonly List Structures = new(); + public List Structures = new(); } diff --git a/Content.Server/Salvage/SalvageGridComponent.cs b/Content.Server/Salvage/SalvageGridComponent.cs index be8a12f9d6..af7a851f1f 100644 --- a/Content.Server/Salvage/SalvageGridComponent.cs +++ b/Content.Server/Salvage/SalvageGridComponent.cs @@ -4,7 +4,7 @@ /// A grid spawned by a salvage magnet. /// [RegisterComponent] - public sealed class SalvageGridComponent : Component + public sealed partial class SalvageGridComponent : Component { /// /// The magnet that spawned this grid. diff --git a/Content.Server/Salvage/SalvageMagnetComponent.cs b/Content.Server/Salvage/SalvageMagnetComponent.cs index d99e52fc7f..d9a5b79b1a 100644 --- a/Content.Server/Salvage/SalvageMagnetComponent.cs +++ b/Content.Server/Salvage/SalvageMagnetComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Salvage /// [NetworkedComponent, RegisterComponent] [Access(typeof(SalvageSystem))] - public sealed class SalvageMagnetComponent : SharedSalvageMagnetComponent + public sealed partial class SalvageMagnetComponent : SharedSalvageMagnetComponent { /// /// Maximum distance from the offset position that will be used as a salvage's spawnpoint. diff --git a/Content.Server/Salvage/SalvageMobRestrictionsComponent.cs b/Content.Server/Salvage/SalvageMobRestrictionsComponent.cs index eabad86e5f..4d1b01e25a 100644 --- a/Content.Server/Salvage/SalvageMobRestrictionsComponent.cs +++ b/Content.Server/Salvage/SalvageMobRestrictionsComponent.cs @@ -14,7 +14,7 @@ namespace Content.Server.Salvage; /// whatever it's currently parented to. /// [RegisterComponent] -public sealed class SalvageMobRestrictionsComponent : Component +public sealed partial class SalvageMobRestrictionsComponent : Component { [ViewVariables(VVAccess.ReadOnly)] [DataField("linkedGridEntity")] diff --git a/Content.Server/Salvage/SalvageMobRestrictionsGridComponent.cs b/Content.Server/Salvage/SalvageMobRestrictionsGridComponent.cs index 6d7bf93ec0..29ea7c5a66 100644 --- a/Content.Server/Salvage/SalvageMobRestrictionsGridComponent.cs +++ b/Content.Server/Salvage/SalvageMobRestrictionsGridComponent.cs @@ -14,7 +14,7 @@ namespace Content.Server.Salvage; /// *This applies even if the mobs are off-grid at the time.* /// [RegisterComponent] -public sealed class SalvageMobRestrictionsGridComponent : Component +public sealed partial class SalvageMobRestrictionsGridComponent : Component { [ViewVariables(VVAccess.ReadOnly)] [DataField("mobsToKill")] diff --git a/Content.Server/Security/Components/DeployableBarrierComponent.cs b/Content.Server/Security/Components/DeployableBarrierComponent.cs index 6cf5920439..a380eaea7f 100644 --- a/Content.Server/Security/Components/DeployableBarrierComponent.cs +++ b/Content.Server/Security/Components/DeployableBarrierComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Security.Components; [RegisterComponent] -public sealed class DeployableBarrierComponent : Component +public sealed partial class DeployableBarrierComponent : Component { } diff --git a/Content.Server/SensorMonitoring/BatterySensorComponent.cs b/Content.Server/SensorMonitoring/BatterySensorComponent.cs index c99573882c..2f0c97e6ec 100644 --- a/Content.Server/SensorMonitoring/BatterySensorComponent.cs +++ b/Content.Server/SensorMonitoring/BatterySensorComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.SensorMonitoring; /// The entity should also have a and . /// [RegisterComponent] -public sealed class BatterySensorComponent : Component +public sealed partial class BatterySensorComponent : Component { } diff --git a/Content.Server/SensorMonitoring/SensorMonitoringConsoleComponent.cs b/Content.Server/SensorMonitoring/SensorMonitoringConsoleComponent.cs index d73421ebf1..64430042d6 100644 --- a/Content.Server/SensorMonitoring/SensorMonitoringConsoleComponent.cs +++ b/Content.Server/SensorMonitoring/SensorMonitoringConsoleComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Collections; namespace Content.Server.SensorMonitoring; [RegisterComponent] -public sealed class SensorMonitoringConsoleComponent : Component +public sealed partial class SensorMonitoringConsoleComponent : Component { /// /// Used to assign network IDs for sensors and sensor streams. diff --git a/Content.Server/Sericulture/SericultureComponent.cs b/Content.Server/Sericulture/SericultureComponent.cs index 37da04ff13..38528e5309 100644 --- a/Content.Server/Sericulture/SericultureComponent.cs +++ b/Content.Server/Sericulture/SericultureComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Sericulture; [RegisterComponent] -public sealed class SericultureComponent : Component +public sealed partial class SericultureComponent : Component { [DataField("popupText")] diff --git a/Content.Server/Sericulture/SericultureSystem.cs b/Content.Server/Sericulture/SericultureSystem.cs index 5eb538271e..3570695a5f 100644 --- a/Content.Server/Sericulture/SericultureSystem.cs +++ b/Content.Server/Sericulture/SericultureSystem.cs @@ -12,7 +12,7 @@ using Content.Server.Stack; namespace Content.Server.Sericulture; -public sealed class SericultureSystem : EntitySystem +public sealed partial class SericultureSystem : EntitySystem { [Dependency] private readonly ActionsSystem _actionsSystem = default!; [Dependency] private readonly DoAfterSystem _doAfterSystem = default!; @@ -97,5 +97,5 @@ public sealed class SericultureSystem : EntitySystem return false; } - public sealed class SericultureActionEvent : InstantActionEvent { } + public sealed partial class SericultureActionEvent : InstantActionEvent { } } diff --git a/Content.Server/Shuttle/Components/DroneConsoleComponent.cs b/Content.Server/Shuttle/Components/DroneConsoleComponent.cs index 933dc358d0..07a8fb9cbd 100644 --- a/Content.Server/Shuttle/Components/DroneConsoleComponent.cs +++ b/Content.Server/Shuttle/Components/DroneConsoleComponent.cs @@ -8,11 +8,11 @@ namespace Content.Server.Shuttle.Components; /// Lets you remotely control a shuttle. /// [RegisterComponent] -public sealed class DroneConsoleComponent : Component +public sealed partial class DroneConsoleComponent : Component { [DataField("components", required: true)] public ComponentRegistry Components = default!; - + /// /// that we're proxied into. /// diff --git a/Content.Server/Shuttles/Components/ArrivalsBlacklistComponent.cs b/Content.Server/Shuttles/Components/ArrivalsBlacklistComponent.cs index 838305a138..1d5b88d482 100644 --- a/Content.Server/Shuttles/Components/ArrivalsBlacklistComponent.cs +++ b/Content.Server/Shuttles/Components/ArrivalsBlacklistComponent.cs @@ -4,6 +4,6 @@ namespace Content.Server.Shuttles.Components; /// This is used for blacklisting entities from being on the arrivals shuttle when it goes FTL. /// [RegisterComponent] -public sealed class ArrivalsBlacklistComponent : Component +public sealed partial class ArrivalsBlacklistComponent : Component { } diff --git a/Content.Server/Shuttles/Components/ArrivalsShuttleComponent.cs b/Content.Server/Shuttles/Components/ArrivalsShuttleComponent.cs index 663b82e7c8..79ba1a46cb 100644 --- a/Content.Server/Shuttles/Components/ArrivalsShuttleComponent.cs +++ b/Content.Server/Shuttles/Components/ArrivalsShuttleComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Server.Shuttles.Components; [RegisterComponent, Access(typeof(ArrivalsSystem))] -public sealed class ArrivalsShuttleComponent : Component +public sealed partial class ArrivalsShuttleComponent : Component { [DataField("station")] public EntityUid Station; diff --git a/Content.Server/Shuttles/Components/ArrivalsSourceComponent.cs b/Content.Server/Shuttles/Components/ArrivalsSourceComponent.cs index a1a00793f2..c7ed634b28 100644 --- a/Content.Server/Shuttles/Components/ArrivalsSourceComponent.cs +++ b/Content.Server/Shuttles/Components/ArrivalsSourceComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Shuttles.Components; /// Added to a designated arrivals station for players to spawn at, if enabled. /// [RegisterComponent, Access(typeof(ArrivalsSystem))] -public sealed class ArrivalsSourceComponent : Component +public sealed partial class ArrivalsSourceComponent : Component { } diff --git a/Content.Server/Shuttles/Components/AutoDockComponent.cs b/Content.Server/Shuttles/Components/AutoDockComponent.cs index 91e895cbdf..fa4cd4dfaf 100644 --- a/Content.Server/Shuttles/Components/AutoDockComponent.cs +++ b/Content.Server/Shuttles/Components/AutoDockComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Shuttles.Components; /// We track it because checking every dock constantly would be expensive. /// [RegisterComponent] -public sealed class AutoDockComponent : Component +public sealed partial class AutoDockComponent : Component { /// /// Track who has requested autodocking so we can know when to be removed. diff --git a/Content.Server/Shuttles/Components/DockingComponent.cs b/Content.Server/Shuttles/Components/DockingComponent.cs index 0704c2b5d9..b0ead15f92 100644 --- a/Content.Server/Shuttles/Components/DockingComponent.cs +++ b/Content.Server/Shuttles/Components/DockingComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Physics.Dynamics.Joints; namespace Content.Server.Shuttles.Components { [RegisterComponent] - public sealed class DockingComponent : SharedDockingComponent + public sealed partial class DockingComponent : SharedDockingComponent { [DataField("dockedWith")] public EntityUid? DockedWith; diff --git a/Content.Server/Shuttles/Components/EmergencyShuttleConsoleComponent.cs b/Content.Server/Shuttles/Components/EmergencyShuttleConsoleComponent.cs index 3edcf2f015..6379a76f55 100644 --- a/Content.Server/Shuttles/Components/EmergencyShuttleConsoleComponent.cs +++ b/Content.Server/Shuttles/Components/EmergencyShuttleConsoleComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Shuttles.Components; [RegisterComponent] -public sealed class EmergencyShuttleConsoleComponent : Component +public sealed partial class EmergencyShuttleConsoleComponent : Component { // TODO: Okay doing it by string is kinda suss but also ID card tracking doesn't seem to be robust enough diff --git a/Content.Server/Shuttles/Components/EscapePodComponent.cs b/Content.Server/Shuttles/Components/EscapePodComponent.cs index 20d3bbad39..d68065fc00 100644 --- a/Content.Server/Shuttles/Components/EscapePodComponent.cs +++ b/Content.Server/Shuttles/Components/EscapePodComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Shuttles.Components; /// If added to a grid gets launched when the emergency shuttle launches. /// [RegisterComponent, Access(typeof(EmergencyShuttleSystem))] -public sealed class EscapePodComponent : Component +public sealed partial class EscapePodComponent : Component { [DataField("launchTime", customTypeSerializer:typeof(TimeOffsetSerializer))] public TimeSpan? LaunchTime; diff --git a/Content.Server/Shuttles/Components/FTLComponent.cs b/Content.Server/Shuttles/Components/FTLComponent.cs index 7563b083aa..43b702cd39 100644 --- a/Content.Server/Shuttles/Components/FTLComponent.cs +++ b/Content.Server/Shuttles/Components/FTLComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Shuttles.Components; /// Added to a component when it is queued or is travelling via FTL. /// [RegisterComponent] -public sealed class FTLComponent : Component +public sealed partial class FTLComponent : Component { [ViewVariables] public FTLState State = FTLState.Available; diff --git a/Content.Server/Shuttles/Components/FTLDestinationComponent.cs b/Content.Server/Shuttles/Components/FTLDestinationComponent.cs index f938e14202..6eedcbd8ce 100644 --- a/Content.Server/Shuttles/Components/FTLDestinationComponent.cs +++ b/Content.Server/Shuttles/Components/FTLDestinationComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Whitelist; namespace Content.Server.Shuttles.Components; [RegisterComponent] -public sealed class FTLDestinationComponent : Component +public sealed partial class FTLDestinationComponent : Component { /// /// Should this destination be restricted in some form from console visibility. diff --git a/Content.Server/Shuttles/Components/GridFillComponent.cs b/Content.Server/Shuttles/Components/GridFillComponent.cs index 6154c7a283..5f0a9113f3 100644 --- a/Content.Server/Shuttles/Components/GridFillComponent.cs +++ b/Content.Server/Shuttles/Components/GridFillComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Shuttles.Components; /// If added to an airlock will try to autofill a grid onto it on MapInit /// [RegisterComponent, Access(typeof(ShuttleSystem))] -public sealed class GridFillComponent : Component +public sealed partial class GridFillComponent : Component { [DataField("path")] public ResPath Path = new("/Maps/Shuttles/escape_pod_small.yml"); } diff --git a/Content.Server/Shuttles/Components/GridSpawnComponent.cs b/Content.Server/Shuttles/Components/GridSpawnComponent.cs index 0311f2c1c7..9303d06e8d 100644 --- a/Content.Server/Shuttles/Components/GridSpawnComponent.cs +++ b/Content.Server/Shuttles/Components/GridSpawnComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Shuttles.Components; /// Similar to except spawns the grid near to the station. /// [RegisterComponent, Access(typeof(ShuttleSystem))] -public sealed class GridSpawnComponent : Component +public sealed partial class GridSpawnComponent : Component { [DataField("paths", required: true)] public List Paths = new(); } diff --git a/Content.Server/Shuttles/Components/IFFConsoleComponent.cs b/Content.Server/Shuttles/Components/IFFConsoleComponent.cs index 8adb42fb19..562bec51c2 100644 --- a/Content.Server/Shuttles/Components/IFFConsoleComponent.cs +++ b/Content.Server/Shuttles/Components/IFFConsoleComponent.cs @@ -4,7 +4,7 @@ using Content.Shared.Shuttles.Components; namespace Content.Server.Shuttles.Components; [RegisterComponent, Access(typeof(ShuttleSystem))] -public sealed class IFFConsoleComponent : Component +public sealed partial class IFFConsoleComponent : Component { /// /// Flags that this console is allowed to set. diff --git a/Content.Server/Shuttles/Components/PendingClockInComponent.cs b/Content.Server/Shuttles/Components/PendingClockInComponent.cs index 549bc13438..62cd1e8548 100644 --- a/Content.Server/Shuttles/Components/PendingClockInComponent.cs +++ b/Content.Server/Shuttles/Components/PendingClockInComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Shuttles.Components; /// Added to arrivals latejoins until they have arrived at the station. /// [RegisterComponent] -public sealed class PendingClockInComponent : Component +public sealed partial class PendingClockInComponent : Component { } diff --git a/Content.Server/Shuttles/Components/PriorityDockComponent.cs b/Content.Server/Shuttles/Components/PriorityDockComponent.cs index 4f19d72e08..1226a55808 100644 --- a/Content.Server/Shuttles/Components/PriorityDockComponent.cs +++ b/Content.Server/Shuttles/Components/PriorityDockComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Shuttles.Components; /// Given priority when considering where to dock. /// [RegisterComponent] -public sealed class PriorityDockComponent : Component +public sealed partial class PriorityDockComponent : Component { /// /// Tag to match on the docking request, if this dock is to be prioritised. diff --git a/Content.Server/Shuttles/Components/RecentlyDockedComponent.cs b/Content.Server/Shuttles/Components/RecentlyDockedComponent.cs index 5ffbd8b893..6b0667d1e6 100644 --- a/Content.Server/Shuttles/Components/RecentlyDockedComponent.cs +++ b/Content.Server/Shuttles/Components/RecentlyDockedComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Shuttles.Components; /// This checks for whether they've left the specified radius before allowing them to automatically dock again. /// [RegisterComponent] -public sealed class RecentlyDockedComponent : Component +public sealed partial class RecentlyDockedComponent : Component { [DataField("lastDocked")] public EntityUid LastDocked; diff --git a/Content.Server/Shuttles/Components/ShuttleComponent.cs b/Content.Server/Shuttles/Components/ShuttleComponent.cs index 87c65b622f..f29a8bb220 100644 --- a/Content.Server/Shuttles/Components/ShuttleComponent.cs +++ b/Content.Server/Shuttles/Components/ShuttleComponent.cs @@ -3,7 +3,7 @@ using System.Numerics; namespace Content.Server.Shuttles.Components { [RegisterComponent] - public sealed class ShuttleComponent : Component + public sealed partial class ShuttleComponent : Component { [ViewVariables] public bool Enabled = true; diff --git a/Content.Server/Shuttles/Components/ShuttleConsoleComponent.cs b/Content.Server/Shuttles/Components/ShuttleConsoleComponent.cs index b2a5fd3a80..91cecde044 100644 --- a/Content.Server/Shuttles/Components/ShuttleConsoleComponent.cs +++ b/Content.Server/Shuttles/Components/ShuttleConsoleComponent.cs @@ -4,7 +4,7 @@ using Content.Shared.Shuttles.Components; namespace Content.Server.Shuttles.Components { [RegisterComponent] - public sealed class ShuttleConsoleComponent : SharedShuttleConsoleComponent + public sealed partial class ShuttleConsoleComponent : SharedShuttleConsoleComponent { [ViewVariables] public readonly List SubscribedPilots = new(); diff --git a/Content.Server/Shuttles/Components/SpaceGarbageComponent.cs b/Content.Server/Shuttles/Components/SpaceGarbageComponent.cs index 3f8fa6f865..299458ab33 100644 --- a/Content.Server/Shuttles/Components/SpaceGarbageComponent.cs +++ b/Content.Server/Shuttles/Components/SpaceGarbageComponent.cs @@ -5,4 +5,4 @@ namespace Content.Server.Shuttles.Components; /// Useful for small, unimportant items like bullets to avoid generating many contacts. /// [RegisterComponent] -public sealed class SpaceGarbageComponent : Component {} +public sealed partial class SpaceGarbageComponent : Component {} diff --git a/Content.Server/Shuttles/Components/StationArrivalsComponent.cs b/Content.Server/Shuttles/Components/StationArrivalsComponent.cs index ff88c798f4..1d469f9bff 100644 --- a/Content.Server/Shuttles/Components/StationArrivalsComponent.cs +++ b/Content.Server/Shuttles/Components/StationArrivalsComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Shuttles.Components; /// Added to a station that is available for arrivals shuttles. /// [RegisterComponent, Access(typeof(ArrivalsSystem))] -public sealed class StationArrivalsComponent : Component +public sealed partial class StationArrivalsComponent : Component { [DataField("shuttle")] public EntityUid Shuttle; diff --git a/Content.Server/Shuttles/Components/StationCentcommComponent.cs b/Content.Server/Shuttles/Components/StationCentcommComponent.cs index ee12a266f1..43b35ebc50 100644 --- a/Content.Server/Shuttles/Components/StationCentcommComponent.cs +++ b/Content.Server/Shuttles/Components/StationCentcommComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Shuttles.Components; /// Spawns Central Command (emergency destination) for a station. /// [RegisterComponent] -public sealed class StationCentcommComponent : Component +public sealed partial class StationCentcommComponent : Component { /// /// Crude shuttle offset spawning. diff --git a/Content.Server/Shuttles/Components/StationEmergencyShuttleComponent.cs b/Content.Server/Shuttles/Components/StationEmergencyShuttleComponent.cs index 4eaf139072..bdfdcb273a 100644 --- a/Content.Server/Shuttles/Components/StationEmergencyShuttleComponent.cs +++ b/Content.Server/Shuttles/Components/StationEmergencyShuttleComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Shuttles.Components; /// This is used for controlling evacuation for a station. /// [RegisterComponent] -public sealed class StationEmergencyShuttleComponent : Component +public sealed partial class StationEmergencyShuttleComponent : Component { /// /// The emergency shuttle assigned to this station. diff --git a/Content.Server/Shuttles/Components/ThrusterComponent.cs b/Content.Server/Shuttles/Components/ThrusterComponent.cs index 7b6044ccc7..c50feb959a 100644 --- a/Content.Server/Shuttles/Components/ThrusterComponent.cs +++ b/Content.Server/Shuttles/Components/ThrusterComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Shuttles.Components { [RegisterComponent, NetworkedComponent] [Access(typeof(ThrusterSystem))] - public sealed class ThrusterComponent : Component + public sealed partial class ThrusterComponent : Component { /// /// Whether the thruster has been force to be enabled / disabled (e.g. VV, interaction, etc.) diff --git a/Content.Server/Singularity/Components/GravityWellComponent.cs b/Content.Server/Singularity/Components/GravityWellComponent.cs index 53993e3798..58a314fa8b 100644 --- a/Content.Server/Singularity/Components/GravityWellComponent.cs +++ b/Content.Server/Singularity/Components/GravityWellComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Singularity.Components; /// Primarily managed by . /// [RegisterComponent] -public sealed class GravityWellComponent : Component +public sealed partial class GravityWellComponent : Component { /// /// The maximum range at which the gravity well can push/pull entities. diff --git a/Content.Server/Singularity/Components/RadiationCollectorComponent.cs b/Content.Server/Singularity/Components/RadiationCollectorComponent.cs index 5c4130058b..fee2c4c729 100644 --- a/Content.Server/Singularity/Components/RadiationCollectorComponent.cs +++ b/Content.Server/Singularity/Components/RadiationCollectorComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Singularity.Components /// [RegisterComponent] [Access(typeof(RadiationCollectorSystem))] - public sealed class RadiationCollectorComponent : Component + public sealed partial class RadiationCollectorComponent : Component { /// /// How much joules will collector generate for each rad. diff --git a/Content.Server/Singularity/Components/SingularityGeneratorComponent.cs b/Content.Server/Singularity/Components/SingularityGeneratorComponent.cs index 59a17e834a..ea2628e5cb 100644 --- a/Content.Server/Singularity/Components/SingularityGeneratorComponent.cs +++ b/Content.Server/Singularity/Components/SingularityGeneratorComponent.cs @@ -6,7 +6,7 @@ using Content.Server.Singularity.EntitySystems; namespace Content.Server.Singularity.Components; [RegisterComponent] -public sealed class SingularityGeneratorComponent : Component +public sealed partial class SingularityGeneratorComponent : Component { /// /// The amount of power this generator has accumulated. diff --git a/Content.Server/Singularity/Components/SinguloFoodComponent.cs b/Content.Server/Singularity/Components/SinguloFoodComponent.cs index 0da7363533..e9f9da15c1 100644 --- a/Content.Server/Singularity/Components/SinguloFoodComponent.cs +++ b/Content.Server/Singularity/Components/SinguloFoodComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Singularity.Components /// Overrides exactly how much energy this object gives to a singularity. /// [RegisterComponent] - public sealed class SinguloFoodComponent : Component + public sealed partial class SinguloFoodComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("energy")] diff --git a/Content.Server/Solar/Components/SolarControlConsoleComponent.cs b/Content.Server/Solar/Components/SolarControlConsoleComponent.cs index ccb21149c7..906a5845fb 100644 --- a/Content.Server/Solar/Components/SolarControlConsoleComponent.cs +++ b/Content.Server/Solar/Components/SolarControlConsoleComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Solar.Components { [RegisterComponent] - public sealed class SolarControlConsoleComponent : Component + public sealed partial class SolarControlConsoleComponent : Component { } } diff --git a/Content.Server/Solar/Components/SolarPanelComponent.cs b/Content.Server/Solar/Components/SolarPanelComponent.cs index 9e035e2b99..870b4c78ef 100644 --- a/Content.Server/Solar/Components/SolarPanelComponent.cs +++ b/Content.Server/Solar/Components/SolarPanelComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Solar.Components /// [RegisterComponent] [Access(typeof(PowerSolarSystem))] - public sealed class SolarPanelComponent : Component + public sealed partial class SolarPanelComponent : Component { /// /// Maximum supply output by this panel (coverage = 1) diff --git a/Content.Server/Sound/Components/EmitSoundOnTriggerComponent.cs b/Content.Server/Sound/Components/EmitSoundOnTriggerComponent.cs index 40b385268a..5338351948 100644 --- a/Content.Server/Sound/Components/EmitSoundOnTriggerComponent.cs +++ b/Content.Server/Sound/Components/EmitSoundOnTriggerComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Sound.Components /// Whenever a is run play a sound in PVS range. /// [RegisterComponent] - public sealed class EmitSoundOnTriggerComponent : BaseEmitSoundComponent + public sealed partial class EmitSoundOnTriggerComponent : BaseEmitSoundComponent { } } diff --git a/Content.Server/Sound/Components/EmitSoundOnUIOpenComponent.cs b/Content.Server/Sound/Components/EmitSoundOnUIOpenComponent.cs index afde39f459..44e83b0e79 100644 --- a/Content.Server/Sound/Components/EmitSoundOnUIOpenComponent.cs +++ b/Content.Server/Sound/Components/EmitSoundOnUIOpenComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Sound.Components /// Simple sound emitter that emits sound on AfterActivatableUIOpenEvent /// [RegisterComponent] - public sealed class EmitSoundOnUIOpenComponent : BaseEmitSoundComponent + public sealed partial class EmitSoundOnUIOpenComponent : BaseEmitSoundComponent { } } diff --git a/Content.Server/Sound/Components/SpamEmitSoundComponent.cs b/Content.Server/Sound/Components/SpamEmitSoundComponent.cs index e89b4e01d5..d17bbb9e8f 100644 --- a/Content.Server/Sound/Components/SpamEmitSoundComponent.cs +++ b/Content.Server/Sound/Components/SpamEmitSoundComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Sound.Components /// Rolls to play a sound every few seconds. /// [RegisterComponent] - public sealed class SpamEmitSoundComponent : BaseEmitSoundComponent + public sealed partial class SpamEmitSoundComponent : BaseEmitSoundComponent { [DataField("accumulator")] public float Accumulator = 0f; diff --git a/Content.Server/Spawners/Components/ConditionalSpawnerComponent.cs b/Content.Server/Spawners/Components/ConditionalSpawnerComponent.cs index 12a16151c1..1910431eee 100644 --- a/Content.Server/Spawners/Components/ConditionalSpawnerComponent.cs +++ b/Content.Server/Spawners/Components/ConditionalSpawnerComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Spawners.Components { [RegisterComponent] [Virtual] - public class ConditionalSpawnerComponent : Component + public partial class ConditionalSpawnerComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("prototypes", customTypeSerializer: typeof(PrototypeIdListSerializer))] @@ -13,7 +13,7 @@ namespace Content.Server.Spawners.Components [ViewVariables(VVAccess.ReadWrite)] [DataField("gameRules", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public readonly List GameRules = new(); + public List GameRules = new(); [ViewVariables(VVAccess.ReadWrite)] [DataField("chance")] diff --git a/Content.Server/Spawners/Components/RandomSpawnerComponent.cs b/Content.Server/Spawners/Components/RandomSpawnerComponent.cs index f3ddfae0ce..ece17de974 100644 --- a/Content.Server/Spawners/Components/RandomSpawnerComponent.cs +++ b/Content.Server/Spawners/Components/RandomSpawnerComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Spawners.Components { [RegisterComponent] - public sealed class RandomSpawnerComponent : ConditionalSpawnerComponent + public sealed partial class RandomSpawnerComponent : ConditionalSpawnerComponent { [ViewVariables(VVAccess.ReadWrite)] [DataField("rarePrototypes", customTypeSerializer:typeof(PrototypeIdListSerializer))] diff --git a/Content.Server/Spawners/Components/SpawnPointComponent.cs b/Content.Server/Spawners/Components/SpawnPointComponent.cs index 20d74f4ba9..5a86175a1d 100644 --- a/Content.Server/Spawners/Components/SpawnPointComponent.cs +++ b/Content.Server/Spawners/Components/SpawnPointComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Spawners.Components; [RegisterComponent] -public sealed class SpawnPointComponent : Component +public sealed partial class SpawnPointComponent : Component { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; @@ -14,7 +14,7 @@ public sealed class SpawnPointComponent : Component [ViewVariables(VVAccess.ReadWrite)] [DataField("spawn_type")] - public SpawnPointType SpawnType { get; } = SpawnPointType.Unset; + public SpawnPointType SpawnType { get; private set; } = SpawnPointType.Unset; public JobPrototype? Job => string.IsNullOrEmpty(_jobId) ? null : _prototypeManager.Index(_jobId); diff --git a/Content.Server/Spawners/Components/TimedSpawnerComponent.cs b/Content.Server/Spawners/Components/TimedSpawnerComponent.cs index a79444d88f..abbfd37c6a 100644 --- a/Content.Server/Spawners/Components/TimedSpawnerComponent.cs +++ b/Content.Server/Spawners/Components/TimedSpawnerComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Spawners.Components { [RegisterComponent] - public sealed class TimedSpawnerComponent : Component, ISerializationHooks + public sealed partial class TimedSpawnerComponent : Component, ISerializationHooks { [ViewVariables(VVAccess.ReadWrite)] [DataField("prototypes", customTypeSerializer:typeof(PrototypeIdListSerializer))] diff --git a/Content.Server/Speech/Components/ActiveListenerComponent.cs b/Content.Server/Speech/Components/ActiveListenerComponent.cs index 051c0a468a..4553fafa51 100644 --- a/Content.Server/Speech/Components/ActiveListenerComponent.cs +++ b/Content.Server/Speech/Components/ActiveListenerComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Speech.Components; /// This component is used to relay speech events to other systems. /// [RegisterComponent] -public sealed class ActiveListenerComponent : Component +public sealed partial class ActiveListenerComponent : Component { [DataField("range")] public float Range = ChatSystem.VoiceRange; diff --git a/Content.Server/Speech/Components/AddAccentClothingComponent.cs b/Content.Server/Speech/Components/AddAccentClothingComponent.cs index 38dc541818..9d93b55368 100644 --- a/Content.Server/Speech/Components/AddAccentClothingComponent.cs +++ b/Content.Server/Speech/Components/AddAccentClothingComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Speech.Components; /// Applies accent to user while they wear entity as a clothing. /// [RegisterComponent] -public sealed class AddAccentClothingComponent : Component +public sealed partial class AddAccentClothingComponent : Component { /// /// Component name for accent that will be applied. diff --git a/Content.Server/Speech/Components/ArchaicAccentComponent.cs b/Content.Server/Speech/Components/ArchaicAccentComponent.cs index 9975f97bf6..0d43f54424 100644 --- a/Content.Server/Speech/Components/ArchaicAccentComponent.cs +++ b/Content.Server/Speech/Components/ArchaicAccentComponent.cs @@ -4,11 +4,11 @@ namespace Content.Server.Speech.Components; [RegisterComponent] [Access(typeof(ArchaicAccentSystem))] -public sealed class ArchaicAccentComponent : Component +public sealed partial class ArchaicAccentComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("forsoothChance")] - public readonly float ForsoothChance = 0.15f; + public float ForsoothChance = 0.15f; [ViewVariables] public readonly List ArchaicWords = new() diff --git a/Content.Server/Speech/Components/BackwardsAccentComponent.cs b/Content.Server/Speech/Components/BackwardsAccentComponent.cs index bc03c43474..4da8bb52f0 100644 --- a/Content.Server/Speech/Components/BackwardsAccentComponent.cs +++ b/Content.Server/Speech/Components/BackwardsAccentComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Speech.Components { [RegisterComponent] - public sealed class BackwardsAccentComponent : Component + public sealed partial class BackwardsAccentComponent : Component { } } diff --git a/Content.Server/Speech/Components/LizardAccentComponent.cs b/Content.Server/Speech/Components/LizardAccentComponent.cs index c84336bea4..0ac29c43d1 100644 --- a/Content.Server/Speech/Components/LizardAccentComponent.cs +++ b/Content.Server/Speech/Components/LizardAccentComponent.cs @@ -4,7 +4,7 @@ /// Hiss! /// [RegisterComponent] -public sealed class LizardAccentComponent : Component +public sealed partial class LizardAccentComponent : Component { } diff --git a/Content.Server/Speech/Components/MobsterAccentComponent.cs b/Content.Server/Speech/Components/MobsterAccentComponent.cs index f67ea32792..d781f5676c 100644 --- a/Content.Server/Speech/Components/MobsterAccentComponent.cs +++ b/Content.Server/Speech/Components/MobsterAccentComponent.cs @@ -5,7 +5,7 @@ /// Etc etc. /// [RegisterComponent] -public sealed class MobsterAccentComponent : Component +public sealed partial class MobsterAccentComponent : Component { /// /// Do you make all the rules? diff --git a/Content.Server/Speech/Components/MonkeyAccentComponent.cs b/Content.Server/Speech/Components/MonkeyAccentComponent.cs index 07810eedd1..58237d8deb 100644 --- a/Content.Server/Speech/Components/MonkeyAccentComponent.cs +++ b/Content.Server/Speech/Components/MonkeyAccentComponent.cs @@ -1,4 +1,4 @@ namespace Content.Server.Speech.Components; [RegisterComponent] -public sealed class MonkeyAccentComponent : Component {} +public sealed partial class MonkeyAccentComponent : Component {} diff --git a/Content.Server/Speech/Components/OwOAccentComponent.cs b/Content.Server/Speech/Components/OwOAccentComponent.cs index df8a57dbe8..960ff2f721 100644 --- a/Content.Server/Speech/Components/OwOAccentComponent.cs +++ b/Content.Server/Speech/Components/OwOAccentComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Speech.Components { [RegisterComponent] - public sealed class OwOAccentComponent : Component + public sealed partial class OwOAccentComponent : Component { } } diff --git a/Content.Server/Speech/Components/PirateAccentComponent.cs b/Content.Server/Speech/Components/PirateAccentComponent.cs index be6a8b6211..0559d9854b 100644 --- a/Content.Server/Speech/Components/PirateAccentComponent.cs +++ b/Content.Server/Speech/Components/PirateAccentComponent.cs @@ -4,11 +4,11 @@ namespace Content.Server.Speech.Components; [RegisterComponent] [Access(typeof(PirateAccentSystem))] -public sealed class PirateAccentComponent : Component +public sealed partial class PirateAccentComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("yarrChance")] - public readonly float YarrChance = 0.5f; + public float YarrChance = 0.5f; [ViewVariables] public readonly List PirateWords = new() diff --git a/Content.Server/Speech/Components/ReplacementAccentComponent.cs b/Content.Server/Speech/Components/ReplacementAccentComponent.cs index ee3a102be3..cbec2e8464 100644 --- a/Content.Server/Speech/Components/ReplacementAccentComponent.cs +++ b/Content.Server/Speech/Components/ReplacementAccentComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Speech.Components { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// If this array is non-null, the full text of anything said will be randomly replaced with one of these words. @@ -28,7 +28,7 @@ namespace Content.Server.Speech.Components /// Replaces full sentences or words within sentences with new strings. /// [RegisterComponent] - public sealed class ReplacementAccentComponent : Component + public sealed partial class ReplacementAccentComponent : Component { [DataField("accent", customTypeSerializer: typeof(PrototypeIdSerializer), required: true)] public string Accent = default!; diff --git a/Content.Server/Speech/Components/RussianAccentComponent.cs b/Content.Server/Speech/Components/RussianAccentComponent.cs index 527561dcc9..057bf83bb6 100644 --- a/Content.Server/Speech/Components/RussianAccentComponent.cs +++ b/Content.Server/Speech/Components/RussianAccentComponent.cs @@ -1,4 +1,4 @@ namespace Content.Server.Speech.Components; [RegisterComponent] -public sealed class RussianAccentComponent : Component {} +public sealed partial class RussianAccentComponent : Component {} diff --git a/Content.Server/Speech/Components/ScrambledAccentComponent.cs b/Content.Server/Speech/Components/ScrambledAccentComponent.cs index d25e048ede..70776c099d 100644 --- a/Content.Server/Speech/Components/ScrambledAccentComponent.cs +++ b/Content.Server/Speech/Components/ScrambledAccentComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Speech.Components { [RegisterComponent] - public sealed class ScrambledAccentComponent : Component + public sealed partial class ScrambledAccentComponent : Component { } } diff --git a/Content.Server/Speech/Components/SkeletonAccentComponent.cs b/Content.Server/Speech/Components/SkeletonAccentComponent.cs index f533982680..b3aea22dba 100644 --- a/Content.Server/Speech/Components/SkeletonAccentComponent.cs +++ b/Content.Server/Speech/Components/SkeletonAccentComponent.cs @@ -4,7 +4,7 @@ /// Rattle me bones! /// [RegisterComponent] -public sealed class SkeletonAccentComponent : Component +public sealed partial class SkeletonAccentComponent : Component { /// /// Chance that the message will be appended with "ACK ACK!" diff --git a/Content.Server/Speech/Components/SlurredAccentComponent.cs b/Content.Server/Speech/Components/SlurredAccentComponent.cs index 18cfeea86c..b50ba86cb5 100644 --- a/Content.Server/Speech/Components/SlurredAccentComponent.cs +++ b/Content.Server/Speech/Components/SlurredAccentComponent.cs @@ -1,4 +1,4 @@ namespace Content.Server.Speech.Components; [RegisterComponent] -public sealed class SlurredAccentComponent : Component { } +public sealed partial class SlurredAccentComponent : Component { } diff --git a/Content.Server/Speech/Components/SpanishAccentComponent.cs b/Content.Server/Speech/Components/SpanishAccentComponent.cs index 948085f0ae..16a2d188b6 100644 --- a/Content.Server/Speech/Components/SpanishAccentComponent.cs +++ b/Content.Server/Speech/Components/SpanishAccentComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Speech.Components { [RegisterComponent] - public sealed class SpanishAccentComponent : Component + public sealed partial class SpanishAccentComponent : Component { } } diff --git a/Content.Server/Speech/Components/StutteringAccentComponent.cs b/Content.Server/Speech/Components/StutteringAccentComponent.cs index 361b08f379..b283a8354b 100644 --- a/Content.Server/Speech/Components/StutteringAccentComponent.cs +++ b/Content.Server/Speech/Components/StutteringAccentComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Speech.Components { [RegisterComponent] - public sealed class StutteringAccentComponent : Component + public sealed partial class StutteringAccentComponent : Component { } } diff --git a/Content.Server/Speech/Components/VocalComponent.cs b/Content.Server/Speech/Components/VocalComponent.cs index 4ebce82d9d..292498474c 100644 --- a/Content.Server/Speech/Components/VocalComponent.cs +++ b/Content.Server/Speech/Components/VocalComponent.cs @@ -15,7 +15,7 @@ namespace Content.Server.Speech.Components; /// [RegisterComponent] [Access(typeof(VocalSystem))] -public sealed class VocalComponent : Component +public sealed partial class VocalComponent : Component { /// /// Emote sounds prototype id for each sex (not gender). @@ -47,7 +47,7 @@ public sealed class VocalComponent : Component public EmoteSoundsPrototype? EmoteSounds = null; } -public sealed class ScreamActionEvent : InstantActionEvent +public sealed partial class ScreamActionEvent : InstantActionEvent { } diff --git a/Content.Server/Speech/Muting/MutedComponent.cs b/Content.Server/Speech/Muting/MutedComponent.cs index 1ee39d0289..5b3ae83992 100644 --- a/Content.Server/Speech/Muting/MutedComponent.cs +++ b/Content.Server/Speech/Muting/MutedComponent.cs @@ -1,6 +1,6 @@ namespace Content.Server.Speech.Muting { [RegisterComponent] - public sealed class MutedComponent : Component + public sealed partial class MutedComponent : Component {} } diff --git a/Content.Server/SprayPainter/SprayPainterComponent.cs b/Content.Server/SprayPainter/SprayPainterComponent.cs index c67b793891..9417112b4f 100644 --- a/Content.Server/SprayPainter/SprayPainterComponent.cs +++ b/Content.Server/SprayPainter/SprayPainterComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Audio; namespace Content.Server.SprayPainter; [RegisterComponent] -public sealed class SprayPainterComponent : Component +public sealed partial class SprayPainterComponent : Component { [DataField("spraySound")] public SoundSpecifier SpraySound = new SoundPathSpecifier("/Audio/Effects/spray2.ogg"); diff --git a/Content.Server/Spreader/EdgeSpreaderComponent.cs b/Content.Server/Spreader/EdgeSpreaderComponent.cs index 8a5c231d3f..d0e18fccc2 100644 --- a/Content.Server/Spreader/EdgeSpreaderComponent.cs +++ b/Content.Server/Spreader/EdgeSpreaderComponent.cs @@ -5,6 +5,6 @@ namespace Content.Server.Spreader; /// This needs to be manually added and removed. /// [RegisterComponent, Access(typeof(SpreaderSystem))] -public sealed class EdgeSpreaderComponent : Component +public sealed partial class EdgeSpreaderComponent : Component { } diff --git a/Content.Server/Spreader/GrowingKudzuComponent.cs b/Content.Server/Spreader/GrowingKudzuComponent.cs index b3f571dea8..98d34593d6 100644 --- a/Content.Server/Spreader/GrowingKudzuComponent.cs +++ b/Content.Server/Spreader/GrowingKudzuComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Server.Spreader; [RegisterComponent, Access(typeof(KudzuSystem))] -public sealed class GrowingKudzuComponent : Component +public sealed partial class GrowingKudzuComponent : Component { /// /// At level 3 spreading can occur; prior to that we have a chance of increasing our growth level and changing our sprite. diff --git a/Content.Server/Spreader/KudzuComponent.cs b/Content.Server/Spreader/KudzuComponent.cs index 8fcc56c5dd..afdf510f05 100644 --- a/Content.Server/Spreader/KudzuComponent.cs +++ b/Content.Server/Spreader/KudzuComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Spreader; /// Handles entities that spread out when they reach the relevant growth level. /// [RegisterComponent] -public sealed class KudzuComponent : Component +public sealed partial class KudzuComponent : Component { /// /// Chance to spread whenever an edge spread is possible. diff --git a/Content.Server/Spreader/SpreaderGridComponent.cs b/Content.Server/Spreader/SpreaderGridComponent.cs index 2dff8d8747..102678a251 100644 --- a/Content.Server/Spreader/SpreaderGridComponent.cs +++ b/Content.Server/Spreader/SpreaderGridComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Server.Spreader; [RegisterComponent] -public sealed class SpreaderGridComponent : Component +public sealed partial class SpreaderGridComponent : Component { [DataField("nextUpdate", customTypeSerializer:typeof(TimeOffsetSerializer))] public TimeSpan NextUpdate = TimeSpan.Zero; diff --git a/Content.Server/Spreader/SpreaderNode.cs b/Content.Server/Spreader/SpreaderNode.cs index fa0c127889..0c8a5c8ee8 100644 --- a/Content.Server/Spreader/SpreaderNode.cs +++ b/Content.Server/Spreader/SpreaderNode.cs @@ -9,7 +9,7 @@ namespace Content.Server.Spreader; /// Handles the node for . /// Functions as a generic tile-based entity spreader for systems such as puddles or smoke. /// -public sealed class SpreaderNode : Node +public sealed partial class SpreaderNode : Node { // [Dependency] private readonly NodeContainerSystem _nodeContainer = default!; diff --git a/Content.Server/Station/Components/BecomesStationComponent.cs b/Content.Server/Station/Components/BecomesStationComponent.cs index eb33ef4282..b4544b8c3b 100644 --- a/Content.Server/Station/Components/BecomesStationComponent.cs +++ b/Content.Server/Station/Components/BecomesStationComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Station.Components; /// [RegisterComponent] [Access(typeof(GameTicker))] -public sealed class BecomesStationComponent : Component +public sealed partial class BecomesStationComponent : Component { /// /// Mapping only. Should use StationIds in all other diff --git a/Content.Server/Station/Components/StationDataComponent.cs b/Content.Server/Station/Components/StationDataComponent.cs index 6d33bcedab..d154c6936d 100644 --- a/Content.Server/Station/Components/StationDataComponent.cs +++ b/Content.Server/Station/Components/StationDataComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Station.Components; /// All station entities will have this component. /// [RegisterComponent, Access(typeof(StationSystem))] -public sealed class StationDataComponent : Component +public sealed partial class StationDataComponent : Component { /// /// The game map prototype, if any, associated with this station. @@ -22,5 +22,5 @@ public sealed class StationDataComponent : Component /// List of all grids this station is part of. /// [DataField("grids")] - public readonly HashSet Grids = new(); + public HashSet Grids = new(); } diff --git a/Content.Server/Station/Components/StationEventEligibleComponent.cs b/Content.Server/Station/Components/StationEventEligibleComponent.cs index 0f3f6f85f7..0a899446a0 100644 --- a/Content.Server/Station/Components/StationEventEligibleComponent.cs +++ b/Content.Server/Station/Components/StationEventEligibleComponent.cs @@ -4,7 +4,7 @@ /// This is used for event eligibility. /// [RegisterComponent] -public sealed class StationEventEligibleComponent : Component +public sealed partial class StationEventEligibleComponent : Component { } diff --git a/Content.Server/Station/Components/StationJobsComponent.cs b/Content.Server/Station/Components/StationJobsComponent.cs index a717477f5a..677600df7e 100644 --- a/Content.Server/Station/Components/StationJobsComponent.cs +++ b/Content.Server/Station/Components/StationJobsComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Station.Components; /// Stores information about a station's job selection. /// [RegisterComponent, Access(typeof(StationJobsSystem)), PublicAPI] -public sealed class StationJobsComponent : Component +public sealed partial class StationJobsComponent : Component { /// /// Total *round-start* jobs at station start. @@ -77,5 +77,5 @@ public sealed class StationJobsComponent : Component [DataField("availableJobs", required: true, customTypeSerializer: typeof(PrototypeIdDictionarySerializer, JobPrototype>))] - public readonly Dictionary> SetupAvailableJobs = default!; + public Dictionary> SetupAvailableJobs = default!; } diff --git a/Content.Server/Station/Components/StationMemberComponent.cs b/Content.Server/Station/Components/StationMemberComponent.cs index 684ec20530..7213d2549e 100644 --- a/Content.Server/Station/Components/StationMemberComponent.cs +++ b/Content.Server/Station/Components/StationMemberComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Station.Components; /// Indicates that a grid is a member of the given station. /// [RegisterComponent, Access(typeof(StationSystem))] -public sealed class StationMemberComponent : Component +public sealed partial class StationMemberComponent : Component { /// /// Station that this grid is a part of. diff --git a/Content.Server/Station/Components/StationNameSetupComponent.cs b/Content.Server/Station/Components/StationNameSetupComponent.cs index 976434eb62..7af44eee62 100644 --- a/Content.Server/Station/Components/StationNameSetupComponent.cs +++ b/Content.Server/Station/Components/StationNameSetupComponent.cs @@ -6,18 +6,18 @@ namespace Content.Server.Station.Components; /// This is used for setting up a station's name. /// [RegisterComponent] -public sealed class StationNameSetupComponent : Component +public sealed partial class StationNameSetupComponent : Component { /// /// The name template to use for the station. /// If there's a name generator this should follow it's required format. /// [DataField("mapNameTemplate", required: true)] - public string StationNameTemplate { get; } = default!; + public string StationNameTemplate { get; private set; } = default!; /// /// Name generator to use for the station, if any. /// [DataField("nameGenerator")] - public StationNameGenerator? NameGenerator { get; } + public StationNameGenerator? NameGenerator { get; private set; } } diff --git a/Content.Server/Station/Components/StationSpawningComponent.cs b/Content.Server/Station/Components/StationSpawningComponent.cs index a26c9ee7b6..81e68d7684 100644 --- a/Content.Server/Station/Components/StationSpawningComponent.cs +++ b/Content.Server/Station/Components/StationSpawningComponent.cs @@ -6,6 +6,6 @@ namespace Content.Server.Station.Components; /// Controls spawning on the given station, tracking spawners present on it. /// [RegisterComponent, Access(typeof(StationSpawningSystem))] -public sealed class StationSpawningComponent : Component +public sealed partial class StationSpawningComponent : Component { } diff --git a/Content.Server/Station/StationConfig.cs b/Content.Server/Station/StationConfig.cs index a5f998a016..8bc0caf1aa 100644 --- a/Content.Server/Station/StationConfig.cs +++ b/Content.Server/Station/StationConfig.cs @@ -8,7 +8,7 @@ namespace Content.Server.Station; /// A config for a station. Specifies name and component modifications. /// [DataDefinition, PublicAPI] -public sealed class StationConfig +public sealed partial class StationConfig { [DataField("stationProto", required: true)] public string StationPrototype = default!; diff --git a/Content.Server/StationEvents/Components/AnomalySpawnRuleComponent.cs b/Content.Server/StationEvents/Components/AnomalySpawnRuleComponent.cs index 8e8e853260..d3f7324794 100644 --- a/Content.Server/StationEvents/Components/AnomalySpawnRuleComponent.cs +++ b/Content.Server/StationEvents/Components/AnomalySpawnRuleComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.StationEvents.Components; /// Used an event that spawns an anomaly somewhere random on the map. /// [RegisterComponent, Access(typeof(AnomalySpawnRule))] -public sealed class AnomalySpawnRuleComponent : Component +public sealed partial class AnomalySpawnRuleComponent : Component { [DataField("anomalySpawnerPrototype", customTypeSerializer: typeof(PrototypeIdSerializer))] public string AnomalySpawnerPrototype = "RandomAnomalySpawner"; diff --git a/Content.Server/StationEvents/Components/BasicStationEventSchedulerComponent.cs b/Content.Server/StationEvents/Components/BasicStationEventSchedulerComponent.cs index 1f920b6c7c..a6ea139f04 100644 --- a/Content.Server/StationEvents/Components/BasicStationEventSchedulerComponent.cs +++ b/Content.Server/StationEvents/Components/BasicStationEventSchedulerComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(BasicStationEventSchedulerSystem))] -public sealed class BasicStationEventSchedulerComponent : Component +public sealed partial class BasicStationEventSchedulerComponent : Component { public const float MinimumTimeUntilFirstEvent = 300; diff --git a/Content.Server/StationEvents/Components/BluespaceArtifactRuleComponent.cs b/Content.Server/StationEvents/Components/BluespaceArtifactRuleComponent.cs index fe953c97f8..d2d4b6e5de 100644 --- a/Content.Server/StationEvents/Components/BluespaceArtifactRuleComponent.cs +++ b/Content.Server/StationEvents/Components/BluespaceArtifactRuleComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.StationEvents.Components; /// somewhere random on the station. /// [RegisterComponent, Access(typeof(BluespaceArtifactRule))] -public sealed class BluespaceArtifactRuleComponent : Component +public sealed partial class BluespaceArtifactRuleComponent : Component { [DataField("artifactSpawnerPrototype", customTypeSerializer: typeof(PrototypeIdSerializer))] public string ArtifactSpawnerPrototype = "RandomArtifactSpawner"; diff --git a/Content.Server/StationEvents/Components/BluespaceLockerRuleComponent.cs b/Content.Server/StationEvents/Components/BluespaceLockerRuleComponent.cs index 06515f53fc..1ea59e3b9d 100644 --- a/Content.Server/StationEvents/Components/BluespaceLockerRuleComponent.cs +++ b/Content.Server/StationEvents/Components/BluespaceLockerRuleComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(BluespaceLockerRule))] -public sealed class BluespaceLockerRuleComponent : Component +public sealed partial class BluespaceLockerRuleComponent : Component { } diff --git a/Content.Server/StationEvents/Components/BreakerFlipRuleComponent.cs b/Content.Server/StationEvents/Components/BreakerFlipRuleComponent.cs index a4acef1345..6c8d428877 100644 --- a/Content.Server/StationEvents/Components/BreakerFlipRuleComponent.cs +++ b/Content.Server/StationEvents/Components/BreakerFlipRuleComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(BreakerFlipRule))] -public sealed class BreakerFlipRuleComponent : Component +public sealed partial class BreakerFlipRuleComponent : Component { } diff --git a/Content.Server/StationEvents/Components/BureaucraticErrorRuleComponent.cs b/Content.Server/StationEvents/Components/BureaucraticErrorRuleComponent.cs index 5132a09e68..6dfbd9083e 100644 --- a/Content.Server/StationEvents/Components/BureaucraticErrorRuleComponent.cs +++ b/Content.Server/StationEvents/Components/BureaucraticErrorRuleComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(BureaucraticErrorRule))] -public sealed class BureaucraticErrorRuleComponent : Component +public sealed partial class BureaucraticErrorRuleComponent : Component { } diff --git a/Content.Server/StationEvents/Components/CargoGiftsRuleComponent.cs b/Content.Server/StationEvents/Components/CargoGiftsRuleComponent.cs index 5c433e0d2c..895afc6a9f 100644 --- a/Content.Server/StationEvents/Components/CargoGiftsRuleComponent.cs +++ b/Content.Server/StationEvents/Components/CargoGiftsRuleComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.StationEvents.Components; /// Used an event that gifts the station with certian cargo /// [RegisterComponent, Access(typeof(CargoGiftsRule))] -public sealed class CargoGiftsRuleComponent : Component +public sealed partial class CargoGiftsRuleComponent : Component { /// /// The base announcement string (which then incorporates the strings below) diff --git a/Content.Server/StationEvents/Components/FalseAlarmRuleComponent.cs b/Content.Server/StationEvents/Components/FalseAlarmRuleComponent.cs index 6e3f69ad6c..b58884b750 100644 --- a/Content.Server/StationEvents/Components/FalseAlarmRuleComponent.cs +++ b/Content.Server/StationEvents/Components/FalseAlarmRuleComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(FalseAlarmRule))] -public sealed class FalseAlarmRuleComponent : Component +public sealed partial class FalseAlarmRuleComponent : Component { } diff --git a/Content.Server/StationEvents/Components/GasLeakRuleComponent.cs b/Content.Server/StationEvents/Components/GasLeakRuleComponent.cs index 5f2c2f5ff6..066b14e918 100644 --- a/Content.Server/StationEvents/Components/GasLeakRuleComponent.cs +++ b/Content.Server/StationEvents/Components/GasLeakRuleComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Map; namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(GasLeakRule))] -public sealed class GasLeakRuleComponent : Component +public sealed partial class GasLeakRuleComponent : Component { public readonly Gas[] LeakableGases = { diff --git a/Content.Server/StationEvents/Components/ImmovableRodRuleComponent.cs b/Content.Server/StationEvents/Components/ImmovableRodRuleComponent.cs index e204de16cd..95c3265207 100644 --- a/Content.Server/StationEvents/Components/ImmovableRodRuleComponent.cs +++ b/Content.Server/StationEvents/Components/ImmovableRodRuleComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(ImmovableRodRule))] -public sealed class ImmovableRodRuleComponent : Component +public sealed partial class ImmovableRodRuleComponent : Component { [DataField("rodPrototype", customTypeSerializer: typeof(PrototypeIdSerializer))] public string RodPrototype = "ImmovableRodKeepTilesStill"; diff --git a/Content.Server/StationEvents/Components/KudzuGrowthRuleComponent.cs b/Content.Server/StationEvents/Components/KudzuGrowthRuleComponent.cs index 82cc1ac77d..a075598863 100644 --- a/Content.Server/StationEvents/Components/KudzuGrowthRuleComponent.cs +++ b/Content.Server/StationEvents/Components/KudzuGrowthRuleComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(KudzuGrowthRule))] -public sealed class KudzuGrowthRuleComponent : Component +public sealed partial class KudzuGrowthRuleComponent : Component { } diff --git a/Content.Server/StationEvents/Components/LoneOpsSpawnRuleComponent.cs b/Content.Server/StationEvents/Components/LoneOpsSpawnRuleComponent.cs index 535660362f..92911e0858 100644 --- a/Content.Server/StationEvents/Components/LoneOpsSpawnRuleComponent.cs +++ b/Content.Server/StationEvents/Components/LoneOpsSpawnRuleComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(LoneOpsSpawnRule))] -public sealed class LoneOpsSpawnRuleComponent : Component +public sealed partial class LoneOpsSpawnRuleComponent : Component { [DataField("loneOpsShuttlePath")] public string LoneOpsShuttlePath = "Maps/Shuttles/striker.yml"; diff --git a/Content.Server/StationEvents/Components/MassHallucinationsComponent.cs b/Content.Server/StationEvents/Components/MassHallucinationsComponent.cs index d5522df80d..99b893cad5 100644 --- a/Content.Server/StationEvents/Components/MassHallucinationsComponent.cs +++ b/Content.Server/StationEvents/Components/MassHallucinationsComponent.cs @@ -6,6 +6,6 @@ namespace Content.Server.StationEvents.Components; /// This is used to keep track of hallucinated entities to remove effects when event ends /// [RegisterComponent, Access(typeof(MassHallucinationsRule))] -public sealed class MassHallucinationsComponent : Component +public sealed partial class MassHallucinationsComponent : Component { } diff --git a/Content.Server/StationEvents/Components/MassHallucinationsRuleComponent.cs b/Content.Server/StationEvents/Components/MassHallucinationsRuleComponent.cs index e16eb39d76..63a1f87251 100644 --- a/Content.Server/StationEvents/Components/MassHallucinationsRuleComponent.cs +++ b/Content.Server/StationEvents/Components/MassHallucinationsRuleComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Audio; namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(MassHallucinationsRule))] -public sealed class MassHallucinationsRuleComponent : Component +public sealed partial class MassHallucinationsRuleComponent : Component { /// /// The maximum time between incidents in seconds diff --git a/Content.Server/StationEvents/Components/MeteorSwarmRuleComponent.cs b/Content.Server/StationEvents/Components/MeteorSwarmRuleComponent.cs index 96664c44d0..3927f94319 100644 --- a/Content.Server/StationEvents/Components/MeteorSwarmRuleComponent.cs +++ b/Content.Server/StationEvents/Components/MeteorSwarmRuleComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(MeteorSwarmRule))] -public sealed class MeteorSwarmRuleComponent : Component +public sealed partial class MeteorSwarmRuleComponent : Component { [DataField("cooldown")] public float Cooldown; diff --git a/Content.Server/StationEvents/Components/PowerGridCheckRuleComponent.cs b/Content.Server/StationEvents/Components/PowerGridCheckRuleComponent.cs index 1788a78077..509c5a8ecf 100644 --- a/Content.Server/StationEvents/Components/PowerGridCheckRuleComponent.cs +++ b/Content.Server/StationEvents/Components/PowerGridCheckRuleComponent.cs @@ -4,7 +4,7 @@ using Content.Server.StationEvents.Events; namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(PowerGridCheckRule))] -public sealed class PowerGridCheckRuleComponent : Component +public sealed partial class PowerGridCheckRuleComponent : Component { public CancellationTokenSource? AnnounceCancelToken; diff --git a/Content.Server/StationEvents/Components/RampingStationEventSchedulerComponent.cs b/Content.Server/StationEvents/Components/RampingStationEventSchedulerComponent.cs index dd3f38b5dd..53bc8b62a4 100644 --- a/Content.Server/StationEvents/Components/RampingStationEventSchedulerComponent.cs +++ b/Content.Server/StationEvents/Components/RampingStationEventSchedulerComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(RampingStationEventSchedulerSystem))] -public sealed class RampingStationEventSchedulerComponent : Component +public sealed partial class RampingStationEventSchedulerComponent : Component { [DataField("endTime"), ViewVariables(VVAccess.ReadWrite)] public float EndTime; diff --git a/Content.Server/StationEvents/Components/RandomSentienceRuleComponent.cs b/Content.Server/StationEvents/Components/RandomSentienceRuleComponent.cs index 6c00e9e362..98ebf06595 100644 --- a/Content.Server/StationEvents/Components/RandomSentienceRuleComponent.cs +++ b/Content.Server/StationEvents/Components/RandomSentienceRuleComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(RandomSentienceRule))] -public sealed class RandomSentienceRuleComponent : Component +public sealed partial class RandomSentienceRuleComponent : Component { } diff --git a/Content.Server/StationEvents/Components/RandomSpawnRuleComponent.cs b/Content.Server/StationEvents/Components/RandomSpawnRuleComponent.cs index 7c8d8ab84c..a7b06809d1 100644 --- a/Content.Server/StationEvents/Components/RandomSpawnRuleComponent.cs +++ b/Content.Server/StationEvents/Components/RandomSpawnRuleComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.StationEvents.Components; /// Spawns a single entity at a random tile on a station using TryGetRandomTile. /// [RegisterComponent, Access(typeof(RandomSpawnRule))] -public sealed class RandomSpawnRuleComponent : Component +public sealed partial class RandomSpawnRuleComponent : Component { /// /// The entity to be spawned. diff --git a/Content.Server/StationEvents/Components/SentienceTargetComponent.cs b/Content.Server/StationEvents/Components/SentienceTargetComponent.cs index d22f3e74eb..f8f7e587c1 100644 --- a/Content.Server/StationEvents/Components/SentienceTargetComponent.cs +++ b/Content.Server/StationEvents/Components/SentienceTargetComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(RandomSentienceRule))] -public sealed class SentienceTargetComponent : Component +public sealed partial class SentienceTargetComponent : Component { [DataField("flavorKind", required: true)] public string FlavorKind = default!; diff --git a/Content.Server/StationEvents/Components/SolarFlareRuleComponent.cs b/Content.Server/StationEvents/Components/SolarFlareRuleComponent.cs index 0ea1127817..577d7777d7 100644 --- a/Content.Server/StationEvents/Components/SolarFlareRuleComponent.cs +++ b/Content.Server/StationEvents/Components/SolarFlareRuleComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.StationEvents.Components; /// Solar Flare event specific configuration /// [RegisterComponent, Access(typeof(SolarFlareRule))] -public sealed class SolarFlareRuleComponent : Component +public sealed partial class SolarFlareRuleComponent : Component { /// /// If true, only headsets affected, but e.g. handheld radio will still work @@ -21,7 +21,7 @@ public sealed class SolarFlareRuleComponent : Component /// Channels that will be disabled for a duration of event /// [DataField("affectedChannels", customTypeSerializer: typeof(PrototypeIdHashSetSerializer))] - public readonly HashSet AffectedChannels = new(); + public HashSet AffectedChannels = new(); /// /// List of extra channels that can be random disabled on top of the starting channels. @@ -30,7 +30,7 @@ public sealed class SolarFlareRuleComponent : Component /// Channels are not removed from this, so its possible to roll the same channel multiple times. /// [DataField("extraChannels", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public readonly List ExtraChannels = new(); + public List ExtraChannels = new(); /// /// Number of times to roll a channel from ExtraChannels. diff --git a/Content.Server/StationEvents/Components/StationEventComponent.cs b/Content.Server/StationEvents/Components/StationEventComponent.cs index ac9f6e72be..de0dc1c28a 100644 --- a/Content.Server/StationEvents/Components/StationEventComponent.cs +++ b/Content.Server/StationEvents/Components/StationEventComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.StationEvents.Components; /// Defines basic data for a station event /// [RegisterComponent] -public sealed class StationEventComponent : Component +public sealed partial class StationEventComponent : Component { public const float WeightVeryLow = 0.0f; public const float WeightLow = 5.0f; diff --git a/Content.Server/StationEvents/Components/VentClogRuleComponent.cs b/Content.Server/StationEvents/Components/VentClogRuleComponent.cs index ae2166dc17..79ebc520c8 100644 --- a/Content.Server/StationEvents/Components/VentClogRuleComponent.cs +++ b/Content.Server/StationEvents/Components/VentClogRuleComponent.cs @@ -6,14 +6,14 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(VentClogRule))] -public sealed class VentClogRuleComponent : Component +public sealed partial class VentClogRuleComponent : Component { /// /// Somewhat safe chemicals to put in foam that probably won't instantly kill you. /// There is a small chance of using any reagent, ignoring this. /// [DataField("safeishVentChemicals", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public readonly IReadOnlyList SafeishVentChemicals = new[] + public IReadOnlyList SafeishVentChemicals = new[] { "Water", "Blood", "Slime", "SpaceDrugs", "SpaceCleaner", "Nutriment", "Sugar", "SpaceLube", "Ephedrine", "Ale", "Beer", "SpaceGlue" }; diff --git a/Content.Server/StationEvents/Components/VentCritterSpawnLocationComponent.cs b/Content.Server/StationEvents/Components/VentCritterSpawnLocationComponent.cs index f675744929..7fed97cbcf 100644 --- a/Content.Server/StationEvents/Components/VentCritterSpawnLocationComponent.cs +++ b/Content.Server/StationEvents/Components/VentCritterSpawnLocationComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(VentClogRule))] -public sealed class VentCritterSpawnLocationComponent : Component +public sealed partial class VentCritterSpawnLocationComponent : Component { } diff --git a/Content.Server/StationEvents/Components/VentCrittersRuleComponent.cs b/Content.Server/StationEvents/Components/VentCrittersRuleComponent.cs index 2e5c33973c..f280468fc3 100644 --- a/Content.Server/StationEvents/Components/VentCrittersRuleComponent.cs +++ b/Content.Server/StationEvents/Components/VentCrittersRuleComponent.cs @@ -4,7 +4,7 @@ using Content.Shared.Storage; namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(VentCrittersRule))] -public sealed class VentCrittersRuleComponent : Component +public sealed partial class VentCrittersRuleComponent : Component { [DataField("entries")] public List Entries = new(); diff --git a/Content.Server/StationEvents/Events/StationEventSystem.cs b/Content.Server/StationEvents/Events/StationEventSystem.cs index ac3d2980b9..c647c96506 100644 --- a/Content.Server/StationEvents/Events/StationEventSystem.cs +++ b/Content.Server/StationEvents/Events/StationEventSystem.cs @@ -22,7 +22,7 @@ namespace Content.Server.StationEvents.Events; /// /// An abstract entity system inherited by all station events for their behavior. /// -public abstract class StationEventSystem : GameRuleSystem where T : Component +public abstract partial class StationEventSystem : GameRuleSystem where T : Component { [Dependency] protected readonly IAdminLogManager AdminLogManager = default!; [Dependency] private readonly IGameTiming _timing = default!; diff --git a/Content.Server/StationRecords/Components/GeneralStationRecordConsoleComponent.cs b/Content.Server/StationRecords/Components/GeneralStationRecordConsoleComponent.cs index 8c79fa2dbe..076ab44783 100644 --- a/Content.Server/StationRecords/Components/GeneralStationRecordConsoleComponent.cs +++ b/Content.Server/StationRecords/Components/GeneralStationRecordConsoleComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.StationRecords; namespace Content.Server.StationRecords; [RegisterComponent] -public sealed class GeneralStationRecordConsoleComponent : Component +public sealed partial class GeneralStationRecordConsoleComponent : Component { public StationRecordKey? ActiveKey { get; set; } public GeneralStationRecordsFilter? Filter { get; set; } diff --git a/Content.Server/StationRecords/Components/StationRecordsComponent.cs b/Content.Server/StationRecords/Components/StationRecordsComponent.cs index 447d06385a..aab272e814 100644 --- a/Content.Server/StationRecords/Components/StationRecordsComponent.cs +++ b/Content.Server/StationRecords/Components/StationRecordsComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.StationRecords; [Access(typeof(StationRecordsSystem))] [RegisterComponent] -public sealed class StationRecordsComponent : Component +public sealed partial class StationRecordsComponent : Component { // Every single record in this station, by key. // Essentially a columnar database, but I really suck diff --git a/Content.Server/Sticky/Components/StickyComponent.cs b/Content.Server/Sticky/Components/StickyComponent.cs index 159022b189..320938000f 100644 --- a/Content.Server/Sticky/Components/StickyComponent.cs +++ b/Content.Server/Sticky/Components/StickyComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Sticky.Components; /// For example paper stickers or C4 charges. /// [RegisterComponent] -public sealed class StickyComponent : Component +public sealed partial class StickyComponent : Component { /// /// What target entities are valid to be surface for sticky entity. diff --git a/Content.Server/Storage/Components/BluespaceLockerComponent.cs b/Content.Server/Storage/Components/BluespaceLockerComponent.cs index 92fc18ef39..7064c0e857 100644 --- a/Content.Server/Storage/Components/BluespaceLockerComponent.cs +++ b/Content.Server/Storage/Components/BluespaceLockerComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Storage.Components; [RegisterComponent] -public sealed class BluespaceLockerComponent : Component +public sealed partial class BluespaceLockerComponent : Component { /// /// If length > 0, when something is added to the storage, it will instead be teleported to a random storage @@ -85,7 +85,7 @@ public sealed class BluespaceLockerComponent : Component } [DataDefinition] -public record BluespaceLockerBehaviorProperties +public partial record BluespaceLockerBehaviorProperties { /// /// Determines if gas will be transported. diff --git a/Content.Server/Storage/Components/CursedEntityStorageComponent.cs b/Content.Server/Storage/Components/CursedEntityStorageComponent.cs index 92e83afcee..8a56ecc78e 100644 --- a/Content.Server/Storage/Components/CursedEntityStorageComponent.cs +++ b/Content.Server/Storage/Components/CursedEntityStorageComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Audio; namespace Content.Server.Storage.Components; [RegisterComponent] -public sealed class CursedEntityStorageComponent : Component +public sealed partial class CursedEntityStorageComponent : Component { [DataField("cursedSound")] public SoundSpecifier CursedSound = new SoundPathSpecifier("/Audio/Effects/teleport_departure.ogg"); diff --git a/Content.Server/Storage/Components/EntityStorageComponent.cs b/Content.Server/Storage/Components/EntityStorageComponent.cs index 0824dc8909..c961c31a3e 100644 --- a/Content.Server/Storage/Components/EntityStorageComponent.cs +++ b/Content.Server/Storage/Components/EntityStorageComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameStates; namespace Content.Server.Storage.Components; [RegisterComponent, ComponentReference(typeof(SharedEntityStorageComponent))] -public sealed class EntityStorageComponent : SharedEntityStorageComponent, IGasMixtureHolder +public sealed partial class EntityStorageComponent : SharedEntityStorageComponent, IGasMixtureHolder { /// /// Gas currently contained in this entity storage. diff --git a/Content.Server/Storage/Components/PickRandomComponent.cs b/Content.Server/Storage/Components/PickRandomComponent.cs index 1046c55911..ae48ce2e21 100644 --- a/Content.Server/Storage/Components/PickRandomComponent.cs +++ b/Content.Server/Storage/Components/PickRandomComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Storage.Components; /// [RegisterComponent] [Access(typeof(PickRandomSystem))] -public sealed class PickRandomComponent : Component +public sealed partial class PickRandomComponent : Component { /// /// Whitelist for potential picked items. diff --git a/Content.Server/Storage/Components/SecretStashComponent.cs b/Content.Server/Storage/Components/SecretStashComponent.cs index 1d7c75ae3e..60d0c829e9 100644 --- a/Content.Server/Storage/Components/SecretStashComponent.cs +++ b/Content.Server/Storage/Components/SecretStashComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Storage.Components /// [RegisterComponent] [Access(typeof(SecretStashSystem))] - public sealed class SecretStashComponent : Component + public sealed partial class SecretStashComponent : Component { /// /// Max item size that can be fitted into secret stash. diff --git a/Content.Server/Storage/Components/ServerStorageComponent.cs b/Content.Server/Storage/Components/ServerStorageComponent.cs index b0b276ea2c..bfea401b5d 100644 --- a/Content.Server/Storage/Components/ServerStorageComponent.cs +++ b/Content.Server/Storage/Components/ServerStorageComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Storage.Components /// [RegisterComponent] [ComponentReference(typeof(SharedStorageComponent))] - public sealed class ServerStorageComponent : SharedStorageComponent + public sealed partial class ServerStorageComponent : SharedStorageComponent { public string LoggerName = "Storage"; diff --git a/Content.Server/Storage/Components/SpawnItemsOnUseComponent.cs b/Content.Server/Storage/Components/SpawnItemsOnUseComponent.cs index 95ef6b33c3..ef4b8197fc 100644 --- a/Content.Server/Storage/Components/SpawnItemsOnUseComponent.cs +++ b/Content.Server/Storage/Components/SpawnItemsOnUseComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Storage.Components /// Spawns items when used in hand. /// [RegisterComponent] - public sealed class SpawnItemsOnUseComponent : Component + public sealed partial class SpawnItemsOnUseComponent : Component { /// /// The list of entities to spawn, with amounts and orGroups. diff --git a/Content.Server/Storage/Components/StorageFillComponent.cs b/Content.Server/Storage/Components/StorageFillComponent.cs index c62868d5ee..2c8af2855b 100644 --- a/Content.Server/Storage/Components/StorageFillComponent.cs +++ b/Content.Server/Storage/Components/StorageFillComponent.cs @@ -4,7 +4,7 @@ using Content.Shared.Storage; namespace Content.Server.Storage.Components { [RegisterComponent, Access(typeof(StorageSystem))] - public sealed class StorageFillComponent : Component + public sealed partial class StorageFillComponent : Component { [DataField("contents")] public List Contents = new(); } diff --git a/Content.Server/Store/Components/CurrencyComponent.cs b/Content.Server/Store/Components/CurrencyComponent.cs index 872a995bde..cfe9b76c8b 100644 --- a/Content.Server/Store/Components/CurrencyComponent.cs +++ b/Content.Server/Store/Components/CurrencyComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Store.Components; /// to increase its balance. /// [RegisterComponent] -public sealed class CurrencyComponent : Component +public sealed partial class CurrencyComponent : Component { /// /// The value of the currency. diff --git a/Content.Server/Store/Components/StoreComponent.cs b/Content.Server/Store/Components/StoreComponent.cs index 43f038effa..54f8c9ee15 100644 --- a/Content.Server/Store/Components/StoreComponent.cs +++ b/Content.Server/Store/Components/StoreComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Store.Components; /// through the ui. The currency, listings, and categories are defined in yaml. /// [RegisterComponent] -public sealed class StoreComponent : Component +public sealed partial class StoreComponent : Component { /// /// The default preset for the store. Is overriden by default values specified on the component. diff --git a/Content.Server/Store/Conditions/BuyerAntagCondition.cs b/Content.Server/Store/Conditions/BuyerAntagCondition.cs index 6fb346d2c3..28e146934b 100644 --- a/Content.Server/Store/Conditions/BuyerAntagCondition.cs +++ b/Content.Server/Store/Conditions/BuyerAntagCondition.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Store.Conditions; /// Supports both blacklists and whitelists. This is copypaste because roles /// are absolute shitcode. Refactor this later. -emo /// -public sealed class BuyerAntagCondition : ListingCondition +public sealed partial class BuyerAntagCondition : ListingCondition { /// /// A whitelist of antag roles that can purchase this listing. Only one needs to be found. diff --git a/Content.Server/Store/Conditions/BuyerJobCondition.cs b/Content.Server/Store/Conditions/BuyerJobCondition.cs index b34b6a320b..f163305f41 100644 --- a/Content.Server/Store/Conditions/BuyerJobCondition.cs +++ b/Content.Server/Store/Conditions/BuyerJobCondition.cs @@ -10,7 +10,7 @@ namespace Content.Server.Store.Conditions; /// Allows a store entry to be filtered out based on the user's job. /// Supports both blacklists and whitelists /// -public sealed class BuyerJobCondition : ListingCondition +public sealed partial class BuyerJobCondition : ListingCondition { /// /// A whitelist of jobs prototypes that can purchase this listing. Only one needs to be found. diff --git a/Content.Server/Store/Conditions/BuyerSpeciesCondition.cs b/Content.Server/Store/Conditions/BuyerSpeciesCondition.cs index 404c9422a0..3a3df725c4 100644 --- a/Content.Server/Store/Conditions/BuyerSpeciesCondition.cs +++ b/Content.Server/Store/Conditions/BuyerSpeciesCondition.cs @@ -11,7 +11,7 @@ namespace Content.Server.Store.Conditions; /// Allows a store entry to be filtered out based on the user's species. /// Supports both blacklists and whitelists. /// -public sealed class BuyerSpeciesCondition : ListingCondition +public sealed partial class BuyerSpeciesCondition : ListingCondition { /// /// A whitelist of species that can purchase this listing. diff --git a/Content.Server/Store/Conditions/BuyerWhitelistCondition.cs b/Content.Server/Store/Conditions/BuyerWhitelistCondition.cs index e9ca245ccd..859703a72a 100644 --- a/Content.Server/Store/Conditions/BuyerWhitelistCondition.cs +++ b/Content.Server/Store/Conditions/BuyerWhitelistCondition.cs @@ -6,7 +6,7 @@ namespace Content.Server.Store.Conditions; /// /// Filters out an entry based on the components or tags on an entity. /// -public sealed class BuyerWhitelistCondition : ListingCondition +public sealed partial class BuyerWhitelistCondition : ListingCondition { /// /// A whitelist of tags or components. diff --git a/Content.Server/Store/Conditions/ListingLimitedStockCondition.cs b/Content.Server/Store/Conditions/ListingLimitedStockCondition.cs index e1fdbfe892..94df62feb8 100644 --- a/Content.Server/Store/Conditions/ListingLimitedStockCondition.cs +++ b/Content.Server/Store/Conditions/ListingLimitedStockCondition.cs @@ -5,7 +5,7 @@ namespace Content.Server.Store.Conditions; /// /// Only allows a listing to be purchased a certain amount of times. /// -public sealed class ListingLimitedStockCondition : ListingCondition +public sealed partial class ListingLimitedStockCondition : ListingCondition { /// /// The amount of times this listing can be purchased. diff --git a/Content.Server/Store/Conditions/StoreWhitelistCondition.cs b/Content.Server/Store/Conditions/StoreWhitelistCondition.cs index ccef958320..20ec5cecce 100644 --- a/Content.Server/Store/Conditions/StoreWhitelistCondition.cs +++ b/Content.Server/Store/Conditions/StoreWhitelistCondition.cs @@ -6,7 +6,7 @@ namespace Content.Server.Store.Conditions; /// /// Filters out an entry based on the components or tags on the store itself. /// -public sealed class StoreWhitelistCondition : ListingCondition +public sealed partial class StoreWhitelistCondition : ListingCondition { /// /// A whitelist of tags or components. diff --git a/Content.Server/Stunnable/Components/StunOnCollideComponent.cs b/Content.Server/Stunnable/Components/StunOnCollideComponent.cs index 8e07959e71..1ce1cbea57 100644 --- a/Content.Server/Stunnable/Components/StunOnCollideComponent.cs +++ b/Content.Server/Stunnable/Components/StunOnCollideComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Stunnable.Components /// Adds stun when it collides with an entity /// [RegisterComponent, Access(typeof(StunOnCollideSystem))] - public sealed class StunOnCollideComponent : Component + public sealed partial class StunOnCollideComponent : Component { // TODO: Can probably predict this. diff --git a/Content.Server/SurveillanceCamera/Components/ActiveSurveillanceCameraMonitorComponent.cs b/Content.Server/SurveillanceCamera/Components/ActiveSurveillanceCameraMonitorComponent.cs index b00c432baa..a84689bca3 100644 --- a/Content.Server/SurveillanceCamera/Components/ActiveSurveillanceCameraMonitorComponent.cs +++ b/Content.Server/SurveillanceCamera/Components/ActiveSurveillanceCameraMonitorComponent.cs @@ -2,6 +2,6 @@ namespace Content.Server.SurveillanceCamera; // Dummy component for active surveillance monitors. [RegisterComponent] -public sealed class ActiveSurveillanceCameraMonitorComponent : Component +public sealed partial class ActiveSurveillanceCameraMonitorComponent : Component { } diff --git a/Content.Server/SurveillanceCamera/Components/SurveillanceCameraComponent.cs b/Content.Server/SurveillanceCamera/Components/SurveillanceCameraComponent.cs index cd7480506b..8473462f80 100644 --- a/Content.Server/SurveillanceCamera/Components/SurveillanceCameraComponent.cs +++ b/Content.Server/SurveillanceCamera/Components/SurveillanceCameraComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.SurveillanceCamera; [RegisterComponent] [Access(typeof(SurveillanceCameraSystem))] -public sealed class SurveillanceCameraComponent : Component +public sealed partial class SurveillanceCameraComponent : Component { // List of active viewers. This is for bookkeeping purposes, // so that when a camera shuts down, any entity viewing it @@ -44,5 +44,5 @@ public sealed class SurveillanceCameraComponent : Component // This has to be device network frequency prototypes. [DataField("setupAvailableNetworks", customTypeSerializer:typeof(PrototypeIdListSerializer))] - public List AvailableNetworks { get; } = new(); + public List AvailableNetworks { get; private set; } = new(); } diff --git a/Content.Server/SurveillanceCamera/Components/SurveillanceCameraMicrophoneComponent.cs b/Content.Server/SurveillanceCamera/Components/SurveillanceCameraMicrophoneComponent.cs index 91f940a2cf..d1a3ff442b 100644 --- a/Content.Server/SurveillanceCamera/Components/SurveillanceCameraMicrophoneComponent.cs +++ b/Content.Server/SurveillanceCamera/Components/SurveillanceCameraMicrophoneComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.SurveillanceCamera; /// environment. All surveillance camera monitors have speakers for this. /// [RegisterComponent] -public sealed class SurveillanceCameraMicrophoneComponent : Component +public sealed partial class SurveillanceCameraMicrophoneComponent : Component { [DataField("enabled")] public bool Enabled { get; set; } = true; @@ -18,9 +18,9 @@ public sealed class SurveillanceCameraMicrophoneComponent : Component /// Used to avoid things like feedback loops, or radio spam. /// [DataField("blacklist")] - public EntityWhitelist Blacklist { get; } = new(); + public EntityWhitelist Blacklist { get; private set; } = new(); [ViewVariables(VVAccess.ReadWrite)] [DataField("range")] - public int Range { get; } = 10; + public int Range { get; private set; } = 10; } diff --git a/Content.Server/SurveillanceCamera/Components/SurveillanceCameraMonitorComponent.cs b/Content.Server/SurveillanceCamera/Components/SurveillanceCameraMonitorComponent.cs index de276afa3e..ec1611244a 100644 --- a/Content.Server/SurveillanceCamera/Components/SurveillanceCameraMonitorComponent.cs +++ b/Content.Server/SurveillanceCamera/Components/SurveillanceCameraMonitorComponent.cs @@ -2,7 +2,7 @@ namespace Content.Server.SurveillanceCamera; [RegisterComponent] [Access(typeof(SurveillanceCameraMonitorSystem))] -public sealed class SurveillanceCameraMonitorComponent : Component +public sealed partial class SurveillanceCameraMonitorComponent : Component { // Currently active camera viewed by this monitor. [ViewVariables] diff --git a/Content.Server/SurveillanceCamera/Components/SurveillanceCameraRouterComponent.cs b/Content.Server/SurveillanceCamera/Components/SurveillanceCameraRouterComponent.cs index 0cf1f9301b..d15d5e7d39 100644 --- a/Content.Server/SurveillanceCamera/Components/SurveillanceCameraRouterComponent.cs +++ b/Content.Server/SurveillanceCamera/Components/SurveillanceCameraRouterComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.SurveillanceCamera; [RegisterComponent] -public sealed class SurveillanceCameraRouterComponent : Component +public sealed partial class SurveillanceCameraRouterComponent : Component { [ViewVariables] public bool Active { get; set; } @@ -27,5 +27,5 @@ public sealed class SurveillanceCameraRouterComponent : Component public string? SubnetFrequencyId { get; set; } [DataField("setupAvailableNetworks", customTypeSerializer:typeof(PrototypeIdListSerializer))] - public List AvailableNetworks { get; } = new(); + public List AvailableNetworks { get; private set; } = new(); } diff --git a/Content.Server/SurveillanceCamera/Components/SurveillanceCameraSpeakerComponent.cs b/Content.Server/SurveillanceCamera/Components/SurveillanceCameraSpeakerComponent.cs index ad028913e7..c78d4109e5 100644 --- a/Content.Server/SurveillanceCamera/Components/SurveillanceCameraSpeakerComponent.cs +++ b/Content.Server/SurveillanceCamera/Components/SurveillanceCameraSpeakerComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.SurveillanceCamera; /// has a microphone that listens to speech. /// [RegisterComponent] -public sealed class SurveillanceCameraSpeakerComponent : Component +public sealed partial class SurveillanceCameraSpeakerComponent : Component { // mostly copied from Speech [DataField("speechEnabled")] public bool SpeechEnabled = true; diff --git a/Content.Server/Tabletop/Components/TabletopGameComponent.cs b/Content.Server/Tabletop/Components/TabletopGameComponent.cs index dfac9e89df..0196eec196 100644 --- a/Content.Server/Tabletop/Components/TabletopGameComponent.cs +++ b/Content.Server/Tabletop/Components/TabletopGameComponent.cs @@ -7,31 +7,31 @@ namespace Content.Server.Tabletop.Components /// A component that makes an object playable as a tabletop game. /// [RegisterComponent, Access(typeof(TabletopSystem))] - public sealed class TabletopGameComponent : Component + public sealed partial class TabletopGameComponent : Component { /// /// The localized name of the board. Shown in the UI. /// [DataField("boardName")] - public string BoardName { get; } = "tabletop-default-board-name"; + public string BoardName { get; private set; } = "tabletop-default-board-name"; /// /// The type of method used to set up a tabletop. /// [DataField("setup", required: true)] - public TabletopSetup Setup { get; } = new TabletopChessSetup(); + public TabletopSetup Setup { get; private set; } = new TabletopChessSetup(); /// /// The size of the viewport being opened. Must match the board dimensions otherwise you'll get the space parallax (unless that's what you want). /// [DataField("size")] - public Vector2i Size { get; } = (300, 300); + public Vector2i Size { get; private set; } = (300, 300); /// /// The zoom of the viewport camera. /// [DataField("cameraZoom")] - public Vector2 CameraZoom { get; } = Vector2.One; + public Vector2 CameraZoom { get; private set; } = Vector2.One; /// /// The specific session of this tabletop. diff --git a/Content.Server/Tabletop/Components/TabletopGamerComponent.cs b/Content.Server/Tabletop/Components/TabletopGamerComponent.cs index f051b65ac3..406dcc2853 100644 --- a/Content.Server/Tabletop/Components/TabletopGamerComponent.cs +++ b/Content.Server/Tabletop/Components/TabletopGamerComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Tabletop.Components /// Component for marking an entity as currently playing a tabletop. /// [RegisterComponent, Access(typeof(TabletopSystem))] - public sealed class TabletopGamerComponent : Component + public sealed partial class TabletopGamerComponent : Component { [DataField("tabletop")] public EntityUid Tabletop { get; set; } = EntityUid.Invalid; diff --git a/Content.Server/Tabletop/TabletopBackgammonSetup.cs b/Content.Server/Tabletop/TabletopBackgammonSetup.cs index f0bb72d0f8..4833819b69 100644 --- a/Content.Server/Tabletop/TabletopBackgammonSetup.cs +++ b/Content.Server/Tabletop/TabletopBackgammonSetup.cs @@ -3,14 +3,14 @@ using JetBrains.Annotations; namespace Content.Server.Tabletop { [UsedImplicitly] - public sealed class TabletopBackgammonSetup : TabletopSetup + public sealed partial class TabletopBackgammonSetup : TabletopSetup { [DataField("whitePiecePrototype")] - public string WhitePiecePrototype { get; } = "WhiteTabletopPiece"; + public string WhitePiecePrototype { get; private set; } = "WhiteTabletopPiece"; [DataField("blackPiecePrototype")] - public string BlackPiecePrototype { get; } = "BlackTabletopPiece"; + public string BlackPiecePrototype { get; private set; } = "BlackTabletopPiece"; public override void SetupTabletop(TabletopSession session, IEntityManager entityManager) { var board = entityManager.SpawnEntity(BoardPrototype, session.Position); diff --git a/Content.Server/Tabletop/TabletopCheckerSetup.cs b/Content.Server/Tabletop/TabletopCheckerSetup.cs index 790b6fe109..4a441c502f 100644 --- a/Content.Server/Tabletop/TabletopCheckerSetup.cs +++ b/Content.Server/Tabletop/TabletopCheckerSetup.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Tabletop { [UsedImplicitly] - public sealed class TabletopCheckerSetup : TabletopSetup + public sealed partial class TabletopCheckerSetup : TabletopSetup { // TODO: Un-hardcode the rest of entity prototype IDs, probably. diff --git a/Content.Server/Tabletop/TabletopChessSetup.cs b/Content.Server/Tabletop/TabletopChessSetup.cs index 463de14680..b636b8c05f 100644 --- a/Content.Server/Tabletop/TabletopChessSetup.cs +++ b/Content.Server/Tabletop/TabletopChessSetup.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Tabletop { [UsedImplicitly] - public sealed class TabletopChessSetup : TabletopSetup + public sealed partial class TabletopChessSetup : TabletopSetup { // TODO: Un-hardcode the rest of entity prototype IDs, probably. diff --git a/Content.Server/Tabletop/TabletopEmptySetup.cs b/Content.Server/Tabletop/TabletopEmptySetup.cs index 840afccfc7..58fb109df9 100644 --- a/Content.Server/Tabletop/TabletopEmptySetup.cs +++ b/Content.Server/Tabletop/TabletopEmptySetup.cs @@ -3,7 +3,7 @@ using JetBrains.Annotations; namespace Content.Server.Tabletop { [UsedImplicitly] - public sealed class TabletopEmptySetup : TabletopSetup + public sealed partial class TabletopEmptySetup : TabletopSetup { public override void SetupTabletop(TabletopSession session, IEntityManager entityManager) { diff --git a/Content.Server/Tabletop/TabletopHologramComponent.cs b/Content.Server/Tabletop/TabletopHologramComponent.cs index 1a9c7ec61c..e2aa65f2dc 100644 --- a/Content.Server/Tabletop/TabletopHologramComponent.cs +++ b/Content.Server/Tabletop/TabletopHologramComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Tabletop; /// This is used for tracking pieces that are simply "holograms" shown on the tabletop /// [RegisterComponent] -public sealed class TabletopHologramComponent : Component +public sealed partial class TabletopHologramComponent : Component { } diff --git a/Content.Server/Tabletop/TabletopParchisSetup.cs b/Content.Server/Tabletop/TabletopParchisSetup.cs index 353ca86877..ffc8e03364 100644 --- a/Content.Server/Tabletop/TabletopParchisSetup.cs +++ b/Content.Server/Tabletop/TabletopParchisSetup.cs @@ -5,20 +5,20 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Tabletop { [UsedImplicitly] - public sealed class TabletopParchisSetup : TabletopSetup + public sealed partial class TabletopParchisSetup : TabletopSetup { [DataField("redPiecePrototype", customTypeSerializer:typeof(PrototypeIdSerializer))] - public string RedPiecePrototype { get; } = "RedTabletopPiece"; + public string RedPiecePrototype { get; private set; } = "RedTabletopPiece"; [DataField("greenPiecePrototype", customTypeSerializer:typeof(PrototypeIdSerializer))] - public string GreenPiecePrototype { get; } = "GreenTabletopPiece"; + public string GreenPiecePrototype { get; private set; } = "GreenTabletopPiece"; [DataField("yellowPiecePrototype", customTypeSerializer:typeof(PrototypeIdSerializer))] - public string YellowPiecePrototype { get; } = "YellowTabletopPiece"; + public string YellowPiecePrototype { get; private set; } = "YellowTabletopPiece"; [DataField("bluePiecePrototype", customTypeSerializer:typeof(PrototypeIdSerializer))] - public string BluePiecePrototype { get; } = "BlueTabletopPiece"; + public string BluePiecePrototype { get; private set; } = "BlueTabletopPiece"; public override void SetupTabletop(TabletopSession session, IEntityManager entityManager) { diff --git a/Content.Server/Tabletop/TabletopSetup.cs b/Content.Server/Tabletop/TabletopSetup.cs index 3c9a020651..66aff1fca7 100644 --- a/Content.Server/Tabletop/TabletopSetup.cs +++ b/Content.Server/Tabletop/TabletopSetup.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Tabletop { [ImplicitDataDefinitionForInheritors] - public abstract class TabletopSetup + public abstract partial class TabletopSetup { /// /// Method for setting up a tabletop. Use this to spawn the board and pieces, etc. diff --git a/Content.Server/Temperature/Components/ContainerTemperatureDamageThresholdsComponent.cs b/Content.Server/Temperature/Components/ContainerTemperatureDamageThresholdsComponent.cs index 78a9da8088..ae8acc49ef 100644 --- a/Content.Server/Temperature/Components/ContainerTemperatureDamageThresholdsComponent.cs +++ b/Content.Server/Temperature/Components/ContainerTemperatureDamageThresholdsComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Temperature.Components; [RegisterComponent] -public sealed class ContainerTemperatureDamageThresholdsComponent: Component +public sealed partial class ContainerTemperatureDamageThresholdsComponent: Component { [DataField("heatDamageThreshold")] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Temperature/Components/HeatResistanceComponent.cs b/Content.Server/Temperature/Components/HeatResistanceComponent.cs index 586b30c64d..3847d8a859 100644 --- a/Content.Server/Temperature/Components/HeatResistanceComponent.cs +++ b/Content.Server/Temperature/Components/HeatResistanceComponent.cs @@ -4,7 +4,7 @@ using Content.Shared.Inventory; namespace Content.Server.Temperature.Components { [RegisterComponent] - public sealed class HeatResistanceComponent : Component + public sealed partial class HeatResistanceComponent : Component { public int GetHeatResistance() { diff --git a/Content.Server/Temperature/Components/TemperatureComponent.cs b/Content.Server/Temperature/Components/TemperatureComponent.cs index 939fd3b6cc..6ace329426 100644 --- a/Content.Server/Temperature/Components/TemperatureComponent.cs +++ b/Content.Server/Temperature/Components/TemperatureComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Temperature.Components /// and taking fire damage from high temperature. /// [RegisterComponent] - public sealed class TemperatureComponent : Component + public sealed partial class TemperatureComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("currentTemperature")] diff --git a/Content.Server/Tiles/LavaComponent.cs b/Content.Server/Tiles/LavaComponent.cs index 0b1df9b139..d536a2e4ce 100644 --- a/Content.Server/Tiles/LavaComponent.cs +++ b/Content.Server/Tiles/LavaComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Tiles; /// Applies flammable and damage while vaulting. /// [RegisterComponent, Access(typeof(LavaSystem))] -public sealed class LavaComponent : Component +public sealed partial class LavaComponent : Component { /// /// Sound played if something disintegrates in lava. diff --git a/Content.Server/Tools/Components/LatticeCuttingComponent.cs b/Content.Server/Tools/Components/LatticeCuttingComponent.cs index 589b3cf52e..077d64cf7f 100644 --- a/Content.Server/Tools/Components/LatticeCuttingComponent.cs +++ b/Content.Server/Tools/Components/LatticeCuttingComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Tools.Components; [RegisterComponent] -public sealed class LatticeCuttingComponent : Component +public sealed partial class LatticeCuttingComponent : Component { [DataField("qualityNeeded", customTypeSerializer:typeof(PrototypeIdSerializer))] public string QualityNeeded = "Cutting"; diff --git a/Content.Server/Tools/Components/LayerChangeOnWeldComponent.cs b/Content.Server/Tools/Components/LayerChangeOnWeldComponent.cs index d7da170c00..cfecc76a63 100644 --- a/Content.Server/Tools/Components/LayerChangeOnWeldComponent.cs +++ b/Content.Server/Tools/Components/LayerChangeOnWeldComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Tools.Components; [RegisterComponent] [Access(typeof(WeldableSystem))] -public sealed class LayerChangeOnWeldComponent : Component +public sealed partial class LayerChangeOnWeldComponent : Component { [DataField("unWeldedLayer")] [ViewVariables] diff --git a/Content.Server/Tools/Components/TilePryingComponent.cs b/Content.Server/Tools/Components/TilePryingComponent.cs index d6d028252e..99d7144b68 100644 --- a/Content.Server/Tools/Components/TilePryingComponent.cs +++ b/Content.Server/Tools/Components/TilePryingComponent.cs @@ -5,14 +5,14 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Tools.Components { [RegisterComponent] - public sealed class TilePryingComponent : Component + public sealed partial class TilePryingComponent : Component { [DataField("toolComponentNeeded")] public bool ToolComponentNeeded = true; [DataField("qualityNeeded", customTypeSerializer:typeof(PrototypeIdSerializer))] public string QualityNeeded = "Prying"; - + /// /// Whether this tool can pry tiles with CanAxe. /// diff --git a/Content.Server/Tools/Components/WeldableComponent.cs b/Content.Server/Tools/Components/WeldableComponent.cs index e5abb50d73..16996481d5 100644 --- a/Content.Server/Tools/Components/WeldableComponent.cs +++ b/Content.Server/Tools/Components/WeldableComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Tools.Components; /// [RegisterComponent] [Access(typeof(WeldableSystem))] -public sealed class WeldableComponent : SharedWeldableComponent +public sealed partial class WeldableComponent : SharedWeldableComponent { /// /// Tool quality for welding. diff --git a/Content.Server/Tools/Components/WelderComponent.cs b/Content.Server/Tools/Components/WelderComponent.cs index 65c042bfa8..48fbd3640a 100644 --- a/Content.Server/Tools/Components/WelderComponent.cs +++ b/Content.Server/Tools/Components/WelderComponent.cs @@ -8,46 +8,46 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Tools.Components { [RegisterComponent] - public sealed class WelderComponent : SharedWelderComponent + public sealed partial class WelderComponent : SharedWelderComponent { /// /// Solution on the entity that contains the fuel. /// [DataField("fuelSolution"), ViewVariables(VVAccess.ReadWrite)] - public string FuelSolution { get; } = "Welder"; + public string FuelSolution { get; private set; } = "Welder"; /// /// Reagent that will be used as fuel for welding. /// [DataField("fuelReagent", customTypeSerializer:typeof(PrototypeIdSerializer)), ViewVariables(VVAccess.ReadWrite)] - public string FuelReagent { get; } = "WeldingFuel"; + public string FuelReagent { get; private set; } = "WeldingFuel"; /// /// Fuel consumption per second, while the welder is active. /// [DataField("fuelConsumption"), ViewVariables(VVAccess.ReadWrite)] - public FixedPoint2 FuelConsumption { get; } = FixedPoint2.New(2.0f); + public FixedPoint2 FuelConsumption { get; private set; } = FixedPoint2.New(2.0f); /// /// A fuel amount to be consumed when the welder goes from being unlit to being lit. /// [DataField("fuelLitCost"), ViewVariables(VVAccess.ReadWrite)] - public FixedPoint2 FuelLitCost { get; } = FixedPoint2.New(0.5f); + public FixedPoint2 FuelLitCost { get; private set; } = FixedPoint2.New(0.5f); /// /// Sound played when the welder is turned off. /// [DataField("welderOffSounds")] - public SoundSpecifier WelderOffSounds { get; } = new SoundCollectionSpecifier("WelderOff"); + public SoundSpecifier WelderOffSounds { get; private set; } = new SoundCollectionSpecifier("WelderOff"); /// /// Sound played when the tool is turned on. /// [DataField("welderOnSounds")] - public SoundSpecifier WelderOnSounds { get; } = new SoundCollectionSpecifier("WelderOn"); + public SoundSpecifier WelderOnSounds { get; private set; } = new SoundCollectionSpecifier("WelderOn"); [DataField("welderRefill")] - public SoundSpecifier WelderRefill { get; } = new SoundPathSpecifier("/Audio/Effects/refill.ogg"); + public SoundSpecifier WelderRefill { get; private set; } = new SoundPathSpecifier("/Audio/Effects/refill.ogg"); /// /// When the welder is lit, this damage is added to the base melee weapon damage. diff --git a/Content.Server/Tools/Innate/InnateToolComponent.cs b/Content.Server/Tools/Innate/InnateToolComponent.cs index 2f4486e857..bfe7c21342 100644 --- a/Content.Server/Tools/Innate/InnateToolComponent.cs +++ b/Content.Server/Tools/Innate/InnateToolComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Storage; namespace Content.Server.Tools.Innate { [RegisterComponent] - public sealed class InnateToolComponent : Component + public sealed partial class InnateToolComponent : Component { [DataField("tools")] public List Tools = new(); public List ToolUids = new(); diff --git a/Content.Server/Traitor/Uplink/SurplusBundle/SurplusBundleComponent.cs b/Content.Server/Traitor/Uplink/SurplusBundle/SurplusBundleComponent.cs index 8258034e67..47ce68625a 100644 --- a/Content.Server/Traitor/Uplink/SurplusBundle/SurplusBundleComponent.cs +++ b/Content.Server/Traitor/Uplink/SurplusBundle/SurplusBundleComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Traitor.Uplink.SurplusBundle; /// Fill crate with a random uplink items. /// [RegisterComponent] -public sealed class SurplusBundleComponent : Component +public sealed partial class SurplusBundleComponent : Component { /// /// Total price of all content inside bundle. diff --git a/Content.Server/Traits/Assorted/NarcolepsyComponent.cs b/Content.Server/Traits/Assorted/NarcolepsyComponent.cs index be8f6cde54..efa3458495 100644 --- a/Content.Server/Traits/Assorted/NarcolepsyComponent.cs +++ b/Content.Server/Traits/Assorted/NarcolepsyComponent.cs @@ -6,19 +6,19 @@ namespace Content.Server.Traits.Assorted; /// This is used for the narcolepsy trait. /// [RegisterComponent, Access(typeof(NarcolepsySystem))] -public sealed class NarcolepsyComponent : Component +public sealed partial class NarcolepsyComponent : Component { /// /// The random time between incidents, (min, max). /// [DataField("timeBetweenIncidents", required: true)] - public Vector2 TimeBetweenIncidents { get; } + public Vector2 TimeBetweenIncidents { get; private set; } /// /// The duration of incidents, (min, max). /// [DataField("durationOfIncident", required: true)] - public Vector2 DurationOfIncident { get; } + public Vector2 DurationOfIncident { get; private set; } public float NextIncidentTime; } diff --git a/Content.Server/Traits/Assorted/UncloneableComponent.cs b/Content.Server/Traits/Assorted/UncloneableComponent.cs index 8e20ec9bf1..650b78cd0f 100644 --- a/Content.Server/Traits/Assorted/UncloneableComponent.cs +++ b/Content.Server/Traits/Assorted/UncloneableComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Traits.Assorted; /// This is used for the uncloneable trait. /// [RegisterComponent] -public sealed class UncloneableComponent : Component +public sealed partial class UncloneableComponent : Component { } diff --git a/Content.Server/Traits/Assorted/WheelchairBoundComponent.cs b/Content.Server/Traits/Assorted/WheelchairBoundComponent.cs index 5e307b12db..44608ba4ac 100644 --- a/Content.Server/Traits/Assorted/WheelchairBoundComponent.cs +++ b/Content.Server/Traits/Assorted/WheelchairBoundComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Traits.Assorted; /// On adding spawns wheelchair prototype and tries buckle player to it, then self removing /// [RegisterComponent, Access(typeof(WheelchairBoundSystem))] -public sealed class WheelchairBoundComponent : Component +public sealed partial class WheelchairBoundComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("wheelchairPrototype", customTypeSerializer: typeof(PrototypeIdSerializer))] diff --git a/Content.Server/UserInterface/ActivatableUIComponent.cs b/Content.Server/UserInterface/ActivatableUIComponent.cs index f1dcb80382..3b61ad6d3c 100644 --- a/Content.Server/UserInterface/ActivatableUIComponent.cs +++ b/Content.Server/UserInterface/ActivatableUIComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization; namespace Content.Server.UserInterface { [RegisterComponent] - public sealed class ActivatableUIComponent : Component, + public sealed partial class ActivatableUIComponent : Component, ISerializationHooks { [ViewVariables] diff --git a/Content.Server/UserInterface/ActivatableUIRequiresPowerCellComponent.cs b/Content.Server/UserInterface/ActivatableUIRequiresPowerCellComponent.cs index df7f91a1c1..fdc56f89a0 100644 --- a/Content.Server/UserInterface/ActivatableUIRequiresPowerCellComponent.cs +++ b/Content.Server/UserInterface/ActivatableUIRequiresPowerCellComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.UserInterface; /// Specifies that the attached entity requires power. /// [RegisterComponent] -public sealed class ActivatableUIRequiresPowerCellComponent : Component +public sealed partial class ActivatableUIRequiresPowerCellComponent : Component { } diff --git a/Content.Server/UserInterface/IntrinsicUIComponent.cs b/Content.Server/UserInterface/IntrinsicUIComponent.cs index dd6fcdbd90..2e4814e054 100644 --- a/Content.Server/UserInterface/IntrinsicUIComponent.cs +++ b/Content.Server/UserInterface/IntrinsicUIComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Server.UserInterface; [RegisterComponent] -public sealed class IntrinsicUIComponent : Component, ISerializationHooks +public sealed partial class IntrinsicUIComponent : Component, ISerializationHooks { /// /// List of UIs and their actions that this entity has. @@ -25,7 +25,7 @@ public sealed class IntrinsicUIComponent : Component, ISerializationHooks } [DataDefinition] -public struct IntrinsicUIEntry +public partial struct IntrinsicUIEntry { [ViewVariables] public Enum? Key { get; private set; } = null; diff --git a/Content.Server/UserInterface/IntrinsicUISystem.cs b/Content.Server/UserInterface/IntrinsicUISystem.cs index 7d76bfe8b6..c1268b0974 100644 --- a/Content.Server/UserInterface/IntrinsicUISystem.cs +++ b/Content.Server/UserInterface/IntrinsicUISystem.cs @@ -69,7 +69,7 @@ public sealed class IntrinsicUISystem : EntitySystem } [UsedImplicitly] -public sealed class ToggleIntrinsicUIEvent : InstantActionEvent +public sealed partial class ToggleIntrinsicUIEvent : InstantActionEvent { [ViewVariables] public Enum? Key { get; set; } diff --git a/Content.Server/UserInterface/OpenUiActionEvent.cs b/Content.Server/UserInterface/OpenUiActionEvent.cs index 59bb4ac9d1..4f89cb35d9 100644 --- a/Content.Server/UserInterface/OpenUiActionEvent.cs +++ b/Content.Server/UserInterface/OpenUiActionEvent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Server.UserInterface; -public sealed class OpenUiActionEvent : InstantActionEvent, ISerializationHooks +public sealed partial class OpenUiActionEvent : InstantActionEvent, ISerializationHooks { [ViewVariables] public Enum? Key { get; private set; } diff --git a/Content.Server/VendingMachines/VendingMachineContrabandWireAction.cs b/Content.Server/VendingMachines/VendingMachineContrabandWireAction.cs index 0d7d974737..22a0341fcb 100644 --- a/Content.Server/VendingMachines/VendingMachineContrabandWireAction.cs +++ b/Content.Server/VendingMachines/VendingMachineContrabandWireAction.cs @@ -5,7 +5,7 @@ using Content.Shared.Wires; namespace Content.Server.VendingMachines; [DataDefinition] -public sealed class VendingMachineContrabandWireAction : BaseToggleWireAction +public sealed partial class VendingMachineContrabandWireAction : BaseToggleWireAction { public override Color Color { get; set; } = Color.Green; public override string Name { get; set; } = "wire-name-vending-contraband"; diff --git a/Content.Server/VendingMachines/VendingMachineEjectItemWireAction.cs b/Content.Server/VendingMachines/VendingMachineEjectItemWireAction.cs index c9b1fbc4f1..45e5e96426 100644 --- a/Content.Server/VendingMachines/VendingMachineEjectItemWireAction.cs +++ b/Content.Server/VendingMachines/VendingMachineEjectItemWireAction.cs @@ -4,7 +4,7 @@ using Content.Shared.Wires; namespace Content.Server.VendingMachines; -public sealed class VendingMachineEjectItemWireAction : ComponentWireAction +public sealed partial class VendingMachineEjectItemWireAction : ComponentWireAction { private VendingMachineSystem _vendingMachineSystem = default!; diff --git a/Content.Server/VoiceMask/VoiceMaskComponent.cs b/Content.Server/VoiceMask/VoiceMaskComponent.cs index 32d2125e55..edf38b39d4 100644 --- a/Content.Server/VoiceMask/VoiceMaskComponent.cs +++ b/Content.Server/VoiceMask/VoiceMaskComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.VoiceMask; [RegisterComponent] -public sealed class VoiceMaskComponent : Component +public sealed partial class VoiceMaskComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public bool Enabled = true; diff --git a/Content.Server/VoiceMask/VoiceMaskSystem.cs b/Content.Server/VoiceMask/VoiceMaskSystem.cs index 05a87891e0..fe15df3829 100644 --- a/Content.Server/VoiceMask/VoiceMaskSystem.cs +++ b/Content.Server/VoiceMask/VoiceMaskSystem.cs @@ -89,6 +89,6 @@ public sealed partial class VoiceMaskSystem : EntitySystem } } -public sealed class VoiceMaskSetNameEvent : InstantActionEvent +public sealed partial class VoiceMaskSetNameEvent : InstantActionEvent { } diff --git a/Content.Server/VoiceMask/VoiceMaskerComponent.cs b/Content.Server/VoiceMask/VoiceMaskerComponent.cs index 53b6f92e2a..4ca22cbf94 100644 --- a/Content.Server/VoiceMask/VoiceMaskerComponent.cs +++ b/Content.Server/VoiceMask/VoiceMaskerComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.VoiceMask; [RegisterComponent] -public sealed class VoiceMaskerComponent : Component +public sealed partial class VoiceMaskerComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public string LastSetName = "Unknown"; diff --git a/Content.Server/Warps/WarpPointComponent.cs b/Content.Server/Warps/WarpPointComponent.cs index f903b52aec..19c38493ef 100644 --- a/Content.Server/Warps/WarpPointComponent.cs +++ b/Content.Server/Warps/WarpPointComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Warps /// Allows ghosts etc to warp to this entity by name. /// [RegisterComponent] - public sealed class WarpPointComponent : Component + public sealed partial class WarpPointComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("location")] public string? Location { get; set; } @@ -12,6 +12,6 @@ namespace Content.Server.Warps /// If true, ghosts warping to this entity will begin following it. /// [DataField("follow")] - public readonly bool Follow = false; + public bool Follow = false; } } diff --git a/Content.Server/Weapons/Melee/Balloon/BalloonPopperComponent.cs b/Content.Server/Weapons/Melee/Balloon/BalloonPopperComponent.cs index 1f7ac592fc..e7f318d61c 100644 --- a/Content.Server/Weapons/Melee/Balloon/BalloonPopperComponent.cs +++ b/Content.Server/Weapons/Melee/Balloon/BalloonPopperComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Weapons.Melee.Balloon; /// This is used for weapons that pop balloons on attack. /// [RegisterComponent] -public sealed class BalloonPopperComponent : Component +public sealed partial class BalloonPopperComponent : Component { /// /// The tag that marks something as a balloon. diff --git a/Content.Server/Weapons/Melee/EnergySword/EnergySwordComponent.cs b/Content.Server/Weapons/Melee/EnergySword/EnergySwordComponent.cs index a6378ea28b..f699ef7b34 100644 --- a/Content.Server/Weapons/Melee/EnergySword/EnergySwordComponent.cs +++ b/Content.Server/Weapons/Melee/EnergySword/EnergySwordComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Audio; namespace Content.Server.Weapons.Melee.EnergySword; [RegisterComponent] -internal sealed class EnergySwordComponent : Component +internal sealed partial class EnergySwordComponent : Component { public Color BladeColor = Color.DodgerBlue; diff --git a/Content.Server/Weapons/Melee/WeaponRandom/WeaponRandomComponent.cs b/Content.Server/Weapons/Melee/WeaponRandom/WeaponRandomComponent.cs index 66ca5135ff..c8cb5d2f28 100644 --- a/Content.Server/Weapons/Melee/WeaponRandom/WeaponRandomComponent.cs +++ b/Content.Server/Weapons/Melee/WeaponRandom/WeaponRandomComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Audio; namespace Content.Server.Weapons.Melee.WeaponRandom; [RegisterComponent] -internal sealed class WeaponRandomComponent : Component +internal sealed partial class WeaponRandomComponent : Component { /// diff --git a/Content.Server/Weapons/Ranged/Components/AmmoCounterComponent.cs b/Content.Server/Weapons/Ranged/Components/AmmoCounterComponent.cs index 7c7a606de9..3815ce15db 100644 --- a/Content.Server/Weapons/Ranged/Components/AmmoCounterComponent.cs +++ b/Content.Server/Weapons/Ranged/Components/AmmoCounterComponent.cs @@ -3,4 +3,4 @@ using Content.Shared.Weapons.Ranged.Components; namespace Content.Server.Weapons.Ranged.Components; [RegisterComponent] -public sealed class AmmoCounterComponent : SharedAmmoCounterComponent {} +public sealed partial class AmmoCounterComponent : SharedAmmoCounterComponent {} diff --git a/Content.Server/Weapons/Ranged/Components/BatteryWeaponFireModesComponent.cs b/Content.Server/Weapons/Ranged/Components/BatteryWeaponFireModesComponent.cs index f8d2f7d9dc..0d2b05d36c 100644 --- a/Content.Server/Weapons/Ranged/Components/BatteryWeaponFireModesComponent.cs +++ b/Content.Server/Weapons/Ranged/Components/BatteryWeaponFireModesComponent.cs @@ -28,10 +28,10 @@ public sealed partial class BatteryWeaponFireModesComponent : Component } [DataDefinition] -public sealed class BatteryWeaponFireMode +public sealed partial class BatteryWeaponFireMode { /// - /// The projectile prototype associated with this firing mode + /// The projectile prototype associated with this firing mode /// [DataField("proto", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] public string Prototype = default!; diff --git a/Content.Server/Weapons/Ranged/Components/ChemicalAmmoComponent.cs b/Content.Server/Weapons/Ranged/Components/ChemicalAmmoComponent.cs index 87d3ed7612..b9a5eca09b 100644 --- a/Content.Server/Weapons/Ranged/Components/ChemicalAmmoComponent.cs +++ b/Content.Server/Weapons/Ranged/Components/ChemicalAmmoComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Weapons.Ranged.Components { [RegisterComponent] - public sealed class ChemicalAmmoComponent : Component + public sealed partial class ChemicalAmmoComponent : Component { public const string DefaultSolutionName = "ammo"; diff --git a/Content.Server/Weapons/Ranged/Components/RangedDamageSoundComponent.cs b/Content.Server/Weapons/Ranged/Components/RangedDamageSoundComponent.cs index 1897bb7d93..ccb5119af8 100644 --- a/Content.Server/Weapons/Ranged/Components/RangedDamageSoundComponent.cs +++ b/Content.Server/Weapons/Ranged/Components/RangedDamageSoundComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Weapons.Ranged.Components; /// Plays the specified sound upon receiving damage of that type. /// [RegisterComponent] -public sealed class RangedDamageSoundComponent : Component +public sealed partial class RangedDamageSoundComponent : Component { // TODO: Limb damage changing sound type. diff --git a/Content.Server/Wires/ActivatableUIRequiresPanelComponent.cs b/Content.Server/Wires/ActivatableUIRequiresPanelComponent.cs index 74701c1ccd..f92df3d3d5 100644 --- a/Content.Server/Wires/ActivatableUIRequiresPanelComponent.cs +++ b/Content.Server/Wires/ActivatableUIRequiresPanelComponent.cs @@ -4,7 +4,7 @@ /// This is used for activatable UIs that require the entity to have a panel in a certain state. /// [RegisterComponent] -public sealed class ActivatableUIRequiresPanelComponent : Component +public sealed partial class ActivatableUIRequiresPanelComponent : Component { /// /// TRUE: the panel must be open to access the UI. diff --git a/Content.Server/Wires/BaseToggleWireAction.cs b/Content.Server/Wires/BaseToggleWireAction.cs index 33d9d12c3b..e5348958dd 100644 --- a/Content.Server/Wires/BaseToggleWireAction.cs +++ b/Content.Server/Wires/BaseToggleWireAction.cs @@ -5,7 +5,7 @@ namespace Content.Server.Wires; /// toggle a value whenever a wire is cut, mended, /// or pulsed. /// -public abstract class BaseToggleWireAction : BaseWireAction +public abstract partial class BaseToggleWireAction : BaseWireAction { /// /// Toggles the value on the given entity. An implementor diff --git a/Content.Server/Wires/BaseWireAction.cs b/Content.Server/Wires/BaseWireAction.cs index 10baed90eb..ef6a0fdf36 100644 --- a/Content.Server/Wires/BaseWireAction.cs +++ b/Content.Server/Wires/BaseWireAction.cs @@ -7,7 +7,7 @@ namespace Content.Server.Wires; /// [ImplicitDataDefinitionForInheritors] -public abstract class BaseWireAction : IWireAction +public abstract partial class BaseWireAction : IWireAction { private ISharedAdminLogManager _adminLogger = default!; diff --git a/Content.Server/Wires/ComponentWireAction.cs b/Content.Server/Wires/ComponentWireAction.cs index 0ee1d231f4..2407068056 100644 --- a/Content.Server/Wires/ComponentWireAction.cs +++ b/Content.Server/Wires/ComponentWireAction.cs @@ -5,7 +5,7 @@ namespace Content.Server.Wires; /// /// convenience class for wires that depend on the existence of some component to function. Slightly reduces boilerplate. /// -public abstract class ComponentWireAction : BaseWireAction where TComponent : Component +public abstract partial class ComponentWireAction : BaseWireAction where TComponent : Component { public abstract StatusLightState? GetLightState(Wire wire, TComponent component); public override StatusLightState? GetLightState(Wire wire) diff --git a/Content.Server/Wires/WireLayout.cs b/Content.Server/Wires/WireLayout.cs index 39fdb30eba..ed4381822f 100644 --- a/Content.Server/Wires/WireLayout.cs +++ b/Content.Server/Wires/WireLayout.cs @@ -15,7 +15,7 @@ namespace Content.Server.Wires; public sealed class WireLayoutPrototype : IPrototype, IInheritingPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [ParentDataField(typeof(AbstractPrototypeIdArraySerializer))] public string[]? Parents { get; private set; } @@ -29,11 +29,11 @@ public sealed class WireLayoutPrototype : IPrototype, IInheritingPrototype /// initialization) /// [DataField("dummyWires")] - public int DummyWires { get; } = default!; + public int DummyWires { get; private set; } = default!; /// /// All the valid IWireActions currently in this layout. /// [DataField("wires")] - public List? Wires { get; } + public List? Wires { get; private set; } } diff --git a/Content.Server/Wires/WiresComponent.cs b/Content.Server/Wires/WiresComponent.cs index 1221e61863..1bd54acc86 100644 --- a/Content.Server/Wires/WiresComponent.cs +++ b/Content.Server/Wires/WiresComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Audio; namespace Content.Server.Wires; [RegisterComponent] -public sealed class WiresComponent : Component +public sealed partial class WiresComponent : Component { /// /// The name of this entity's internal board. @@ -48,7 +48,7 @@ public sealed class WiresComponent : Component /// layout ID is generated, or if a new wire order should be generated every time. /// [DataField("alwaysRandomize")] - public bool AlwaysRandomize { get; } + public bool AlwaysRandomize { get; private set; } /// /// Per wire status, keyed by an object. diff --git a/Content.Server/Worldgen/Components/BiomeSelectionComponent.cs b/Content.Server/Worldgen/Components/BiomeSelectionComponent.cs index b82b8eb6b6..f6b4c82ebb 100644 --- a/Content.Server/Worldgen/Components/BiomeSelectionComponent.cs +++ b/Content.Server/Worldgen/Components/BiomeSelectionComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Worldgen.Components; /// [RegisterComponent] [Access(typeof(BiomeSelectionSystem))] -public sealed class BiomeSelectionComponent : Component +public sealed partial class BiomeSelectionComponent : Component { /// /// The list of biomes available to this selector. diff --git a/Content.Server/Worldgen/Components/Carvers/NoiseRangeCarverComponent.cs b/Content.Server/Worldgen/Components/Carvers/NoiseRangeCarverComponent.cs index 141d54c8df..28724d20a4 100644 --- a/Content.Server/Worldgen/Components/Carvers/NoiseRangeCarverComponent.cs +++ b/Content.Server/Worldgen/Components/Carvers/NoiseRangeCarverComponent.cs @@ -10,19 +10,19 @@ namespace Content.Server.Worldgen.Components.Carvers; /// [RegisterComponent] [Access(typeof(NoiseRangeCarverSystem))] -public sealed class NoiseRangeCarverComponent : Component +public sealed partial class NoiseRangeCarverComponent : Component { /// /// The noise channel to use as a density controller. /// /// This noise channel should be mapped to exactly the range [0, 1] unless you want a lot of warnings in the log. [DataField("noiseChannel", customTypeSerializer: typeof(PrototypeIdSerializer))] - public string NoiseChannel { get; } = default!; + public string NoiseChannel { get; private set; } = default!; /// /// The index of ranges in which to cut debris generation. /// [DataField("ranges", required: true)] - public List Ranges { get; } = default!; + public List Ranges { get; private set; } = default!; } diff --git a/Content.Server/Worldgen/Components/Debris/BlobFloorPlanBuilderComponent.cs b/Content.Server/Worldgen/Components/Debris/BlobFloorPlanBuilderComponent.cs index 70861bfca6..6d1fa5d957 100644 --- a/Content.Server/Worldgen/Components/Debris/BlobFloorPlanBuilderComponent.cs +++ b/Content.Server/Worldgen/Components/Debris/BlobFloorPlanBuilderComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Worldgen.Components.Debris; /// [RegisterComponent] [Access(typeof(BlobFloorPlanBuilderSystem))] -public sealed class BlobFloorPlanBuilderComponent : Component +public sealed partial class BlobFloorPlanBuilderComponent : Component { /// /// The probability that placing a floor tile will add up to three-four neighboring tiles as well. @@ -26,12 +26,12 @@ public sealed class BlobFloorPlanBuilderComponent : Component /// [DataField("floorTileset", required: true, customTypeSerializer: typeof(PrototypeIdListSerializer))] - public List FloorTileset { get; } = default!; + public List FloorTileset { get; private set; } = default!; /// /// The number of floor tiles to place when drawing the asteroid layout. /// [DataField("floorPlacements", required: true)] - public int FloorPlacements { get; } + public int FloorPlacements { get; private set; } } diff --git a/Content.Server/Worldgen/Components/Debris/DebrisFeaturePlacerControllerComponent.cs b/Content.Server/Worldgen/Components/Debris/DebrisFeaturePlacerControllerComponent.cs index 0a10a1360a..ae61f0581e 100644 --- a/Content.Server/Worldgen/Components/Debris/DebrisFeaturePlacerControllerComponent.cs +++ b/Content.Server/Worldgen/Components/Debris/DebrisFeaturePlacerControllerComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Worldgen.Components.Debris; /// [RegisterComponent] [Access(typeof(DebrisFeaturePlacerSystem))] -public sealed class DebrisFeaturePlacerControllerComponent : Component +public sealed partial class DebrisFeaturePlacerControllerComponent : Component { /// /// Whether or not to clip debris that would spawn at a location that has a density of zero. @@ -38,6 +38,6 @@ public sealed class DebrisFeaturePlacerControllerComponent : Component /// The noise channel to use as a density controller. /// [DataField("densityNoiseChannel", customTypeSerializer: typeof(PrototypeIdSerializer))] - public string DensityNoiseChannel { get; } = default!; + public string DensityNoiseChannel { get; private set; } = default!; } diff --git a/Content.Server/Worldgen/Components/Debris/NoiseDrivenDebrisSelectorComponent.cs b/Content.Server/Worldgen/Components/Debris/NoiseDrivenDebrisSelectorComponent.cs index 9690bc5f6e..af4ef7f1cf 100644 --- a/Content.Server/Worldgen/Components/Debris/NoiseDrivenDebrisSelectorComponent.cs +++ b/Content.Server/Worldgen/Components/Debris/NoiseDrivenDebrisSelectorComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Worldgen.Components.Debris; /// [RegisterComponent] [Access(typeof(NoiseDrivenDebrisSelectorSystem))] -public sealed class NoiseDrivenDebrisSelectorComponent : Component +public sealed partial class NoiseDrivenDebrisSelectorComponent : Component { private EntitySpawnCollectionCache? _cache; @@ -39,6 +39,6 @@ public sealed class NoiseDrivenDebrisSelectorComponent : Component /// /// This noise channel should be mapped to exactly the range [0, 1] unless you want a lot of warnings in the log. [DataField("noiseChannel", customTypeSerializer: typeof(PrototypeIdSerializer))] - public string NoiseChannel { get; } = default!; + public string NoiseChannel { get; private set; } = default!; } diff --git a/Content.Server/Worldgen/Components/Debris/OwnedDebrisComponent.cs b/Content.Server/Worldgen/Components/Debris/OwnedDebrisComponent.cs index 42bc50c5fc..b211277997 100644 --- a/Content.Server/Worldgen/Components/Debris/OwnedDebrisComponent.cs +++ b/Content.Server/Worldgen/Components/Debris/OwnedDebrisComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Worldgen.Components.Debris; /// [RegisterComponent] [Access(typeof(DebrisFeaturePlacerSystem))] -public sealed class OwnedDebrisComponent : Component +public sealed partial class OwnedDebrisComponent : Component { /// /// The last location in the controller's internal structure for this debris. diff --git a/Content.Server/Worldgen/Components/Debris/SimpleDebrisSelectorComponent.cs b/Content.Server/Worldgen/Components/Debris/SimpleDebrisSelectorComponent.cs index 16b9f3973a..5db9bad925 100644 --- a/Content.Server/Worldgen/Components/Debris/SimpleDebrisSelectorComponent.cs +++ b/Content.Server/Worldgen/Components/Debris/SimpleDebrisSelectorComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Worldgen.Components.Debris; /// [RegisterComponent] [Access(typeof(DebrisFeaturePlacerSystem))] -public sealed class SimpleDebrisSelectorComponent : Component +public sealed partial class SimpleDebrisSelectorComponent : Component { private EntitySpawnCollectionCache? _cache; diff --git a/Content.Server/Worldgen/Components/Debris/SimpleFloorPlanPopulatorComponent.cs b/Content.Server/Worldgen/Components/Debris/SimpleFloorPlanPopulatorComponent.cs index eab15c8c8d..4865773bf3 100644 --- a/Content.Server/Worldgen/Components/Debris/SimpleFloorPlanPopulatorComponent.cs +++ b/Content.Server/Worldgen/Components/Debris/SimpleFloorPlanPopulatorComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Worldgen.Components.Debris; /// [RegisterComponent] [Access(typeof(SimpleFloorPlanPopulatorSystem))] -public sealed class SimpleFloorPlanPopulatorComponent : Component +public sealed partial class SimpleFloorPlanPopulatorComponent : Component { private Dictionary? _caches; diff --git a/Content.Server/Worldgen/Components/LoadedChunkComponent.cs b/Content.Server/Worldgen/Components/LoadedChunkComponent.cs index cebabaece6..d2743ad4ab 100644 --- a/Content.Server/Worldgen/Components/LoadedChunkComponent.cs +++ b/Content.Server/Worldgen/Components/LoadedChunkComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Worldgen.Components; /// [RegisterComponent] [Access(typeof(WorldControllerSystem))] -public sealed class LoadedChunkComponent : Component +public sealed partial class LoadedChunkComponent : Component { /// /// The current list of entities loading this chunk. diff --git a/Content.Server/Worldgen/Components/LocalityLoaderComponent.cs b/Content.Server/Worldgen/Components/LocalityLoaderComponent.cs index e0b0eb2865..1d37ab34c9 100644 --- a/Content.Server/Worldgen/Components/LocalityLoaderComponent.cs +++ b/Content.Server/Worldgen/Components/LocalityLoaderComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Worldgen.Components; /// [RegisterComponent] [Access(typeof(LocalityLoaderSystem))] -public sealed class LocalityLoaderComponent : Component +public sealed partial class LocalityLoaderComponent : Component { /// /// The maximum distance an entity can be from the loader for it to not load. diff --git a/Content.Server/Worldgen/Components/NoiseIndexComponent.cs b/Content.Server/Worldgen/Components/NoiseIndexComponent.cs index ed6d44f537..06d84d2f85 100644 --- a/Content.Server/Worldgen/Components/NoiseIndexComponent.cs +++ b/Content.Server/Worldgen/Components/NoiseIndexComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Worldgen.Components; /// [RegisterComponent] [Access(typeof(NoiseIndexSystem))] -public sealed class NoiseIndexComponent : Component +public sealed partial class NoiseIndexComponent : Component { /// /// An index of generators, to avoid having to recreate them every time a noise channel is used. diff --git a/Content.Server/Worldgen/Components/WorldChunkComponent.cs b/Content.Server/Worldgen/Components/WorldChunkComponent.cs index 4b5e294eb9..3a91c00756 100644 --- a/Content.Server/Worldgen/Components/WorldChunkComponent.cs +++ b/Content.Server/Worldgen/Components/WorldChunkComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Worldgen.Components; /// [RegisterComponent] [Access(typeof(WorldControllerSystem))] -public sealed class WorldChunkComponent : Component +public sealed partial class WorldChunkComponent : Component { /// /// The coordinates of the chunk, in chunk space. diff --git a/Content.Server/Worldgen/Components/WorldControllerComponent.cs b/Content.Server/Worldgen/Components/WorldControllerComponent.cs index 9d1bcc7ca2..63580e7541 100644 --- a/Content.Server/Worldgen/Components/WorldControllerComponent.cs +++ b/Content.Server/Worldgen/Components/WorldControllerComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Worldgen.Components; /// [RegisterComponent] [Access(typeof(WorldControllerSystem))] -public sealed class WorldControllerComponent : Component +public sealed partial class WorldControllerComponent : Component { /// /// The prototype to use for chunks on this world map. diff --git a/Content.Server/Worldgen/Components/WorldLoaderComponent.cs b/Content.Server/Worldgen/Components/WorldLoaderComponent.cs index 43c990cd27..e6bb7781e9 100644 --- a/Content.Server/Worldgen/Components/WorldLoaderComponent.cs +++ b/Content.Server/Worldgen/Components/WorldLoaderComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Worldgen.Components; /// [RegisterComponent] [Access(typeof(WorldControllerSystem))] -public sealed class WorldLoaderComponent : Component +public sealed partial class WorldLoaderComponent : Component { /// /// The radius in which the loader loads the world. diff --git a/Content.Server/Worldgen/Prototypes/BiomePrototype.cs b/Content.Server/Worldgen/Prototypes/BiomePrototype.cs index 5417c60fb9..4f097d04e2 100644 --- a/Content.Server/Worldgen/Prototypes/BiomePrototype.cs +++ b/Content.Server/Worldgen/Prototypes/BiomePrototype.cs @@ -23,7 +23,7 @@ public sealed class BiomePrototype : IPrototype, IInheritingPrototype /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// The valid ranges of noise values under which this biome can be picked. @@ -35,7 +35,7 @@ public sealed class BiomePrototype : IPrototype, IInheritingPrototype /// Higher priority biomes get picked before lower priority ones. /// [DataField("priority", required: true)] - public int Priority { get; } + public int Priority { get; private set; } /// /// The components that get added to the target map. diff --git a/Content.Server/Worldgen/Prototypes/NoiseChannelPrototype.cs b/Content.Server/Worldgen/Prototypes/NoiseChannelPrototype.cs index 8e495c2ad0..67da4c4df1 100644 --- a/Content.Server/Worldgen/Prototypes/NoiseChannelPrototype.cs +++ b/Content.Server/Worldgen/Prototypes/NoiseChannelPrototype.cs @@ -15,68 +15,68 @@ public class NoiseChannelConfig /// The noise type used by the noise generator. /// [DataField("noiseType")] - public FastNoiseLite.NoiseType NoiseType { get; } = FastNoiseLite.NoiseType.Cellular; + public FastNoiseLite.NoiseType NoiseType { get; private set; } = FastNoiseLite.NoiseType.Cellular; /// /// The fractal type used by the noise generator. /// [DataField("fractalType")] - public FastNoiseLite.FractalType FractalType { get; } = FastNoiseLite.FractalType.FBm; + public FastNoiseLite.FractalType FractalType { get; private set; } = FastNoiseLite.FractalType.FBm; /// /// Multiplied by pi in code when used. /// [DataField("fractalLacunarityByPi")] - public float FractalLacunarityByPi { get; } = 2.0f / 3.0f; + public float FractalLacunarityByPi { get; private set; } = 2.0f / 3.0f; /// /// Ranges of values that get clamped down to the "clipped" value. /// [DataField("clippingRanges")] - public List ClippingRanges { get; } = new(); + public List ClippingRanges { get; private set; } = new(); /// /// The value clipped chunks are set to. /// [DataField("clippedValue")] - public float ClippedValue { get; } + public float ClippedValue { get; private set; } /// /// A value the output is multiplied by. /// [DataField("outputMultiplier")] - public float OutputMultiplier { get; } = 1.0f; + public float OutputMultiplier { get; private set; } = 1.0f; /// /// A value the input is multiplied by. /// [DataField("inputMultiplier")] - public float InputMultiplier { get; } = 1.0f; + public float InputMultiplier { get; private set; } = 1.0f; /// /// Remaps the output of the noise function from the range (-1, 1) to (0, 1). This is done before all other output /// transformations. /// [DataField("remapTo0Through1")] - public bool RemapTo0Through1 { get; } + public bool RemapTo0Through1 { get; private set; } /// /// For when the transformation you need is too complex to describe in YAML. /// [DataField("noisePostProcess")] - public NoisePostProcess? NoisePostProcess { get; } + public NoisePostProcess? NoisePostProcess { get; private set; } /// /// For when you need a complex transformation of the input coordinates. /// [DataField("noiseCoordinateProcess")] - public NoiseCoordinateProcess? NoiseCoordinateProcess { get; } + public NoiseCoordinateProcess? NoiseCoordinateProcess { get; private set; } /// /// The "center" of the range of values. Or the minimum if mapped 0 through 1. /// [DataField("minimum")] - public float Minimum { get; } + public float Minimum { get; private set; } } [Prototype("noiseChannel")] @@ -93,7 +93,7 @@ public sealed class NoiseChannelPrototype : NoiseChannelConfig, IPrototype, IInh /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; } /// @@ -154,7 +154,7 @@ public struct NoiseGenerator /// A processing class that adjusts the input coordinate space to a noise channel. /// [ImplicitDataDefinitionForInheritors] -public abstract class NoiseCoordinateProcess +public abstract partial class NoiseCoordinateProcess { public abstract Vector2 Process(Vector2 inp); } @@ -163,7 +163,7 @@ public abstract class NoiseCoordinateProcess /// A processing class that adjusts the final result of the noise channel. /// [ImplicitDataDefinitionForInheritors] -public abstract class NoisePostProcess +public abstract partial class NoisePostProcess { public abstract float Process(float inp); } diff --git a/Content.Server/Worldgen/Prototypes/WorldgenConfigPrototype.cs b/Content.Server/Worldgen/Prototypes/WorldgenConfigPrototype.cs index 13408f5d94..d6dda9fb74 100644 --- a/Content.Server/Worldgen/Prototypes/WorldgenConfigPrototype.cs +++ b/Content.Server/Worldgen/Prototypes/WorldgenConfigPrototype.cs @@ -12,13 +12,13 @@ public sealed class WorldgenConfigPrototype : IPrototype { /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// The components that get added to the target map. /// [DataField("components", required: true)] - public ComponentRegistry Components { get; } = default!; + public ComponentRegistry Components { get; private set; } = default!; //TODO: Get someone to make this a method on componentregistry that does it Correctly. /// diff --git a/Content.Server/Xenoarchaeology/Equipment/Components/ActiveArtifactAnalyzerComponent.cs b/Content.Server/Xenoarchaeology/Equipment/Components/ActiveArtifactAnalyzerComponent.cs index f4b089636b..6bd20b2bf4 100644 --- a/Content.Server/Xenoarchaeology/Equipment/Components/ActiveArtifactAnalyzerComponent.cs +++ b/Content.Server/Xenoarchaeology/Equipment/Components/ActiveArtifactAnalyzerComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Xenoarchaeology.Equipment.Components; /// in the process of scanning an artifact. /// [RegisterComponent] -public sealed class ActiveArtifactAnalyzerComponent : Component +public sealed partial class ActiveArtifactAnalyzerComponent : Component { /// /// When did the scanning start? diff --git a/Content.Server/Xenoarchaeology/Equipment/Components/ActiveScannedArtifactComponent.cs b/Content.Server/Xenoarchaeology/Equipment/Components/ActiveScannedArtifactComponent.cs index 3475e2ab03..da6b35dab0 100644 --- a/Content.Server/Xenoarchaeology/Equipment/Components/ActiveScannedArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/Equipment/Components/ActiveScannedArtifactComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Xenoarchaeology.Equipment.Components; /// being scanned by /// [RegisterComponent] -public sealed class ActiveScannedArtifactComponent : Component +public sealed partial class ActiveScannedArtifactComponent : Component { /// /// The scanner that is scanning this artifact diff --git a/Content.Server/Xenoarchaeology/Equipment/Components/AnalysisConsoleComponent.cs b/Content.Server/Xenoarchaeology/Equipment/Components/AnalysisConsoleComponent.cs index b03a4df25d..892e24495b 100644 --- a/Content.Server/Xenoarchaeology/Equipment/Components/AnalysisConsoleComponent.cs +++ b/Content.Server/Xenoarchaeology/Equipment/Components/AnalysisConsoleComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Xenoarchaeology.Equipment.Components; /// The console that is used for artifact analysis /// [RegisterComponent] -public sealed class AnalysisConsoleComponent : Component +public sealed partial class AnalysisConsoleComponent : Component { /// /// The analyzer entity the console is linked. @@ -22,7 +22,7 @@ public sealed class AnalysisConsoleComponent : Component /// The machine linking port for the analyzer /// [DataField("linkingPort", customTypeSerializer: typeof(PrototypeIdSerializer))] - public readonly string LinkingPort = "ArtifactAnalyzerSender"; + public string LinkingPort = "ArtifactAnalyzerSender"; /// /// The sound played when an artifact has points extracted. diff --git a/Content.Server/Xenoarchaeology/Equipment/Components/ArtifactAnalyzerComponent.cs b/Content.Server/Xenoarchaeology/Equipment/Components/ArtifactAnalyzerComponent.cs index e691d8525b..cea3b9fbf8 100644 --- a/Content.Server/Xenoarchaeology/Equipment/Components/ArtifactAnalyzerComponent.cs +++ b/Content.Server/Xenoarchaeology/Equipment/Components/ArtifactAnalyzerComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Xenoarchaeology.Equipment.Components; /// in order to analyze artifacts and extract points. /// [RegisterComponent] -public sealed class ArtifactAnalyzerComponent : Component +public sealed partial class ArtifactAnalyzerComponent : Component { /// /// How long it takes to analyze an artifact @@ -49,7 +49,7 @@ public sealed class ArtifactAnalyzerComponent : Component public bool ReadyToPrint = false; [DataField("scanFinishedSound")] - public readonly SoundSpecifier ScanFinishedSound = new SoundPathSpecifier("/Audio/Machines/scan_finish.ogg"); + public SoundSpecifier ScanFinishedSound = new SoundPathSpecifier("/Audio/Machines/scan_finish.ogg"); #region Analysis Data [ViewVariables] diff --git a/Content.Server/Xenoarchaeology/Equipment/Components/BiasedArtifactComponent.cs b/Content.Server/Xenoarchaeology/Equipment/Components/BiasedArtifactComponent.cs index 9b42e96ffb..16bd34d7ea 100644 --- a/Content.Server/Xenoarchaeology/Equipment/Components/BiasedArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/Equipment/Components/BiasedArtifactComponent.cs @@ -5,7 +5,7 @@ /// in a particular direction via the /// [RegisterComponent] -public sealed class BiasedArtifactComponent : Component +public sealed partial class BiasedArtifactComponent : Component { [ViewVariables] public EntityUid Provider; diff --git a/Content.Server/Xenoarchaeology/Equipment/Components/NodeScannerComponent.cs b/Content.Server/Xenoarchaeology/Equipment/Components/NodeScannerComponent.cs index c625ced209..36cc5f830e 100644 --- a/Content.Server/Xenoarchaeology/Equipment/Components/NodeScannerComponent.cs +++ b/Content.Server/Xenoarchaeology/Equipment/Components/NodeScannerComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Xenoarchaeology.Equipment.Components; [RegisterComponent] -public sealed class NodeScannerComponent : Component +public sealed partial class NodeScannerComponent : Component { } diff --git a/Content.Server/Xenoarchaeology/Equipment/Components/SuppressArtifactContainerComponent.cs b/Content.Server/Xenoarchaeology/Equipment/Components/SuppressArtifactContainerComponent.cs index 7f210f6efd..c555f314ad 100644 --- a/Content.Server/Xenoarchaeology/Equipment/Components/SuppressArtifactContainerComponent.cs +++ b/Content.Server/Xenoarchaeology/Equipment/Components/SuppressArtifactContainerComponent.cs @@ -4,7 +4,7 @@ /// Suppress artifact activation, when entity is placed inside this container. /// [RegisterComponent] -public sealed class SuppressArtifactContainerComponent : Component +public sealed partial class SuppressArtifactContainerComponent : Component { } diff --git a/Content.Server/Xenoarchaeology/Equipment/Components/TraversalDistorterComponent.cs b/Content.Server/Xenoarchaeology/Equipment/Components/TraversalDistorterComponent.cs index b029836c08..a7a58778ef 100644 --- a/Content.Server/Xenoarchaeology/Equipment/Components/TraversalDistorterComponent.cs +++ b/Content.Server/Xenoarchaeology/Equipment/Components/TraversalDistorterComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Xenoarchaeology.Equipment.Components; /// an artifact placed on it to move up/down /// [RegisterComponent] -public sealed class TraversalDistorterComponent : Component +public sealed partial class TraversalDistorterComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public float BiasChance; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactComponent.cs index c0c54c44ef..500ce761cf 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Xenoarchaeology.XenoArtifacts; [RegisterComponent, Access(typeof(ArtifactSystem))] -public sealed class ArtifactComponent : Component +public sealed partial class ArtifactComponent : Component { /// /// Every node contained in the tree @@ -97,7 +97,7 @@ public sealed class ArtifactComponent : Component /// A single "node" of an artifact that contains various data about it. /// [DataDefinition] -public sealed class ArtifactNode : ICloneable +public sealed partial class ArtifactNode : ICloneable { /// /// A numeric id corresponding to each node. diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ChargeBatteryArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ChargeBatteryArtifactComponent.cs index cb2c226f6a..a46dd9e813 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ChargeBatteryArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ChargeBatteryArtifactComponent.cs @@ -4,7 +4,7 @@ /// This is used for recharging all nearby batteries when activated /// [RegisterComponent] -public sealed class ChargeBatteryArtifactComponent : Component +public sealed partial class ChargeBatteryArtifactComponent : Component { /// /// The radius of entities that will be affected diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ChemicalPuddleArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ChemicalPuddleArtifactComponent.cs index ad75e1b95d..1e40807f6e 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ChemicalPuddleArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ChemicalPuddleArtifactComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components; /// random chemicals upon being triggered. /// [RegisterComponent, Access(typeof(ChemicalPuddleArtifactSystem))] -public sealed class ChemicalPuddleArtifactComponent : Component +public sealed partial class ChemicalPuddleArtifactComponent : Component { /// /// The solution where all the chemicals are stored diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/DamageNearbyArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/DamageNearbyArtifactComponent.cs index 530f730687..fb85446400 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/DamageNearbyArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/DamageNearbyArtifactComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components; /// When activated, damages nearby entities. /// [RegisterComponent] -public sealed class DamageNearbyArtifactComponent : Component +public sealed partial class DamageNearbyArtifactComponent : Component { /// /// The radius of entities that will be affected diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/EmpArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/EmpArtifactComponent.cs index cea776f05d..d00e65e7c6 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/EmpArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/EmpArtifactComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components; /// [RegisterComponent] [Access(typeof(EmpArtifactSystem))] -public sealed class EmpArtifactComponent : Component +public sealed partial class EmpArtifactComponent : Component { [DataField("range"), ViewVariables(VVAccess.ReadWrite)] public float Range = 4f; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/FoamArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/FoamArtifactComponent.cs index ec4e491f1a..e455c319ca 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/FoamArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/FoamArtifactComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components; /// Generates foam from the artifact when activated /// [RegisterComponent, Access(typeof(FoamArtifactSystem))] -public sealed class FoamArtifactComponent : Component +public sealed partial class FoamArtifactComponent : Component { /// /// The list of reagents that will randomly be picked from diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/GasArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/GasArtifactComponent.cs index 4d9d9b5ac9..a8c7a3dba3 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/GasArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/GasArtifactComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components; /// Spawn a random gas with random temperature when artifact activated. /// [RegisterComponent] -public sealed class GasArtifactComponent : Component +public sealed partial class GasArtifactComponent : Component { /// /// Gas that will be spawned when artifact activated. diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/IgniteArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/IgniteArtifactComponent.cs index 100fb15b63..436790a16f 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/IgniteArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/IgniteArtifactComponent.cs @@ -4,7 +4,7 @@ /// Artifact that ignites surrounding entities when triggered. /// [RegisterComponent] -public sealed class IgniteArtifactComponent : Component +public sealed partial class IgniteArtifactComponent : Component { [DataField("range")] public float Range = 2f; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/KnockArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/KnockArtifactComponent.cs index ee4b804827..4db2f8ea5e 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/KnockArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/KnockArtifactComponent.cs @@ -4,7 +4,7 @@ /// This is used for using the "knock" spell when the artifact is activated /// [RegisterComponent] -public sealed class KnockArtifactComponent : Component +public sealed partial class KnockArtifactComponent : Component { /// /// The range of the spell diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/LightFlickerArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/LightFlickerArtifactComponent.cs index 9f8a7a304f..24578d722d 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/LightFlickerArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/LightFlickerArtifactComponent.cs @@ -4,7 +4,7 @@ /// Flickers all the lights within a certain radius. /// [RegisterComponent] -public sealed class LightFlickerArtifactComponent : Component +public sealed partial class LightFlickerArtifactComponent : Component { /// /// Lights within this radius will be flickered on activation diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/PhasingArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/PhasingArtifactComponent.cs index 7369060ed4..4857233b65 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/PhasingArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/PhasingArtifactComponent.cs @@ -5,6 +5,6 @@ /// and such. /// [RegisterComponent] -public sealed class PhasingArtifactComponent : Component +public sealed partial class PhasingArtifactComponent : Component { } diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/RandomInstrumentArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/RandomInstrumentArtifactComponent.cs index b268f9907c..28e91584ce 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/RandomInstrumentArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/RandomInstrumentArtifactComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components; [RegisterComponent] -public sealed class RandomInstrumentArtifactComponent : Component +public sealed partial class RandomInstrumentArtifactComponent : Component { } diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/RandomTeleportArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/RandomTeleportArtifactComponent.cs index 539af03d5f..d2be32e95c 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/RandomTeleportArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/RandomTeleportArtifactComponent.cs @@ -5,7 +5,7 @@ /// to a random position within a certain radius /// [RegisterComponent] -public sealed class RandomTeleportArtifactComponent : Component +public sealed partial class RandomTeleportArtifactComponent : Component { /// /// The max distance that the artifact will teleport. diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ShuffleArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ShuffleArtifactComponent.cs index aac7a0fe28..4b712135f2 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ShuffleArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ShuffleArtifactComponent.cs @@ -5,7 +5,7 @@ /// within a certain radius. /// [RegisterComponent] -public sealed class ShuffleArtifactComponent : Component +public sealed partial class ShuffleArtifactComponent : Component { [DataField("radius")] public float Radius = 7.5f; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/SpawnArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/SpawnArtifactComponent.cs index 6c3689f626..6fcd8b3f8b 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/SpawnArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/SpawnArtifactComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components; /// It could be an angry mob or some random item. /// [RegisterComponent] -public sealed class SpawnArtifactComponent : Component +public sealed partial class SpawnArtifactComponent : Component { [DataField("spawns")] public List? Spawns; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TelepathicArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TelepathicArtifactComponent.cs index 523fb43fde..a7073a743a 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TelepathicArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TelepathicArtifactComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components; /// Thoughts are shown as popups and unique for each player. /// [RegisterComponent] -public sealed class TelepathicArtifactComponent : Component +public sealed partial class TelepathicArtifactComponent : Component { /// /// Loc string ids of telepathic messages. diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TemperatureArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TemperatureArtifactComponent.cs index c55ef6abbc..0988617cdc 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TemperatureArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TemperatureArtifactComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components; /// Change atmospherics temperature until it reach target. /// [RegisterComponent] -public sealed class TemperatureArtifactComponent : Component +public sealed partial class TemperatureArtifactComponent : Component { [DataField("targetTemp"), ViewVariables(VVAccess.ReadWrite)] public float TargetTemperature = Atmospherics.T0C; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ThrowArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ThrowArtifactComponent.cs index f3150576dc..0c27392208 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ThrowArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/ThrowArtifactComponent.cs @@ -5,7 +5,7 @@ /// Also pries nearby tiles. /// [RegisterComponent] -public sealed class ThrowArtifactComponent : Component +public sealed partial class ThrowArtifactComponent : Component { /// /// How close do you have to be to get yeeted? diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TriggerArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TriggerArtifactComponent.cs index f706b3b0d0..9194cde7b1 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TriggerArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TriggerArtifactComponent.cs @@ -4,7 +4,7 @@ /// This is used for an artifact that triggers when activated. /// [RegisterComponent] -public sealed class TriggerArtifactComponent : Component +public sealed partial class TriggerArtifactComponent : Component { } diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactAnchorTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactAnchorTriggerComponent.cs index 3855bdc4ac..3b2190debd 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactAnchorTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactAnchorTriggerComponent.cs @@ -7,7 +7,7 @@ /// Not every trigger can be a winner /// [RegisterComponent] -public sealed class ArtifactAnchorTriggerComponent : Component +public sealed partial class ArtifactAnchorTriggerComponent : Component { } diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactDamageTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactDamageTriggerComponent.cs index d442d5d430..2f5ac6de81 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactDamageTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactDamageTriggerComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components; /// Triggers when a certain threshold of damage of certain types is reached /// [RegisterComponent] -public sealed class ArtifactDamageTriggerComponent : Component +public sealed partial class ArtifactDamageTriggerComponent : Component { /// /// What damage types are accumulated for the trigger? diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactDeathTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactDeathTriggerComponent.cs index 797583a8a0..a9d4d1af48 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactDeathTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactDeathTriggerComponent.cs @@ -4,7 +4,7 @@ /// Triggers when a nearby entity dies /// [RegisterComponent] -public sealed class ArtifactDeathTriggerComponent : Component +public sealed partial class ArtifactDeathTriggerComponent : Component { /// /// How close to the death the artifact has to be for it to trigger. diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactElectricityTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactElectricityTriggerComponent.cs index 110a3ff4e5..4046d8c4d8 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactElectricityTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactElectricityTriggerComponent.cs @@ -5,7 +5,7 @@ /// It could be connected MV cables, stun baton or multi tool. /// [RegisterComponent] -public sealed class ArtifactElectricityTriggerComponent : Component +public sealed partial class ArtifactElectricityTriggerComponent : Component { /// /// How much power should artifact receive to operate. diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactExamineTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactExamineTriggerComponent.cs index a494b95468..ac669970de 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactExamineTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactExamineTriggerComponent.cs @@ -4,7 +4,7 @@ /// Triggers when the artifact is examined. /// [RegisterComponent] -public sealed class ArtifactExamineTriggerComponent : Component +public sealed partial class ArtifactExamineTriggerComponent : Component { } diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactGasTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactGasTriggerComponent.cs index 30300f1084..8762637d52 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactGasTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactGasTriggerComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components; /// Activates artifact when it surrounded by certain gas. /// [RegisterComponent] -public sealed class ArtifactGasTriggerComponent : Component +public sealed partial class ArtifactGasTriggerComponent : Component { /// /// List of possible activation gases to pick on startup. diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactHeatTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactHeatTriggerComponent.cs index fecbdd7ca3..0af4200780 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactHeatTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactHeatTriggerComponent.cs @@ -8,7 +8,7 @@ /// has contacted with a hot object (lit welder, lighter, etc). /// [RegisterComponent] -public sealed class ArtifactHeatTriggerComponent : Component +public sealed partial class ArtifactHeatTriggerComponent : Component { /// /// Minimal surrounding gas temperature to trigger artifact. diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactInteractionTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactInteractionTriggerComponent.cs index b5c08cc4c4..e2f00f9ebd 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactInteractionTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactInteractionTriggerComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components; /// Activate artifact by touching, attacking or pulling it. /// [RegisterComponent] -public sealed class ArtifactInteractionTriggerComponent : Component +public sealed partial class ArtifactInteractionTriggerComponent : Component { /// /// Should artifact be activated just by touching with empty hand? diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactLandTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactLandTriggerComponent.cs index 700b162635..b8be1b196f 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactLandTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactLandTriggerComponent.cs @@ -4,6 +4,6 @@ /// Triggers when the artifact lands after being thrown. /// [RegisterComponent] -public sealed class ArtifactLandTriggerComponent : Component +public sealed partial class ArtifactLandTriggerComponent : Component { } diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactMagnetTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactMagnetTriggerComponent.cs index f29f057687..6e7bb43e8b 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactMagnetTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactMagnetTriggerComponent.cs @@ -4,7 +4,7 @@ /// Triggers when the salvage magnet is activated /// [RegisterComponent] -public sealed class ArtifactMagnetTriggerComponent : Component +public sealed partial class ArtifactMagnetTriggerComponent : Component { /// /// how close to the magnet do you have to be? diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactMicrowaveTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactMicrowaveTriggerComponent.cs index 038c7f4a1b..6270e4d826 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactMicrowaveTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactMicrowaveTriggerComponent.cs @@ -4,6 +4,6 @@ /// Triggers when an item artifact is microwaved. /// [RegisterComponent] -public sealed class ArtifactMicrowaveTriggerComponent : Component +public sealed partial class ArtifactMicrowaveTriggerComponent : Component { } diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactMusicTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactMusicTriggerComponent.cs index c0c5bd9a7f..1a67d5e446 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactMusicTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactMusicTriggerComponent.cs @@ -4,7 +4,7 @@ /// Triggers when an instrument is played nearby /// [RegisterComponent] -public sealed class ArtifactMusicTriggerComponent : Component +public sealed partial class ArtifactMusicTriggerComponent : Component { /// /// how close does the artifact have to be to the instrument to activate diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactPressureTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactPressureTriggerComponent.cs index e28169b6b5..8a7d37cfb1 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactPressureTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactPressureTriggerComponent.cs @@ -4,7 +4,7 @@ /// Triggers when a certain pressure threshold is hit /// [RegisterComponent] -public sealed class ArtifactPressureTriggerComponent : Component +public sealed partial class ArtifactPressureTriggerComponent : Component { /// /// The lower-end pressure threshold diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactTimerTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactTimerTriggerComponent.cs index 0bd94cb839..bab364afbb 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactTimerTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactTimerTriggerComponent.cs @@ -5,7 +5,7 @@ /// Doesn't used for random artifacts, can be spawned by admins. /// [RegisterComponent] -public sealed class ArtifactTimerTriggerComponent : Component +public sealed partial class ArtifactTimerTriggerComponent : Component { /// /// Time between artifact activation attempts. diff --git a/Content.Server/Zombies/IncurableZombieComponent.cs b/Content.Server/Zombies/IncurableZombieComponent.cs index 79c1af5529..2695865690 100644 --- a/Content.Server/Zombies/IncurableZombieComponent.cs +++ b/Content.Server/Zombies/IncurableZombieComponent.cs @@ -4,7 +4,7 @@ /// This is used for a zombie that cannot be cured by any methods. /// [RegisterComponent] -public sealed class IncurableZombieComponent : Component +public sealed partial class IncurableZombieComponent : Component { } diff --git a/Content.Server/Zombies/PendingZombieComponent.cs b/Content.Server/Zombies/PendingZombieComponent.cs index 929c702ec4..fb3d6debcd 100644 --- a/Content.Server/Zombies/PendingZombieComponent.cs +++ b/Content.Server/Zombies/PendingZombieComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Zombies; /// Temporary because diseases suck. /// [RegisterComponent] -public sealed class PendingZombieComponent : Component +public sealed partial class PendingZombieComponent : Component { /// /// Damage dealt every second to infected individuals. diff --git a/Content.Server/Zombies/ZombieImmuneComponent.cs b/Content.Server/Zombies/ZombieImmuneComponent.cs index 1a8517d258..5f8ea625d8 100644 --- a/Content.Server/Zombies/ZombieImmuneComponent.cs +++ b/Content.Server/Zombies/ZombieImmuneComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Zombies; [RegisterComponent] -public sealed class ZombieImmuneComponent : Component +public sealed partial class ZombieImmuneComponent : Component { //still no } diff --git a/Content.Server/Zombies/ZombifyOnDeathComponent.cs b/Content.Server/Zombies/ZombifyOnDeathComponent.cs index 793e356eeb..dff17c4613 100644 --- a/Content.Server/Zombies/ZombifyOnDeathComponent.cs +++ b/Content.Server/Zombies/ZombifyOnDeathComponent.cs @@ -1,7 +1,7 @@ namespace Content.Server.Zombies { [RegisterComponent] - public sealed class ZombifyOnDeathComponent : Component + public sealed partial class ZombifyOnDeathComponent : Component { //this is not the component you are looking for } diff --git a/Content.Shared/Access/AccessGroupPrototype.cs b/Content.Shared/Access/AccessGroupPrototype.cs index 67da25c29e..f32c8ffbca 100644 --- a/Content.Shared/Access/AccessGroupPrototype.cs +++ b/Content.Shared/Access/AccessGroupPrototype.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Access; public sealed class AccessGroupPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("tags", required: true, customTypeSerializer: typeof(PrototypeIdHashSetSerializer))] public HashSet Tags = default!; diff --git a/Content.Shared/Access/AccessLevelPrototype.cs b/Content.Shared/Access/AccessLevelPrototype.cs index e5b4f0bfe1..4d3e4884b6 100644 --- a/Content.Shared/Access/AccessLevelPrototype.cs +++ b/Content.Shared/Access/AccessLevelPrototype.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Access { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// The player-visible name of the access level, in the ID card console and such. diff --git a/Content.Shared/Access/Components/AccessOverriderComponent.cs b/Content.Shared/Access/Components/AccessOverriderComponent.cs index 044ce23497..459cc24f0c 100644 --- a/Content.Shared/Access/Components/AccessOverriderComponent.cs +++ b/Content.Shared/Access/Components/AccessOverriderComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Access.Components; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedAccessOverriderSystem))] -public sealed class AccessOverriderComponent : Component +public sealed partial class AccessOverriderComponent : Component { public static string PrivilegedIdCardSlotId = "AccessOverrider-privilegedId"; diff --git a/Content.Shared/Access/Components/AccessReaderComponent.cs b/Content.Shared/Access/Components/AccessReaderComponent.cs index c3ed9eeb17..cae0247602 100644 --- a/Content.Shared/Access/Components/AccessReaderComponent.cs +++ b/Content.Shared/Access/Components/AccessReaderComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Access.Components; /// and allows checking if something or somebody is authorized with these access levels. /// [RegisterComponent, NetworkedComponent] -public sealed class AccessReaderComponent : Component +public sealed partial class AccessReaderComponent : Component { /// /// Whether or not the accessreader is enabled. diff --git a/Content.Shared/Access/Components/IdCardConsoleComponent.cs b/Content.Shared/Access/Components/IdCardConsoleComponent.cs index 53001867c5..dbc78e2474 100644 --- a/Content.Shared/Access/Components/IdCardConsoleComponent.cs +++ b/Content.Shared/Access/Components/IdCardConsoleComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Access.Components; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedIdCardConsoleSystem))] -public sealed class IdCardConsoleComponent : Component +public sealed partial class IdCardConsoleComponent : Component { public const int MaxFullNameLength = 30; public const int MaxJobTitleLength = 30; diff --git a/Content.Shared/Access/Systems/SharedAccessOverriderSystem.cs b/Content.Shared/Access/Systems/SharedAccessOverriderSystem.cs index 11ec9adec8..c19fe697e6 100644 --- a/Content.Shared/Access/Systems/SharedAccessOverriderSystem.cs +++ b/Content.Shared/Access/Systems/SharedAccessOverriderSystem.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Access.Systems { [UsedImplicitly] - public abstract class SharedAccessOverriderSystem : EntitySystem + public abstract partial class SharedAccessOverriderSystem : EntitySystem { [Dependency] private readonly ItemSlotsSystem _itemSlotsSystem = default!; [Dependency] private readonly ILogManager _log = default!; @@ -60,7 +60,7 @@ namespace Content.Shared.Access.Systems } [Serializable, NetSerializable] - public sealed class AccessOverriderDoAfterEvent : DoAfterEvent + public sealed partial class AccessOverriderDoAfterEvent : DoAfterEvent { public AccessOverriderDoAfterEvent() { diff --git a/Content.Shared/Actions/ActionEvents.cs b/Content.Shared/Actions/ActionEvents.cs index 4c6b6719d0..a861ec1255 100644 --- a/Content.Shared/Actions/ActionEvents.cs +++ b/Content.Shared/Actions/ActionEvents.cs @@ -71,7 +71,7 @@ public sealed class RequestPerformActionEvent : EntityEventArgs /// /// To define a new action for some system, you need to create an event that inherits from this class. /// -public abstract class InstantActionEvent : BaseActionEvent { } +public abstract partial class InstantActionEvent : BaseActionEvent { } /// /// This is the type of event that gets raised when an is performed. The /// To define a new action for some system, you need to create an event that inherits from this class. /// -public abstract class EntityTargetActionEvent : BaseActionEvent +public abstract partial class EntityTargetActionEvent : BaseActionEvent { /// /// The entity that the user targeted. @@ -97,7 +97,7 @@ public abstract class EntityTargetActionEvent : BaseActionEvent /// /// To define a new action for some system, you need to create an event that inherits from this class. /// -public abstract class WorldTargetActionEvent : BaseActionEvent +public abstract partial class WorldTargetActionEvent : BaseActionEvent { /// /// The coordinates of the location that the user targeted. @@ -110,7 +110,7 @@ public abstract class WorldTargetActionEvent : BaseActionEvent /// system. /// [ImplicitDataDefinitionForInheritors] -public abstract class BaseActionEvent : HandledEntityEventArgs +public abstract partial class BaseActionEvent : HandledEntityEventArgs { /// /// The user performing the action. diff --git a/Content.Shared/Actions/ActionTypes/ActionPrototypes.cs b/Content.Shared/Actions/ActionTypes/ActionPrototypes.cs index 87be616323..2e61ef32de 100644 --- a/Content.Shared/Actions/ActionTypes/ActionPrototypes.cs +++ b/Content.Shared/Actions/ActionTypes/ActionPrototypes.cs @@ -10,10 +10,10 @@ namespace Content.Shared.Actions.ActionTypes; // anymore. [Prototype("worldTargetAction")] -public sealed class WorldTargetActionPrototype : WorldTargetAction, IPrototype +public sealed partial class WorldTargetActionPrototype : WorldTargetAction, IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; // This is a shitty hack to get around the fact that action-prototypes should not in general be sever-exclusive // prototypes, but some actions may need to use server-exclusive events, and there is no way to specify on a @@ -27,10 +27,10 @@ public sealed class WorldTargetActionPrototype : WorldTargetAction, IPrototype } [Prototype("entityTargetAction")] -public sealed class EntityTargetActionPrototype : EntityTargetAction, IPrototype +public sealed partial class EntityTargetActionPrototype : EntityTargetAction, IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("serverEvent", serverOnly: true)] public EntityTargetActionEvent? ServerEvent @@ -41,10 +41,10 @@ public sealed class EntityTargetActionPrototype : EntityTargetAction, IPrototype } [Prototype("instantAction")] -public sealed class InstantActionPrototype : InstantAction, IPrototype +public sealed partial class InstantActionPrototype : InstantAction, IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("serverEvent", serverOnly: true)] public InstantActionEvent? ServerEvent diff --git a/Content.Shared/Actions/ActionTypes/ActionType.cs b/Content.Shared/Actions/ActionTypes/ActionType.cs index 2ed3e0c88b..93a24e2b75 100644 --- a/Content.Shared/Actions/ActionTypes/ActionType.cs +++ b/Content.Shared/Actions/ActionTypes/ActionType.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Actions.ActionTypes; [ImplicitDataDefinitionForInheritors] [Serializable, NetSerializable] -public abstract class ActionType : IEquatable, IComparable, ICloneable +public abstract partial class ActionType : IEquatable, IComparable, ICloneable { /// /// Icon representing this action in the UI. diff --git a/Content.Shared/Actions/ActionTypes/InstantAction.cs b/Content.Shared/Actions/ActionTypes/InstantAction.cs index 27254c4d05..34ee352406 100644 --- a/Content.Shared/Actions/ActionTypes/InstantAction.cs +++ b/Content.Shared/Actions/ActionTypes/InstantAction.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Actions.ActionTypes; /// [Serializable, NetSerializable] [Virtual] -public class InstantAction : ActionType +public partial class InstantAction : ActionType { /// /// The local-event to raise when this action is performed. diff --git a/Content.Shared/Actions/ActionTypes/TargetedAction.cs b/Content.Shared/Actions/ActionTypes/TargetedAction.cs index ba32fae0da..780972092a 100644 --- a/Content.Shared/Actions/ActionTypes/TargetedAction.cs +++ b/Content.Shared/Actions/ActionTypes/TargetedAction.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Actions.ActionTypes; [Serializable, NetSerializable] -public abstract class TargetedAction : ActionType +public abstract partial class TargetedAction : ActionType { /// /// For entity- or map-targeting actions, if this is true the action will remain selected after it is used, so @@ -71,7 +71,7 @@ public abstract class TargetedAction : ActionType /// [Serializable, NetSerializable] [Virtual] -public class EntityTargetAction : TargetedAction +public partial class EntityTargetAction : TargetedAction { /// /// The local-event to raise when this action is performed. @@ -119,7 +119,7 @@ public class EntityTargetAction : TargetedAction /// [Serializable, NetSerializable] [Virtual] -public class WorldTargetAction : TargetedAction +public partial class WorldTargetAction : TargetedAction { /// /// The local-event to raise when this action is performed. diff --git a/Content.Shared/Actions/ActionsComponent.cs b/Content.Shared/Actions/ActionsComponent.cs index d422fcdbc2..4472f8a095 100644 --- a/Content.Shared/Actions/ActionsComponent.cs +++ b/Content.Shared/Actions/ActionsComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Actions; [NetworkedComponent] [RegisterComponent] [Access(typeof(SharedActionsSystem))] -public sealed class ActionsComponent : Component +public sealed partial class ActionsComponent : Component { [ViewVariables] [Access(typeof(SharedActionsSystem), Other = AccessPermissions.ReadExecute)] diff --git a/Content.Shared/Administration/AdminFrozenComponent.cs b/Content.Shared/Administration/AdminFrozenComponent.cs index 8a15971055..164cf764c8 100644 --- a/Content.Shared/Administration/AdminFrozenComponent.cs +++ b/Content.Shared/Administration/AdminFrozenComponent.cs @@ -4,6 +4,6 @@ namespace Content.Shared.Administration; [RegisterComponent, Access(typeof(AdminFrozenSystem))] [NetworkedComponent] -public sealed class AdminFrozenComponent : Component +public sealed partial class AdminFrozenComponent : Component { } diff --git a/Content.Shared/Administration/Components/DisarmProneComponent.cs b/Content.Shared/Administration/Components/DisarmProneComponent.cs index 3829dfd528..4ba11df8e2 100644 --- a/Content.Shared/Administration/Components/DisarmProneComponent.cs +++ b/Content.Shared/Administration/Components/DisarmProneComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Administration.Components; /// [RegisterComponent, NetworkedComponent] [Access(typeof(SharedMeleeWeaponSystem))] -public sealed class DisarmProneComponent : Component +public sealed partial class DisarmProneComponent : Component { } diff --git a/Content.Shared/Administration/Components/SharedHeadstandComponent.cs b/Content.Shared/Administration/Components/SharedHeadstandComponent.cs index fdba980610..ebc23c7b05 100644 --- a/Content.Shared/Administration/Components/SharedHeadstandComponent.cs +++ b/Content.Shared/Administration/Components/SharedHeadstandComponent.cs @@ -3,4 +3,4 @@ /// /// Flips the target's sprite on it's head, so they do a headstand. /// -public abstract class SharedHeadstandComponent : Component { } +public abstract partial class SharedHeadstandComponent : Component { } diff --git a/Content.Shared/Administration/Components/SharedKillSignComponent.cs b/Content.Shared/Administration/Components/SharedKillSignComponent.cs index 6536c39cbb..2e6d54ca88 100644 --- a/Content.Shared/Administration/Components/SharedKillSignComponent.cs +++ b/Content.Shared/Administration/Components/SharedKillSignComponent.cs @@ -1,6 +1,6 @@ namespace Content.Shared.Administration.Components; -public abstract class SharedKillSignComponent : Component +public abstract partial class SharedKillSignComponent : Component { } diff --git a/Content.Shared/Alert/AlertOrderPrototype.cs b/Content.Shared/Alert/AlertOrderPrototype.cs index 5c75f1cb4c..8279d592b4 100644 --- a/Content.Shared/Alert/AlertOrderPrototype.cs +++ b/Content.Shared/Alert/AlertOrderPrototype.cs @@ -9,11 +9,11 @@ namespace Content.Shared.Alert /// [Prototype("alertOrder")] [DataDefinition] - public sealed class AlertOrderPrototype : IPrototype, IComparer + public sealed partial class AlertOrderPrototype : IPrototype, IComparer { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("order")] private (string type, string alert)[] Order diff --git a/Content.Shared/Alert/AlertPrototype.cs b/Content.Shared/Alert/AlertPrototype.cs index 502cf63eec..ba37e51332 100644 --- a/Content.Shared/Alert/AlertPrototype.cs +++ b/Content.Shared/Alert/AlertPrototype.cs @@ -24,7 +24,7 @@ namespace Content.Shared.Alert /// minimum and incrementing upwards. If severities are not supported, the first entry is used. /// [DataField("icons", required: true)] - public readonly List Icons = new(); + public List Icons = new(); /// /// Name to show in tooltip window. Accepts formatting. diff --git a/Content.Shared/Alert/AlertsComponent.cs b/Content.Shared/Alert/AlertsComponent.cs index cc63efd29f..4468db4463 100644 --- a/Content.Shared/Alert/AlertsComponent.cs +++ b/Content.Shared/Alert/AlertsComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Alert; /// [RegisterComponent] [NetworkedComponent] -public sealed class AlertsComponent : Component +public sealed partial class AlertsComponent : Component { [ViewVariables] public Dictionary Alerts = new(); diff --git a/Content.Shared/AlertLevel/AlertLevelDisplayComponent.cs b/Content.Shared/AlertLevel/AlertLevelDisplayComponent.cs index b3a697d729..c305296e79 100644 --- a/Content.Shared/AlertLevel/AlertLevelDisplayComponent.cs +++ b/Content.Shared/AlertLevel/AlertLevelDisplayComponent.cs @@ -1,8 +1,8 @@ namespace Content.Shared.AlertLevel; [RegisterComponent] -public sealed class AlertLevelDisplayComponent : Component +public sealed partial class AlertLevelDisplayComponent : Component { [DataField("alertVisuals")] - public readonly Dictionary AlertVisuals = new(); + public Dictionary AlertVisuals = new(); } diff --git a/Content.Shared/Ame/SharedAmeControllerComponent.cs b/Content.Shared/Ame/SharedAmeControllerComponent.cs index 73797af268..386d577ef3 100644 --- a/Content.Shared/Ame/SharedAmeControllerComponent.cs +++ b/Content.Shared/Ame/SharedAmeControllerComponent.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Ame; [Virtual] -public class SharedAmeControllerComponent : Component +public partial class SharedAmeControllerComponent : Component { } diff --git a/Content.Shared/Ame/SharedAmeShieldComponent.cs b/Content.Shared/Ame/SharedAmeShieldComponent.cs index 92b86f9bc4..3057de7160 100644 --- a/Content.Shared/Ame/SharedAmeShieldComponent.cs +++ b/Content.Shared/Ame/SharedAmeShieldComponent.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Ame; [Virtual] -public class SharedAmeShieldComponent : Component +public partial class SharedAmeShieldComponent : Component { } diff --git a/Content.Shared/Anomaly/Components/AnomalyComponent.cs b/Content.Shared/Anomaly/Components/AnomalyComponent.cs index 42d6542209..e1e15561f8 100644 --- a/Content.Shared/Anomaly/Components/AnomalyComponent.cs +++ b/Content.Shared/Anomaly/Components/AnomalyComponent.cs @@ -15,7 +15,7 @@ namespace Content.Shared.Anomaly.Components; /// Anomalies and their related components were designed here: https://hackmd.io/@ss14-design/r1sQbkJOs /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedAnomalySystem))] -public sealed class AnomalyComponent : Component +public sealed partial class AnomalyComponent : Component { /// /// How likely an anomaly is to grow more dangerous. Moves both up and down. @@ -213,14 +213,14 @@ public sealed class AnomalyComponent : Component /// [ViewVariables(VVAccess.ReadWrite)] [DataField("animationTime")] - public readonly float AnimationTime = 2f; + public float AnimationTime = 2f; /// /// How far it goes in any direction. /// [ViewVariables(VVAccess.ReadWrite)] [DataField("offset")] - public readonly Vector2 FloatingOffset = new(0, 0.15f); + public Vector2 FloatingOffset = new(0, 0.15f); public readonly string AnimationKey = "anomalyfloat"; #endregion diff --git a/Content.Shared/Anomaly/Components/AnomalyPulsingComponent.cs b/Content.Shared/Anomaly/Components/AnomalyPulsingComponent.cs index 0420ffac0a..7326118b3c 100644 --- a/Content.Shared/Anomaly/Components/AnomalyPulsingComponent.cs +++ b/Content.Shared/Anomaly/Components/AnomalyPulsingComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Anomaly.Components; /// This component tracks anomalies that are currently pulsing /// [RegisterComponent, Access(typeof(SharedAnomalySystem))] -public sealed class AnomalyPulsingComponent : Component +public sealed partial class AnomalyPulsingComponent : Component { /// /// The time at which the pulse will be over. diff --git a/Content.Shared/Anomaly/Components/AnomalySupercriticalComponent.cs b/Content.Shared/Anomaly/Components/AnomalySupercriticalComponent.cs index b02a7a4333..e5101fef66 100644 --- a/Content.Shared/Anomaly/Components/AnomalySupercriticalComponent.cs +++ b/Content.Shared/Anomaly/Components/AnomalySupercriticalComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Anomaly.Components; /// Tracks anomalies going supercritical /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedAnomalySystem))] -public sealed class AnomalySupercriticalComponent : Component +public sealed partial class AnomalySupercriticalComponent : Component { /// /// The time when the supercritical animation ends and it does whatever effect. diff --git a/Content.Shared/Anomaly/Effects/Components/ElectricityAnomalyComponent.cs b/Content.Shared/Anomaly/Effects/Components/ElectricityAnomalyComponent.cs index 06d03f1019..5e4fc333e3 100644 --- a/Content.Shared/Anomaly/Effects/Components/ElectricityAnomalyComponent.cs +++ b/Content.Shared/Anomaly/Effects/Components/ElectricityAnomalyComponent.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Anomaly.Effects.Components; [RegisterComponent] -public sealed class ElectricityAnomalyComponent : Component +public sealed partial class ElectricityAnomalyComponent : Component { /// /// The maximum radius of the passive electrocution effect diff --git a/Content.Shared/Anomaly/Effects/Components/EntitySpawnAnomalyComponent.cs b/Content.Shared/Anomaly/Effects/Components/EntitySpawnAnomalyComponent.cs index ce1024d5ef..1dbe59a09b 100644 --- a/Content.Shared/Anomaly/Effects/Components/EntitySpawnAnomalyComponent.cs +++ b/Content.Shared/Anomaly/Effects/Components/EntitySpawnAnomalyComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Anomaly.Effects.Components; [RegisterComponent] -public sealed class EntitySpawnAnomalyComponent : Component +public sealed partial class EntitySpawnAnomalyComponent : Component { /// /// A list of entities that are random picked to be spawned on each pulse diff --git a/Content.Shared/Anomaly/Effects/Components/GravityAnomalyComponent.cs b/Content.Shared/Anomaly/Effects/Components/GravityAnomalyComponent.cs index 1ede852f7d..ac2ae32dff 100644 --- a/Content.Shared/Anomaly/Effects/Components/GravityAnomalyComponent.cs +++ b/Content.Shared/Anomaly/Effects/Components/GravityAnomalyComponent.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Anomaly.Effects.Components; [RegisterComponent, NetworkedComponent, Access(typeof(SharedGravityAnomalySystem))] -public sealed class GravityAnomalyComponent : Component +public sealed partial class GravityAnomalyComponent : Component { /// /// The maximumum size the GravityWellComponent MaxRange can be. diff --git a/Content.Shared/Anomaly/Effects/Components/PyroclasticAnomalyComponent.cs b/Content.Shared/Anomaly/Effects/Components/PyroclasticAnomalyComponent.cs index 35905c37b5..16c422f1ab 100644 --- a/Content.Shared/Anomaly/Effects/Components/PyroclasticAnomalyComponent.cs +++ b/Content.Shared/Anomaly/Effects/Components/PyroclasticAnomalyComponent.cs @@ -1,7 +1,7 @@ namespace Content.Shared.Anomaly.Effects.Components; [RegisterComponent] -public sealed class PyroclasticAnomalyComponent : Component +public sealed partial class PyroclasticAnomalyComponent : Component { /// /// The maximum distance from which you can be ignited by the anomaly. diff --git a/Content.Shared/Anomaly/Effects/Components/TileSpawnAnomaly.cs b/Content.Shared/Anomaly/Effects/Components/TileSpawnAnomaly.cs index 5403225bae..3ea1475c75 100644 --- a/Content.Shared/Anomaly/Effects/Components/TileSpawnAnomaly.cs +++ b/Content.Shared/Anomaly/Effects/Components/TileSpawnAnomaly.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Anomaly.Effects.Components; [RegisterComponent] -public sealed class TileSpawnAnomalyComponent : Component +public sealed partial class TileSpawnAnomalyComponent : Component { /// /// The maximum radius of tiles scales with stability diff --git a/Content.Shared/Anomaly/ScannerDoAfterEvent.cs b/Content.Shared/Anomaly/ScannerDoAfterEvent.cs index b280b60b70..e9c234d28f 100644 --- a/Content.Shared/Anomaly/ScannerDoAfterEvent.cs +++ b/Content.Shared/Anomaly/ScannerDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Anomaly; [Serializable, NetSerializable] -public sealed class ScannerDoAfterEvent : SimpleDoAfterEvent +public sealed partial class ScannerDoAfterEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/Arcade/SharedSpaceVillainArcadeComponent.cs b/Content.Shared/Arcade/SharedSpaceVillainArcadeComponent.cs index b0bf87bd19..8b685421c0 100644 --- a/Content.Shared/Arcade/SharedSpaceVillainArcadeComponent.cs +++ b/Content.Shared/Arcade/SharedSpaceVillainArcadeComponent.cs @@ -2,7 +2,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Arcade { - public abstract class SharedSpaceVillainArcadeComponent : Component + public abstract partial class SharedSpaceVillainArcadeComponent : Component { [Serializable, NetSerializable] public enum Indicators diff --git a/Content.Shared/Atmos/Components/GasAnalyzerComponent.cs b/Content.Shared/Atmos/Components/GasAnalyzerComponent.cs index 8a26059591..852b6c6a7a 100644 --- a/Content.Shared/Atmos/Components/GasAnalyzerComponent.cs +++ b/Content.Shared/Atmos/Components/GasAnalyzerComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Atmos.Components; [RegisterComponent, NetworkedComponent] -public sealed class GasAnalyzerComponent : Component +public sealed partial class GasAnalyzerComponent : Component { [ViewVariables] public EntityUid? Target; diff --git a/Content.Shared/Atmos/Components/GasTileOverlayComponent.cs b/Content.Shared/Atmos/Components/GasTileOverlayComponent.cs index 3f75c81c42..b97da1d30c 100644 --- a/Content.Shared/Atmos/Components/GasTileOverlayComponent.cs +++ b/Content.Shared/Atmos/Components/GasTileOverlayComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Utility; namespace Content.Shared.Atmos.Components; [RegisterComponent, NetworkedComponent] -public sealed class GasTileOverlayComponent : Component +public sealed partial class GasTileOverlayComponent : Component { /// /// The tiles that have had their atmos data updated since last tick diff --git a/Content.Shared/Atmos/Components/PipeAppearanceComponent.cs b/Content.Shared/Atmos/Components/PipeAppearanceComponent.cs index b412599d65..b5f979c482 100644 --- a/Content.Shared/Atmos/Components/PipeAppearanceComponent.cs +++ b/Content.Shared/Atmos/Components/PipeAppearanceComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Utility; namespace Content.Shared.Atmos.Components; [RegisterComponent] -public sealed class PipeAppearanceComponent : Component +public sealed partial class PipeAppearanceComponent : Component { [DataField("sprite")] public SpriteSpecifier.Rsi Sprite = new(new("Structures/Piping/Atmospherics/pipe.rsi"), "pipeConnector"); diff --git a/Content.Shared/Atmos/Components/SharedMapAtmosphereComponent.cs b/Content.Shared/Atmos/Components/SharedMapAtmosphereComponent.cs index 5d350a030a..9b52ab9a87 100644 --- a/Content.Shared/Atmos/Components/SharedMapAtmosphereComponent.cs +++ b/Content.Shared/Atmos/Components/SharedMapAtmosphereComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Atmos.Components; [NetworkedComponent] -public abstract class SharedMapAtmosphereComponent : Component +public abstract partial class SharedMapAtmosphereComponent : Component { [ViewVariables] public SharedGasTileOverlaySystem.GasOverlayData OverlayData; } diff --git a/Content.Shared/Atmos/Miasma/AntiRottingContainerComponent.cs b/Content.Shared/Atmos/Miasma/AntiRottingContainerComponent.cs index 3a05dbc3b0..0557ec9133 100644 --- a/Content.Shared/Atmos/Miasma/AntiRottingContainerComponent.cs +++ b/Content.Shared/Atmos/Miasma/AntiRottingContainerComponent.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Atmos.Miasma; /// Entities inside this container will not rot. /// [RegisterComponent] -public sealed class AntiRottingContainerComponent : Component +public sealed partial class AntiRottingContainerComponent : Component { } diff --git a/Content.Shared/Atmos/Miasma/PerishableComponent.cs b/Content.Shared/Atmos/Miasma/PerishableComponent.cs index 088c7a9911..e7f1438bf6 100644 --- a/Content.Shared/Atmos/Miasma/PerishableComponent.cs +++ b/Content.Shared/Atmos/Miasma/PerishableComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Atmos.Miasma; /// It may be expanded to food at some point, but it's just for mobs right now. /// [RegisterComponent] -public sealed class PerishableComponent : Component +public sealed partial class PerishableComponent : Component { /// /// How long it takes after death to start rotting. diff --git a/Content.Shared/Atmos/Miasma/RotIntoComponent.cs b/Content.Shared/Atmos/Miasma/RotIntoComponent.cs index 552f7ad1c9..5f4a472c2e 100644 --- a/Content.Shared/Atmos/Miasma/RotIntoComponent.cs +++ b/Content.Shared/Atmos/Miasma/RotIntoComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Atmos.Miasma; /// Used by raw meat to turn into rotten meat. /// [RegisterComponent, NetworkedComponent] -public sealed class RotIntoComponent : Component +public sealed partial class RotIntoComponent : Component { /// /// Entity to rot into. diff --git a/Content.Shared/Atmos/Miasma/RottingComponent.cs b/Content.Shared/Atmos/Miasma/RottingComponent.cs index e37fe3996c..c5485eba6d 100644 --- a/Content.Shared/Atmos/Miasma/RottingComponent.cs +++ b/Content.Shared/Atmos/Miasma/RottingComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Atmos.Miasma; /// Tracking component for stuff that has started to rot. /// [RegisterComponent, NetworkedComponent] -public sealed class RottingComponent : Component +public sealed partial class RottingComponent : Component { /// /// Whether or not the rotting should deal damage diff --git a/Content.Shared/Atmos/Monitor/AtmosAlarmThreshold.cs b/Content.Shared/Atmos/Monitor/AtmosAlarmThreshold.cs index 1a9fb71a05..7ad0e0f502 100644 --- a/Content.Shared/Atmos/Monitor/AtmosAlarmThreshold.cs +++ b/Content.Shared/Atmos/Monitor/AtmosAlarmThreshold.cs @@ -8,26 +8,26 @@ namespace Content.Shared.Atmos.Monitor; public sealed class AtmosAlarmThresholdPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("ignore")] - public readonly bool Ignore; + public bool Ignore; [DataField("upperBound")] - public readonly AlarmThresholdSetting UpperBound = AlarmThresholdSetting.Disabled; + public AlarmThresholdSetting UpperBound = AlarmThresholdSetting.Disabled; [DataField("lowerBound")] - public readonly AlarmThresholdSetting LowerBound = AlarmThresholdSetting.Disabled; + public AlarmThresholdSetting LowerBound = AlarmThresholdSetting.Disabled; [DataField("upperWarnAround")] - public readonly AlarmThresholdSetting UpperWarningPercentage = AlarmThresholdSetting.Disabled; + public AlarmThresholdSetting UpperWarningPercentage = AlarmThresholdSetting.Disabled; [DataField("lowerWarnAround")] - public readonly AlarmThresholdSetting LowerWarningPercentage = AlarmThresholdSetting.Disabled; + public AlarmThresholdSetting LowerWarningPercentage = AlarmThresholdSetting.Disabled; } [Serializable, NetSerializable, DataDefinition] -public sealed class AtmosAlarmThreshold +public sealed partial class AtmosAlarmThreshold { [DataField("ignore")] public bool Ignore; @@ -256,7 +256,7 @@ public sealed class AtmosAlarmThreshold } [DataDefinition, Serializable] -public readonly struct AlarmThresholdSetting +public readonly partial struct AlarmThresholdSetting { [DataField("enabled")] public bool Enabled { get; init; } = true; diff --git a/Content.Shared/Atmos/Prototypes/GasPrototype.cs b/Content.Shared/Atmos/Prototypes/GasPrototype.cs index 39a041a3b5..75416db3f9 100644 --- a/Content.Shared/Atmos/Prototypes/GasPrototype.cs +++ b/Content.Shared/Atmos/Prototypes/GasPrototype.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Atmos.Prototypes [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Specific heat for gas. @@ -39,7 +39,7 @@ namespace Content.Shared.Atmos.Prototypes /// Minimum amount of moles for this gas to be visible. /// [DataField("gasMolesVisible")] - public float GasMolesVisible { get; } = 0.25f; + public float GasMolesVisible { get; private set; } = 0.25f; /// /// Visibility for this gas will be max after this value. @@ -53,7 +53,7 @@ namespace Content.Shared.Atmos.Prototypes /// If this reagent is in gas form, this is the path to the overlay that will be used to make the gas visible. /// [DataField("gasOverlayTexture")] - public string GasOverlayTexture { get; } = string.Empty; + public string GasOverlayTexture { get; private set; } = string.Empty; /// /// If this reagent is in gas form, this will be the path to the RSI sprite that will be used to make the gas visible. @@ -71,15 +71,15 @@ namespace Content.Shared.Atmos.Prototypes /// Path to the tile overlay used when this gas appears visible. /// [DataField("overlayPath")] - public string OverlayPath { get; } = string.Empty; + public string OverlayPath { get; private set; } = string.Empty; /// /// The reagent that this gas will turn into when inhaled. /// [DataField("reagent", customTypeSerializer:typeof(PrototypeIdSerializer))] - public string? Reagent { get; } = default!; + public string? Reagent { get; private set; } = default!; - [DataField("color")] public string Color { get; } = string.Empty; + [DataField("color")] public string Color { get; private set; } = string.Empty; [DataField("pricePerMole")] public float PricePerMole { get; set; } = 0; diff --git a/Content.Shared/Audio/AmbientSoundComponent.cs b/Content.Shared/Audio/AmbientSoundComponent.cs index db13db2e6f..8075c0bd4b 100644 --- a/Content.Shared/Audio/AmbientSoundComponent.cs +++ b/Content.Shared/Audio/AmbientSoundComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Audio; [RegisterComponent] [NetworkedComponent] [Access(typeof(SharedAmbientSoundSystem))] -public sealed class AmbientSoundComponent : Component, IComponentTreeEntry +public sealed partial class AmbientSoundComponent : Component, IComponentTreeEntry { [DataField("enabled")] [ViewVariables(VVAccess.ReadWrite)] // only for map editing diff --git a/Content.Shared/BarSign/BarSignComponent.cs b/Content.Shared/BarSign/BarSignComponent.cs index 2800f3c361..182597ba2e 100644 --- a/Content.Shared/BarSign/BarSignComponent.cs +++ b/Content.Shared/BarSign/BarSignComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.BarSign { [RegisterComponent, NetworkedComponent] - public sealed class BarSignComponent : Component + public sealed partial class BarSignComponent : Component { [DataField("current", customTypeSerializer:typeof(PrototypeIdSerializer))] public string? CurrentSign; diff --git a/Content.Shared/BarSign/BarSignPrototype.cs b/Content.Shared/BarSign/BarSignPrototype.cs index 66a6e8fa18..6b8fec1275 100644 --- a/Content.Shared/BarSign/BarSignPrototype.cs +++ b/Content.Shared/BarSign/BarSignPrototype.cs @@ -7,7 +7,7 @@ namespace Content.Shared.BarSign { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("icon")] public string Icon { get; private set; } = string.Empty; diff --git a/Content.Shared/Beam/Components/SharedBeamComponent.cs b/Content.Shared/Beam/Components/SharedBeamComponent.cs index a903604b15..7cd5da1610 100644 --- a/Content.Shared/Beam/Components/SharedBeamComponent.cs +++ b/Content.Shared/Beam/Components/SharedBeamComponent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Beam.Components; /// /// Use this as a generic beam. Not for something like a laser gun, more for something continuous like lightning. /// -public abstract class SharedBeamComponent : Component +public abstract partial class SharedBeamComponent : Component { /// /// A unique list of targets that this beam collided with. diff --git a/Content.Shared/Bed/Sleep/ForcedSleepingComponent.cs b/Content.Shared/Bed/Sleep/ForcedSleepingComponent.cs index ca0e632210..197e8cc56a 100644 --- a/Content.Shared/Bed/Sleep/ForcedSleepingComponent.cs +++ b/Content.Shared/Bed/Sleep/ForcedSleepingComponent.cs @@ -6,6 +6,6 @@ namespace Content.Shared.Bed.Sleep /// Prevents waking up. Use as a status effect. /// [NetworkedComponent, RegisterComponent] - public sealed class ForcedSleepingComponent : Component + public sealed partial class ForcedSleepingComponent : Component {} } diff --git a/Content.Shared/Bed/Sleep/SharedSleepingSystem.cs b/Content.Shared/Bed/Sleep/SharedSleepingSystem.cs index 458a69b621..2ecd6c601c 100644 --- a/Content.Shared/Bed/Sleep/SharedSleepingSystem.cs +++ b/Content.Shared/Bed/Sleep/SharedSleepingSystem.cs @@ -53,9 +53,9 @@ namespace Content.Server.Bed.Sleep } -public sealed class SleepActionEvent : InstantActionEvent {} +public sealed partial class SleepActionEvent : InstantActionEvent {} -public sealed class WakeActionEvent : InstantActionEvent {} +public sealed partial class WakeActionEvent : InstantActionEvent {} /// /// Raised on an entity when they fall asleep or wake up. diff --git a/Content.Shared/Bed/Sleep/SleepEmitSoundComponent.cs b/Content.Shared/Bed/Sleep/SleepEmitSoundComponent.cs index b48d3b239c..e1918eac26 100644 --- a/Content.Shared/Bed/Sleep/SleepEmitSoundComponent.cs +++ b/Content.Shared/Bed/Sleep/SleepEmitSoundComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Audio; namespace Content.Shared.Bed.Sleep; [RegisterComponent] -public sealed class SleepEmitSoundComponent : Component +public sealed partial class SleepEmitSoundComponent : Component { /// /// Sound to play when sleeping diff --git a/Content.Shared/Bed/Sleep/SleepingComponent.cs b/Content.Shared/Bed/Sleep/SleepingComponent.cs index 4ea419c65a..e4100ff6da 100644 --- a/Content.Shared/Bed/Sleep/SleepingComponent.cs +++ b/Content.Shared/Bed/Sleep/SleepingComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Bed.Sleep; /// Added to entities when they go to sleep. /// [NetworkedComponent, RegisterComponent] -public sealed class SleepingComponent : Component +public sealed partial class SleepingComponent : Component { /// /// How much damage of any type it takes to wake this entity. diff --git a/Content.Shared/Blocking/Components/BlockingComponent.cs b/Content.Shared/Blocking/Components/BlockingComponent.cs index b9d2e33657..89f3a85de7 100644 --- a/Content.Shared/Blocking/Components/BlockingComponent.cs +++ b/Content.Shared/Blocking/Components/BlockingComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Blocking; /// This component goes on an item that you want to use to block /// [RegisterComponent] -public sealed class BlockingComponent : Component +public sealed partial class BlockingComponent : Component { /// /// The entity that's blocking diff --git a/Content.Shared/Blocking/Components/BlockingUserComponent.cs b/Content.Shared/Blocking/Components/BlockingUserComponent.cs index 7f71cefd43..129741478c 100644 --- a/Content.Shared/Blocking/Components/BlockingUserComponent.cs +++ b/Content.Shared/Blocking/Components/BlockingUserComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Blocking; /// This component gets dynamically added to an Entity via the /// [RegisterComponent] -public sealed class BlockingUserComponent : Component +public sealed partial class BlockingUserComponent : Component { /// /// The entity that's being used to block diff --git a/Content.Shared/Body/Components/BodyComponent.cs b/Content.Shared/Body/Components/BodyComponent.cs index 312f37f251..84027d2c37 100644 --- a/Content.Shared/Body/Components/BodyComponent.cs +++ b/Content.Shared/Body/Components/BodyComponent.cs @@ -9,10 +9,10 @@ namespace Content.Shared.Body.Components; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedBodySystem))] -public sealed class BodyComponent : Component +public sealed partial class BodyComponent : Component { [DataField("prototype", customTypeSerializer: typeof(PrototypeIdSerializer))] - public readonly string? Prototype; + public string? Prototype; [DataField("root")] public BodyPartSlot? Root; diff --git a/Content.Shared/Body/Organ/OrganComponent.cs b/Content.Shared/Body/Organ/OrganComponent.cs index ac676e9980..e48d6da300 100644 --- a/Content.Shared/Body/Organ/OrganComponent.cs +++ b/Content.Shared/Body/Organ/OrganComponent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Body.Organ; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedBodySystem))] -public sealed class OrganComponent : Component +public sealed partial class OrganComponent : Component { [DataField("body")] public EntityUid? Body; diff --git a/Content.Shared/Body/Part/BodyPartComponent.cs b/Content.Shared/Body/Part/BodyPartComponent.cs index 6e06b1dc0d..dd200c491a 100644 --- a/Content.Shared/Body/Part/BodyPartComponent.cs +++ b/Content.Shared/Body/Part/BodyPartComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Body.Part; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedBodySystem))] -public sealed class BodyPartComponent : Component +public sealed partial class BodyPartComponent : Component { [DataField("body")] public EntityUid? Body; diff --git a/Content.Shared/Body/Prototypes/BodyPrototype.cs b/Content.Shared/Body/Prototypes/BodyPrototype.cs index 05defb3f6e..e3a8d01ce0 100644 --- a/Content.Shared/Body/Prototypes/BodyPrototype.cs +++ b/Content.Shared/Body/Prototypes/BodyPrototype.cs @@ -11,9 +11,9 @@ public sealed class BodyPrototype : IPrototype [DataField("name")] public string Name { get; private set; } = ""; - [DataField("root")] public string Root { get; } = string.Empty; + [DataField("root")] public string Root { get; private set; } = string.Empty; - [DataField("slots")] public Dictionary Slots { get; } = new(); + [DataField("slots")] public Dictionary Slots { get; private set; } = new(); private BodyPrototype() { } @@ -30,7 +30,7 @@ public sealed class BodyPrototype : IPrototype public sealed record BodyPrototypeSlot { [DataField("part", customTypeSerializer: typeof(PrototypeIdSerializer))] - public readonly string? Part; + public string? Part; public readonly HashSet Connections = new(); public readonly Dictionary Organs = new(); diff --git a/Content.Shared/Body/Prototypes/MetabolismGroupPrototype.cs b/Content.Shared/Body/Prototypes/MetabolismGroupPrototype.cs index bf8cf4f2d4..2bf2c5110e 100644 --- a/Content.Shared/Body/Prototypes/MetabolismGroupPrototype.cs +++ b/Content.Shared/Body/Prototypes/MetabolismGroupPrototype.cs @@ -6,6 +6,6 @@ namespace Content.Shared.Body.Prototypes public sealed class MetabolismGroupPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; } } diff --git a/Content.Shared/Body/Prototypes/MetabolizerTypePrototype.cs b/Content.Shared/Body/Prototypes/MetabolizerTypePrototype.cs index e5eee21185..4add9738f3 100644 --- a/Content.Shared/Body/Prototypes/MetabolizerTypePrototype.cs +++ b/Content.Shared/Body/Prototypes/MetabolizerTypePrototype.cs @@ -6,9 +6,9 @@ namespace Content.Shared.Body.Prototypes public sealed class MetabolizerTypePrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("name", required: true)] - public string Name { get; } = default!; + public string Name { get; private set; } = default!; } } diff --git a/Content.Shared/Buckle/Components/BuckleComponent.cs b/Content.Shared/Buckle/Components/BuckleComponent.cs index 59fab36285..f477f646e2 100644 --- a/Content.Shared/Buckle/Components/BuckleComponent.cs +++ b/Content.Shared/Buckle/Components/BuckleComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Buckle.Components; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedBuckleSystem))] -public sealed class BuckleComponent : Component +public sealed partial class BuckleComponent : Component { /// /// The range from which this entity can buckle to a . diff --git a/Content.Shared/Buckle/Components/StrapComponent.cs b/Content.Shared/Buckle/Components/StrapComponent.cs index 6a0b27650c..3ffbe86c3b 100644 --- a/Content.Shared/Buckle/Components/StrapComponent.cs +++ b/Content.Shared/Buckle/Components/StrapComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Buckle.Components; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedBuckleSystem), typeof(SharedVehicleSystem))] -public sealed class StrapComponent : Component +public sealed partial class StrapComponent : Component { /// /// The entities that are currently buckled diff --git a/Content.Shared/Cabinet/ItemCabinetComponent.cs b/Content.Shared/Cabinet/ItemCabinetComponent.cs index adb5f6d26d..4f49badfa9 100644 --- a/Content.Shared/Cabinet/ItemCabinetComponent.cs +++ b/Content.Shared/Cabinet/ItemCabinetComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Cabinet; /// Used for entities that can be opened, closed, and can hold one item. E.g., fire extinguisher cabinets. /// [RegisterComponent, NetworkedComponent] -public sealed class ItemCabinetComponent : Component +public sealed partial class ItemCabinetComponent : Component { /// /// Sound to be played when the cabinet door is opened. diff --git a/Content.Shared/Camera/CameraRecoilComponent.cs b/Content.Shared/Camera/CameraRecoilComponent.cs index 3784b8b633..5d615f87be 100644 --- a/Content.Shared/Camera/CameraRecoilComponent.cs +++ b/Content.Shared/Camera/CameraRecoilComponent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Camera; [RegisterComponent] [NetworkedComponent] -public sealed class CameraRecoilComponent : Component +public sealed partial class CameraRecoilComponent : Component { public Vector2 CurrentKick { get; set; } public float LastKickTime { get; set; } diff --git a/Content.Shared/CardboardBox/Components/CardboardBoxComponent.cs b/Content.Shared/CardboardBox/Components/CardboardBoxComponent.cs index 0da44dab3c..fb663af720 100644 --- a/Content.Shared/CardboardBox/Components/CardboardBoxComponent.cs +++ b/Content.Shared/CardboardBox/Components/CardboardBoxComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.CardboardBox.Components; /// Used for big cardboard box entities. /// [RegisterComponent, NetworkedComponent] -public sealed class CardboardBoxComponent : Component +public sealed partial class CardboardBoxComponent : Component { /// /// The person in control of this box @@ -55,7 +55,7 @@ public sealed class CardboardBoxComponent : Component /// Time between sound effects. Prevents effect spam /// [DataField("cooldownDuration")] - public readonly TimeSpan CooldownDuration = TimeSpan.FromSeconds(5f); + public TimeSpan CooldownDuration = TimeSpan.FromSeconds(5f); } [Serializable, NetSerializable] diff --git a/Content.Shared/Cargo/CargoBountyData.cs b/Content.Shared/Cargo/CargoBountyData.cs index fb1d953d12..275d27ea67 100644 --- a/Content.Shared/Cargo/CargoBountyData.cs +++ b/Content.Shared/Cargo/CargoBountyData.cs @@ -9,26 +9,26 @@ namespace Content.Shared.Cargo; /// A data structure for storing currently available bounties. /// [DataDefinition, NetSerializable, Serializable] -public readonly record struct CargoBountyData(int Id, string Bounty, TimeSpan EndTime) +public readonly partial record struct CargoBountyData(int Id, string Bounty, TimeSpan EndTime) { /// /// A numeric id used to identify the bounty /// [DataField("id"), ViewVariables(VVAccess.ReadWrite)] - public readonly int Id = Id; + public int Id { get; init; } = Id; /// /// The prototype containing information about the bounty. /// [ViewVariables(VVAccess.ReadWrite)] [DataField("bounty", customTypeSerializer: typeof(PrototypeIdSerializer), required:true)] - public readonly string Bounty = Bounty; + public string Bounty { get; init; } = Bounty; /// /// The time at which the bounty is closed and no longer is available. /// [DataField("endTime", customTypeSerializer: typeof(TimeOffsetSerializer))] - public readonly TimeSpan EndTime = EndTime; + public TimeSpan EndTime { get; init; } = EndTime; public CargoBountyData() : this(default, string.Empty, default) { diff --git a/Content.Shared/Cargo/Components/CargoBountyConsoleComponent.cs b/Content.Shared/Cargo/Components/CargoBountyConsoleComponent.cs index e547fa59de..6ea07acc9d 100644 --- a/Content.Shared/Cargo/Components/CargoBountyConsoleComponent.cs +++ b/Content.Shared/Cargo/Components/CargoBountyConsoleComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Cargo.Components; [RegisterComponent] -public sealed class CargoBountyConsoleComponent : Component +public sealed partial class CargoBountyConsoleComponent : Component { /// /// The id of the label entity spawned by the print label button. diff --git a/Content.Shared/Cargo/Components/CargoShuttleComponent.cs b/Content.Shared/Cargo/Components/CargoShuttleComponent.cs index 6e1ed3c9f1..eaa78ce8d3 100644 --- a/Content.Shared/Cargo/Components/CargoShuttleComponent.cs +++ b/Content.Shared/Cargo/Components/CargoShuttleComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Cargo.Components; /// Present on cargo shuttles to provide metadata such as preventing spam calling. /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedCargoSystem))] -public sealed class CargoShuttleComponent : Component +public sealed partial class CargoShuttleComponent : Component { /// /// The paper-type prototype to spawn with the order information. diff --git a/Content.Shared/Cargo/Components/SharedCargoTelepadComponent.cs b/Content.Shared/Cargo/Components/SharedCargoTelepadComponent.cs index 50e38b95b6..911066207c 100644 --- a/Content.Shared/Cargo/Components/SharedCargoTelepadComponent.cs +++ b/Content.Shared/Cargo/Components/SharedCargoTelepadComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Cargo.Components; /// Handles teleporting in requested cargo after the specified delay. /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedCargoSystem))] -public sealed class CargoTelepadComponent : Component +public sealed partial class CargoTelepadComponent : Component { /// /// The base amount of time it takes to teleport from the telepad diff --git a/Content.Shared/Cargo/Prototypes/CargoBountyPrototype.cs b/Content.Shared/Cargo/Prototypes/CargoBountyPrototype.cs index 4f048004dd..e9c64ec990 100644 --- a/Content.Shared/Cargo/Prototypes/CargoBountyPrototype.cs +++ b/Content.Shared/Cargo/Prototypes/CargoBountyPrototype.cs @@ -14,35 +14,35 @@ public sealed class CargoBountyPrototype : IPrototype { /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// The monetary reward for completing the bounty /// [DataField("reward", required: true)] - public readonly int Reward; + public int Reward; /// /// A description for flava purposes. /// [DataField("description")] - public readonly string Description = string.Empty; + public string Description = string.Empty; /// /// The entries that must be satisfied for the cargo bounty to be complete. /// [DataField("entries", required: true)] - public readonly List Entries = new(); + public List Entries = new(); } [DataDefinition, Serializable, NetSerializable] -public readonly record struct CargoBountyItemEntry() +public readonly partial record struct CargoBountyItemEntry() { /// /// A whitelist for determining what items satisfy the entry. /// [DataField("whitelist", required: true)] - public readonly EntityWhitelist Whitelist = default!; + public EntityWhitelist Whitelist { get; init; } = default!; // todo: implement some kind of simple generic condition system @@ -50,11 +50,11 @@ public readonly record struct CargoBountyItemEntry() /// How much of the item must be present to satisfy the entry /// [DataField("amount")] - public readonly int Amount = 1; + public int Amount { get; init; } = 1; /// /// A player-facing name for the item. /// [DataField("name")] - public readonly string Name = string.Empty; + public string Name { get; init; } = string.Empty; } diff --git a/Content.Shared/Cargo/Prototypes/CargoProductPrototype.cs b/Content.Shared/Cargo/Prototypes/CargoProductPrototype.cs index a08fc00eb5..a2dc9b516d 100644 --- a/Content.Shared/Cargo/Prototypes/CargoProductPrototype.cs +++ b/Content.Shared/Cargo/Prototypes/CargoProductPrototype.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Cargo.Prototypes [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Product name. @@ -60,30 +60,30 @@ namespace Content.Shared.Cargo.Prototypes /// Texture path used in the CargoConsole GUI. /// [DataField("icon")] - public SpriteSpecifier Icon { get; } = SpriteSpecifier.Invalid; + public SpriteSpecifier Icon { get; private set; } = SpriteSpecifier.Invalid; /// /// The prototype name of the product. /// [DataField("product", customTypeSerializer: typeof(PrototypeIdSerializer))] - public string Product { get; } = string.Empty; + public string Product { get; private set; } = string.Empty; /// /// The point cost of the product. /// [DataField("cost")] - public int PointCost { get; } + public int PointCost { get; private set; } /// /// The prototype category of the product. (e.g. Engineering, Medical) /// [DataField("category")] - public string Category { get; } = string.Empty; + public string Category { get; private set; } = string.Empty; /// /// The prototype group of the product. (e.g. Contraband) /// [DataField("group")] - public string Group { get; } = string.Empty; + public string Group { get; private set; } = string.Empty; } } diff --git a/Content.Shared/CartridgeLoader/CartridgeComponent.cs b/Content.Shared/CartridgeLoader/CartridgeComponent.cs index ab41fb84e7..775cc33d81 100644 --- a/Content.Shared/CartridgeLoader/CartridgeComponent.cs +++ b/Content.Shared/CartridgeLoader/CartridgeComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.CartridgeLoader; /// [NetworkedComponent] [RegisterComponent] -public sealed class CartridgeComponent : Component +public sealed partial class CartridgeComponent : Component { [DataField("programName", required: true)] public string ProgramName = "default-program-name"; diff --git a/Content.Shared/CartridgeLoader/CartridgeLoaderComponent.cs b/Content.Shared/CartridgeLoader/CartridgeLoaderComponent.cs index 2822c76b28..9acbc0cfc5 100644 --- a/Content.Shared/CartridgeLoader/CartridgeLoaderComponent.cs +++ b/Content.Shared/CartridgeLoader/CartridgeLoaderComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations; namespace Content.Shared.CartridgeLoader; [RegisterComponent, NetworkedComponent] -public sealed class CartridgeLoaderComponent : Component +public sealed partial class CartridgeLoaderComponent : Component { public const string CartridgeSlotId = "Cartridge-Slot"; diff --git a/Content.Shared/Chasm/ChasmComponent.cs b/Content.Shared/Chasm/ChasmComponent.cs index 6a36653129..95edac4cfd 100644 --- a/Content.Shared/Chasm/ChasmComponent.cs +++ b/Content.Shared/Chasm/ChasmComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Chasm; /// Marks a component that will cause entities to fall into them on a step trigger activation /// [NetworkedComponent, RegisterComponent, Access(typeof(ChasmSystem))] -public sealed class ChasmComponent : Component +public sealed partial class ChasmComponent : Component { /// /// Sound that should be played when an entity falls into the chasm diff --git a/Content.Shared/Chasm/ChasmFallingComponent.cs b/Content.Shared/Chasm/ChasmFallingComponent.cs index 726c561ab9..69b1c8e308 100644 --- a/Content.Shared/Chasm/ChasmFallingComponent.cs +++ b/Content.Shared/Chasm/ChasmFallingComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Chasm; /// Added to entities which have started falling into a chasm. /// [RegisterComponent, NetworkedComponent] -public sealed class ChasmFallingComponent : Component +public sealed partial class ChasmFallingComponent : Component { /// /// Time it should take for the falling animation (scaling down) to complete. diff --git a/Content.Shared/Chat/Prototypes/AutoEmotePrototype.cs b/Content.Shared/Chat/Prototypes/AutoEmotePrototype.cs index 99f3845fcb..bfa98fa243 100644 --- a/Content.Shared/Chat/Prototypes/AutoEmotePrototype.cs +++ b/Content.Shared/Chat/Prototypes/AutoEmotePrototype.cs @@ -8,7 +8,7 @@ public sealed class AutoEmotePrototype : IPrototype { /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// The ID of the emote prototype. diff --git a/Content.Shared/Chat/Prototypes/EmotePrototype.cs b/Content.Shared/Chat/Prototypes/EmotePrototype.cs index edd80f1a9a..d9d6a63441 100644 --- a/Content.Shared/Chat/Prototypes/EmotePrototype.cs +++ b/Content.Shared/Chat/Prototypes/EmotePrototype.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Chat.Prototypes; public sealed class EmotePrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Different emote categories may be handled by different systems. diff --git a/Content.Shared/Chat/Prototypes/EmoteSoundsPrototype.cs b/Content.Shared/Chat/Prototypes/EmoteSoundsPrototype.cs index 76f3459504..769bc7b205 100644 --- a/Content.Shared/Chat/Prototypes/EmoteSoundsPrototype.cs +++ b/Content.Shared/Chat/Prototypes/EmoteSoundsPrototype.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Chat.Prototypes; public sealed class EmoteSoundsPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Optional fallback sound that will play if collection diff --git a/Content.Shared/Chat/TypingIndicator/TypingIndicatorClothingComponent.cs b/Content.Shared/Chat/TypingIndicator/TypingIndicatorClothingComponent.cs index 1bffa2a89a..5ec8185587 100644 --- a/Content.Shared/Chat/TypingIndicator/TypingIndicatorClothingComponent.cs +++ b/Content.Shared/Chat/TypingIndicator/TypingIndicatorClothingComponent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Chat.TypingIndicator; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedTypingIndicatorSystem))] -public sealed class TypingIndicatorClothingComponent : Component +public sealed partial class TypingIndicatorClothingComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("proto", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] diff --git a/Content.Shared/Chat/TypingIndicator/TypingIndicatorComponent.cs b/Content.Shared/Chat/TypingIndicator/TypingIndicatorComponent.cs index 24da9f2185..a4507b06b8 100644 --- a/Content.Shared/Chat/TypingIndicator/TypingIndicatorComponent.cs +++ b/Content.Shared/Chat/TypingIndicator/TypingIndicatorComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Chat.TypingIndicator; /// [RegisterComponent, NetworkedComponent] [Access(typeof(SharedTypingIndicatorSystem))] -public sealed class TypingIndicatorComponent : Component +public sealed partial class TypingIndicatorComponent : Component { /// /// Prototype id that store all visual info about typing indicator. diff --git a/Content.Shared/Chat/TypingIndicator/TypingIndicatorPrototype.cs b/Content.Shared/Chat/TypingIndicator/TypingIndicatorPrototype.cs index dae694e43d..2cd114fde7 100644 --- a/Content.Shared/Chat/TypingIndicator/TypingIndicatorPrototype.cs +++ b/Content.Shared/Chat/TypingIndicator/TypingIndicatorPrototype.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Chat.TypingIndicator; public sealed class TypingIndicatorPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("spritePath")] public ResPath SpritePath = new("/Textures/Effects/speech.rsi"); diff --git a/Content.Shared/Chemistry/Components/DrainableSolutionComponent.cs b/Content.Shared/Chemistry/Components/DrainableSolutionComponent.cs index 2a69a88088..4cdff566f6 100644 --- a/Content.Shared/Chemistry/Components/DrainableSolutionComponent.cs +++ b/Content.Shared/Chemistry/Components/DrainableSolutionComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Chemistry.Components; /// Think pouring this or draining from a water tank. /// [RegisterComponent, NetworkedComponent] -public sealed class DrainableSolutionComponent : Component +public sealed partial class DrainableSolutionComponent : Component { /// /// Solution name that can be drained. diff --git a/Content.Shared/Chemistry/Components/FitsInDispenserComponent.cs b/Content.Shared/Chemistry/Components/FitsInDispenserComponent.cs index 38e3f00d07..a479dcdbe8 100644 --- a/Content.Shared/Chemistry/Components/FitsInDispenserComponent.cs +++ b/Content.Shared/Chemistry/Components/FitsInDispenserComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Chemistry.Components /// [RegisterComponent] [NetworkedComponent] // only needed for white-lists. Client doesn't actually need Solution data; - public sealed class FitsInDispenserComponent : Component + public sealed partial class FitsInDispenserComponent : Component { /// /// Solution name that will interact with ReagentDispenserComponent. diff --git a/Content.Shared/Chemistry/Components/MovespeedModifierMetabolismComponent.cs b/Content.Shared/Chemistry/Components/MovespeedModifierMetabolismComponent.cs index afdc55f0d5..f0a0c22ba5 100644 --- a/Content.Shared/Chemistry/Components/MovespeedModifierMetabolismComponent.cs +++ b/Content.Shared/Chemistry/Components/MovespeedModifierMetabolismComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Chemistry.Components //TODO: refactor movement modifier component because this is a pretty poor solution [RegisterComponent] [NetworkedComponent] - public sealed class MovespeedModifierMetabolismComponent : Component + public sealed partial class MovespeedModifierMetabolismComponent : Component { [ViewVariables] public float WalkSpeedModifier { get; set; } diff --git a/Content.Shared/Chemistry/Components/RefillableSolutionComponent.cs b/Content.Shared/Chemistry/Components/RefillableSolutionComponent.cs index 49f2edbf7b..cb5ab7679d 100644 --- a/Content.Shared/Chemistry/Components/RefillableSolutionComponent.cs +++ b/Content.Shared/Chemistry/Components/RefillableSolutionComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Chemistry.Components; /// tank of a car. /// [RegisterComponent, NetworkedComponent] -public sealed class RefillableSolutionComponent : Component +public sealed partial class RefillableSolutionComponent : Component { /// /// Solution name that can added to easily. diff --git a/Content.Shared/Chemistry/Components/SharedHyposprayComponent.cs b/Content.Shared/Chemistry/Components/SharedHyposprayComponent.cs index f93dc0748b..a8df6be109 100644 --- a/Content.Shared/Chemistry/Components/SharedHyposprayComponent.cs +++ b/Content.Shared/Chemistry/Components/SharedHyposprayComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Chemistry.Components; [NetworkedComponent()] -public abstract class SharedHyposprayComponent : Component +public abstract partial class SharedHyposprayComponent : Component { [DataField("solutionName")] public string SolutionName = "hypospray"; diff --git a/Content.Shared/Chemistry/Components/SharedInjectorComponent.cs b/Content.Shared/Chemistry/Components/SharedInjectorComponent.cs index 3c1e2e2e56..a4cea4e7c4 100644 --- a/Content.Shared/Chemistry/Components/SharedInjectorComponent.cs +++ b/Content.Shared/Chemistry/Components/SharedInjectorComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Chemistry.Components { [Serializable, NetSerializable] - public sealed class InjectorDoAfterEvent : SimpleDoAfterEvent + public sealed partial class InjectorDoAfterEvent : SimpleDoAfterEvent { } @@ -14,7 +14,7 @@ namespace Content.Shared.Chemistry.Components /// Shared class for injectors & syringes /// [NetworkedComponent, ComponentProtoName("Injector")] - public abstract class SharedInjectorComponent : Component + public abstract partial class SharedInjectorComponent : Component { /// /// Component data used for net updates. Used by client for item status ui diff --git a/Content.Shared/Chemistry/Components/Solution.cs b/Content.Shared/Chemistry/Components/Solution.cs index 629acca6c9..ff53a4bebd 100644 --- a/Content.Shared/Chemistry/Components/Solution.cs +++ b/Content.Shared/Chemistry/Components/Solution.cs @@ -674,12 +674,12 @@ namespace Content.Shared.Chemistry.Components [Serializable, NetSerializable] [DataDefinition] - public readonly struct ReagentQuantity: IComparable + public readonly partial struct ReagentQuantity: IComparable { [DataField("ReagentId", customTypeSerializer:typeof(PrototypeIdSerializer), required:true)] - public readonly string ReagentId; + public string ReagentId { get; init; } [DataField("Quantity", required:true)] - public readonly FixedPoint2 Quantity; + public FixedPoint2 Quantity { get; init; } public ReagentQuantity(string reagentId, FixedPoint2 quantity) { diff --git a/Content.Shared/Chemistry/Components/SolutionScannerComponent.cs b/Content.Shared/Chemistry/Components/SolutionScannerComponent.cs index 12f9ebdc6d..a342cde2dd 100644 --- a/Content.Shared/Chemistry/Components/SolutionScannerComponent.cs +++ b/Content.Shared/Chemistry/Components/SolutionScannerComponent.cs @@ -1,7 +1,7 @@ namespace Content.Shared.Chemistry.Components; [RegisterComponent] -public sealed class SolutionScannerComponent : Component +public sealed partial class SolutionScannerComponent : Component { } diff --git a/Content.Shared/Chemistry/Components/SolutionTransferComponent.cs b/Content.Shared/Chemistry/Components/SolutionTransferComponent.cs index 826810dcd7..b130304afc 100644 --- a/Content.Shared/Chemistry/Components/SolutionTransferComponent.cs +++ b/Content.Shared/Chemistry/Components/SolutionTransferComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Chemistry.Components; /// Gives click behavior for transferring to/from other reagent containers. /// [RegisterComponent, NetworkedComponent] -public sealed class SolutionTransferComponent : Component +public sealed partial class SolutionTransferComponent : Component { /// /// The amount of solution to be transferred from this solution when clicking on other solutions with it. diff --git a/Content.Shared/Chemistry/Dispenser/ReagentDispenserInventoryPrototype.cs b/Content.Shared/Chemistry/Dispenser/ReagentDispenserInventoryPrototype.cs index 15fd6a2520..c308e46da5 100644 --- a/Content.Shared/Chemistry/Dispenser/ReagentDispenserInventoryPrototype.cs +++ b/Content.Shared/Chemistry/Dispenser/ReagentDispenserInventoryPrototype.cs @@ -19,7 +19,7 @@ namespace Content.Shared.Chemistry.Dispenser [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; public List Inventory => _inventory; } diff --git a/Content.Shared/Chemistry/Reaction/ReactionMixerComponent.cs b/Content.Shared/Chemistry/Reaction/ReactionMixerComponent.cs index 55d19e353b..849fffcf5e 100644 --- a/Content.Shared/Chemistry/Reaction/ReactionMixerComponent.cs +++ b/Content.Shared/Chemistry/Reaction/ReactionMixerComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Chemistry.Components; namespace Content.Shared.Chemistry.Reaction; [RegisterComponent] -public sealed class ReactionMixerComponent : Component +public sealed partial class ReactionMixerComponent : Component { /// /// A list of IDs for categories of reactions that can be mixed (i.e. HOLY for a bible, DRINK for a spoon) diff --git a/Content.Shared/Chemistry/Reaction/ReactionPrototype.cs b/Content.Shared/Chemistry/Reaction/ReactionPrototype.cs index ac561ccbdf..2ad0ff5e1d 100644 --- a/Content.Shared/Chemistry/Reaction/ReactionPrototype.cs +++ b/Content.Shared/Chemistry/Reaction/ReactionPrototype.cs @@ -15,10 +15,10 @@ namespace Content.Shared.Chemistry.Reaction { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("name")] - public string Name { get; } = string.Empty; + public string Name { get; private set; } = string.Empty; /// /// Reactants required for the reaction to occur. @@ -108,7 +108,7 @@ namespace Content.Shared.Chemistry.Reaction /// Prototype for chemical reaction reactants. /// [DataDefinition] - public sealed class ReactantPrototype + public sealed partial class ReactantPrototype { [DataField("amount")] private FixedPoint2 _amount = FixedPoint2.New(1); diff --git a/Content.Shared/Chemistry/Reaction/ReactiveComponent.cs b/Content.Shared/Chemistry/Reaction/ReactiveComponent.cs index 45df9a7d06..310129c6fc 100644 --- a/Content.Shared/Chemistry/Reaction/ReactiveComponent.cs +++ b/Content.Shared/Chemistry/Reaction/ReactiveComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Chemistry.Reaction; [RegisterComponent] -public sealed class ReactiveComponent : Component +public sealed partial class ReactiveComponent : Component { /// /// A dictionary of reactive groups -> methods that work on them. @@ -24,7 +24,7 @@ public sealed class ReactiveComponent : Component } [DataDefinition] -public sealed class ReactiveReagentEffectEntry +public sealed partial class ReactiveReagentEffectEntry { [DataField("methods")] public HashSet Methods = default!; @@ -37,5 +37,5 @@ public sealed class ReactiveReagentEffectEntry [DataField("groups", readOnly: true, serverOnly: true, customTypeSerializer:typeof(PrototypeIdDictionarySerializer, ReactiveGroupPrototype>))] - public Dictionary>? ReactiveGroups { get; } + public Dictionary>? ReactiveGroups { get; private set; } } diff --git a/Content.Shared/Chemistry/Reaction/ReactiveGroupPrototype.cs b/Content.Shared/Chemistry/Reaction/ReactiveGroupPrototype.cs index aeb2e06554..3293536815 100644 --- a/Content.Shared/Chemistry/Reaction/ReactiveGroupPrototype.cs +++ b/Content.Shared/Chemistry/Reaction/ReactiveGroupPrototype.cs @@ -6,5 +6,5 @@ namespace Content.Shared.Chemistry.Reaction; public sealed class ReactiveGroupPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; } diff --git a/Content.Shared/Chemistry/Reagent/ReagentEffect.cs b/Content.Shared/Chemistry/Reagent/ReagentEffect.cs index 1ece3afc13..5bcb21fedb 100644 --- a/Content.Shared/Chemistry/Reagent/ReagentEffect.cs +++ b/Content.Shared/Chemistry/Reagent/ReagentEffect.cs @@ -16,7 +16,7 @@ namespace Content.Shared.Chemistry.Reagent /// [ImplicitDataDefinitionForInheritors] [MeansImplicitUse] - public abstract class ReagentEffect + public abstract partial class ReagentEffect { [JsonPropertyName("id")] private protected string _id => this.GetType().Name; /// @@ -39,14 +39,14 @@ namespace Content.Shared.Chemistry.Reagent [JsonIgnore] [DataField("logImpact")] - public virtual LogImpact LogImpact { get; } = LogImpact.Low; + public virtual LogImpact LogImpact { get; private set; } = LogImpact.Low; /// /// Should this reagent effect log at all? /// [JsonIgnore] [DataField("shouldLog")] - public virtual bool ShouldLog { get; } = false; + public virtual bool ShouldLog { get; private set; } = false; public abstract void Effect(ReagentEffectArgs args); diff --git a/Content.Shared/Chemistry/Reagent/ReagentEffectCondition.cs b/Content.Shared/Chemistry/Reagent/ReagentEffectCondition.cs index 708fe24c70..a32b4fa8e3 100644 --- a/Content.Shared/Chemistry/Reagent/ReagentEffectCondition.cs +++ b/Content.Shared/Chemistry/Reagent/ReagentEffectCondition.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Chemistry.Reagent { [ImplicitDataDefinitionForInheritors] [MeansImplicitUse] - public abstract class ReagentEffectCondition + public abstract partial class ReagentEffectCondition { [JsonPropertyName("id")] private protected string _id => this.GetType().Name; diff --git a/Content.Shared/Chemistry/Reagent/ReagentPrototype.cs b/Content.Shared/Chemistry/Reagent/ReagentPrototype.cs index abf8fa8275..8d1af84edb 100644 --- a/Content.Shared/Chemistry/Reagent/ReagentPrototype.cs +++ b/Content.Shared/Chemistry/Reagent/ReagentPrototype.cs @@ -21,20 +21,20 @@ namespace Content.Shared.Chemistry.Reagent { [Prototype("reagent")] [DataDefinition] - public sealed class ReagentPrototype : IPrototype, IInheritingPrototype + public sealed partial class ReagentPrototype : IPrototype, IInheritingPrototype { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("name", required: true)] - private string Name { get; } = default!; + private string Name { get; set; } = default!; [ViewVariables(VVAccess.ReadOnly)] public string LocalizedName => Loc.GetString(Name); [DataField("group")] - public string Group { get; } = "Unknown"; + public string Group { get; private set; } = "Unknown"; [ParentDataFieldAttribute(typeof(AbstractPrototypeIdArraySerializer))] public string[]? Parents { get; private set; } @@ -44,13 +44,13 @@ namespace Content.Shared.Chemistry.Reagent public bool Abstract { get; private set; } [DataField("desc", required: true)] - private string Description { get; } = default!; + private string Description { get; set; } = default!; [ViewVariables(VVAccess.ReadOnly)] public string LocalizedDescription => Loc.GetString(Description); [DataField("physicalDesc", required: true)] - private string PhysicalDescription { get; } = default!; + private string PhysicalDescription { get; set; } = default!; [ViewVariables(VVAccess.ReadOnly)] public string LocalizedPhysicalDescription => Loc.GetString(PhysicalDescription); @@ -71,23 +71,23 @@ namespace Content.Shared.Chemistry.Reagent public FixedPoint2 FlavorMinimum = FixedPoint2.New(0.1f); [DataField("color")] - public Color SubstanceColor { get; } = Color.White; + public Color SubstanceColor { get; private set; } = Color.White; /// /// The specific heat of the reagent. /// How much energy it takes to heat one unit of this reagent by one Kelvin. /// [DataField("specificHeat")] - public float SpecificHeat { get; } = 1.0f; + public float SpecificHeat { get; private set; } = 1.0f; [DataField("boilingPoint")] - public float? BoilingPoint { get; } + public float? BoilingPoint { get; private set; } [DataField("meltingPoint")] - public float? MeltingPoint { get; } + public float? MeltingPoint { get; private set; } [DataField("metamorphicSprite")] - public SpriteSpecifier? MetamorphicSprite { get; } = null; + public SpriteSpecifier? MetamorphicSprite { get; private set; } = null; /// /// If this reagent is part of a puddle is it slippery. @@ -109,10 +109,10 @@ namespace Content.Shared.Chemistry.Reagent public Dictionary? ReactiveEffects = null; [DataField("tileReactions", serverOnly: true)] - public readonly List TileReactions = new(0); + public List TileReactions = new(0); [DataField("plantMetabolism", serverOnly: true)] - public readonly List PlantMetabolisms = new(0); + public List PlantMetabolisms = new(0); [DataField("pricePerUnit")] public float PricePerUnit; @@ -184,7 +184,7 @@ namespace Content.Shared.Chemistry.Reagent [DataDefinition] - public sealed class ReagentEffectsEntry + public sealed partial class ReagentEffectsEntry { /// /// Amount of reagent to metabolize, per metabolism cycle. @@ -226,7 +226,7 @@ namespace Content.Shared.Chemistry.Reagent } [DataDefinition] - public sealed class ReactiveReagentEffectEntry + public sealed partial class ReactiveReagentEffectEntry { [DataField("methods", required: true)] public HashSet Methods = default!; diff --git a/Content.Shared/Climbing/BonkSystem.cs b/Content.Shared/Climbing/BonkSystem.cs index 09bee2d7f8..25f3d7e33c 100644 --- a/Content.Shared/Climbing/BonkSystem.cs +++ b/Content.Shared/Climbing/BonkSystem.cs @@ -13,7 +13,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Climbing; -public sealed class BonkSystem : EntitySystem +public sealed partial class BonkSystem : EntitySystem { [Dependency] private readonly IConfigurationManager _cfg = default!; [Dependency] private readonly DamageableSystem _damageableSystem = default!; @@ -89,7 +89,7 @@ public sealed class BonkSystem : EntitySystem } [Serializable, NetSerializable] - private sealed class BonkDoAfterEvent : SimpleDoAfterEvent + private sealed partial class BonkDoAfterEvent : SimpleDoAfterEvent { } } diff --git a/Content.Shared/Climbing/BonkableComponent.cs b/Content.Shared/Climbing/BonkableComponent.cs index 7fccde5bc4..afffe1ff99 100644 --- a/Content.Shared/Climbing/BonkableComponent.cs +++ b/Content.Shared/Climbing/BonkableComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Climbing; /// upon DragDrop or Climb interactions. /// [RegisterComponent, NetworkedComponent, Access(typeof(BonkSystem))] -public sealed class BonkableComponent : Component +public sealed partial class BonkableComponent : Component { /// /// Chance of bonk triggering if the user is clumsy. diff --git a/Content.Shared/Climbing/ClimbableComponent.cs b/Content.Shared/Climbing/ClimbableComponent.cs index 60f2cad9b9..7ad289348a 100644 --- a/Content.Shared/Climbing/ClimbableComponent.cs +++ b/Content.Shared/Climbing/ClimbableComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Climbing { [RegisterComponent, NetworkedComponent] - public sealed class ClimbableComponent : Component + public sealed partial class ClimbableComponent : Component { /// /// The range from which this entity can be climbed. diff --git a/Content.Shared/Climbing/ClimbingComponent.cs b/Content.Shared/Climbing/ClimbingComponent.cs index bf9745ebd6..40e192d8ef 100644 --- a/Content.Shared/Climbing/ClimbingComponent.cs +++ b/Content.Shared/Climbing/ClimbingComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Climbing; [RegisterComponent, NetworkedComponent] -public sealed class ClimbingComponent : Component +public sealed partial class ClimbingComponent : Component { /// /// Whether the owner is climbing on a climbable entity. diff --git a/Content.Shared/Climbing/SharedClimbSystem.cs b/Content.Shared/Climbing/SharedClimbSystem.cs index 915b69392a..12b84bbb7e 100644 --- a/Content.Shared/Climbing/SharedClimbSystem.cs +++ b/Content.Shared/Climbing/SharedClimbSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Climbing; -public abstract class SharedClimbSystem : EntitySystem +public abstract partial class SharedClimbSystem : EntitySystem { public override void Initialize() { @@ -28,7 +28,7 @@ public abstract class SharedClimbSystem : EntitySystem } [Serializable, NetSerializable] - protected sealed class ClimbDoAfterEvent : SimpleDoAfterEvent + protected sealed partial class ClimbDoAfterEvent : SimpleDoAfterEvent { } } diff --git a/Content.Shared/Clothing/ClothingSpeedModifierComponent.cs b/Content.Shared/Clothing/ClothingSpeedModifierComponent.cs index 25f6e6dc15..c3c4baf19d 100644 --- a/Content.Shared/Clothing/ClothingSpeedModifierComponent.cs +++ b/Content.Shared/Clothing/ClothingSpeedModifierComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Clothing; [RegisterComponent, NetworkedComponent, Access(typeof(ClothingSpeedModifierSystem))] -public sealed class ClothingSpeedModifierComponent : Component +public sealed partial class ClothingSpeedModifierComponent : Component { [DataField("walkModifier", required: true)] [ViewVariables(VVAccess.ReadWrite)] public float WalkModifier = 1.0f; diff --git a/Content.Shared/Clothing/Components/AttachedClothingComponent.cs b/Content.Shared/Clothing/Components/AttachedClothingComponent.cs index 6008ad5aa6..2e3b965f97 100644 --- a/Content.Shared/Clothing/Components/AttachedClothingComponent.cs +++ b/Content.Shared/Clothing/Components/AttachedClothingComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Clothing.Components; /// [Access(typeof(ToggleableClothingSystem))] [RegisterComponent] -public sealed class AttachedClothingComponent : Component +public sealed partial class AttachedClothingComponent : Component { /// /// The Id of the piece of clothing that this entity belongs to. diff --git a/Content.Shared/Clothing/Components/ChameleonClothingComponent.cs b/Content.Shared/Clothing/Components/ChameleonClothingComponent.cs index 56f5d3646e..d2f2138670 100644 --- a/Content.Shared/Clothing/Components/ChameleonClothingComponent.cs +++ b/Content.Shared/Clothing/Components/ChameleonClothingComponent.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Clothing.Components; /// [RegisterComponent, NetworkedComponent] [Access(typeof(SharedChameleonClothingSystem))] -public sealed class ChameleonClothingComponent : Component +public sealed partial class ChameleonClothingComponent : Component { /// /// Filter possible chameleon options by their slot flag. diff --git a/Content.Shared/Clothing/Components/ClothingComponent.cs b/Content.Shared/Clothing/Components/ClothingComponent.cs index a748e2348e..321b06114a 100644 --- a/Content.Shared/Clothing/Components/ClothingComponent.cs +++ b/Content.Shared/Clothing/Components/ClothingComponent.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Clothing.Components; [NetworkedComponent] [RegisterComponent] [Access(typeof(ClothingSystem), typeof(InventorySystem))] -public sealed class ClothingComponent : Component +public sealed partial class ClothingComponent : Component { [DataField("clothingVisuals")] [Access(typeof(ClothingSystem), typeof(InventorySystem), Other = AccessPermissions.ReadExecute)] // TODO remove execute permissions. diff --git a/Content.Shared/Clothing/Components/LoadoutComponent.cs b/Content.Shared/Clothing/Components/LoadoutComponent.cs index a6d426a4b7..e4a02760d3 100644 --- a/Content.Shared/Clothing/Components/LoadoutComponent.cs +++ b/Content.Shared/Clothing/Components/LoadoutComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Clothing.Components; [RegisterComponent, NetworkedComponent] -public sealed class LoadoutComponent : Component +public sealed partial class LoadoutComponent : Component { /// /// A list of starting gears, of which one will be given. diff --git a/Content.Shared/Clothing/Components/ToggleableClothingComponent.cs b/Content.Shared/Clothing/Components/ToggleableClothingComponent.cs index fc584639e0..9dc31bc2c9 100644 --- a/Content.Shared/Clothing/Components/ToggleableClothingComponent.cs +++ b/Content.Shared/Clothing/Components/ToggleableClothingComponent.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Clothing.Components; /// [Access(typeof(ToggleableClothingSystem))] [RegisterComponent] -public sealed class ToggleableClothingComponent : Component +public sealed partial class ToggleableClothingComponent : Component { public const string DefaultClothingContainerId = "toggleable-clothing"; @@ -28,7 +28,7 @@ public sealed class ToggleableClothingComponent : Component /// Default clothing entity prototype to spawn into the clothing container. /// [DataField("clothingPrototype", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] - public readonly string ClothingPrototype = default!; + public string ClothingPrototype = default!; /// /// The inventory slot that the clothing is equipped to. diff --git a/Content.Shared/Clothing/EntitySystems/ToggleableClothingSystem.cs b/Content.Shared/Clothing/EntitySystems/ToggleableClothingSystem.cs index 8f863e6831..9201cf0797 100644 --- a/Content.Shared/Clothing/EntitySystems/ToggleableClothingSystem.cs +++ b/Content.Shared/Clothing/EntitySystems/ToggleableClothingSystem.cs @@ -308,11 +308,11 @@ public sealed class ToggleableClothingSystem : EntitySystem } } -public sealed class ToggleClothingEvent : InstantActionEvent +public sealed partial class ToggleClothingEvent : InstantActionEvent { } [Serializable, NetSerializable] -public sealed class ToggleClothingDoAfterEvent : SimpleDoAfterEvent +public sealed partial class ToggleClothingDoAfterEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/Clothing/SharedMagbootsSystem.cs b/Content.Shared/Clothing/SharedMagbootsSystem.cs index 12c0ddba4a..9a470f45b3 100644 --- a/Content.Shared/Clothing/SharedMagbootsSystem.cs +++ b/Content.Shared/Clothing/SharedMagbootsSystem.cs @@ -90,4 +90,4 @@ public abstract class SharedMagbootsSystem : EntitySystem } } -public sealed class ToggleMagbootsEvent : InstantActionEvent {} +public sealed partial class ToggleMagbootsEvent : InstantActionEvent {} diff --git a/Content.Shared/Cluwne/CluwneComponent.cs b/Content.Shared/Cluwne/CluwneComponent.cs index 0ddac352ac..c9f96d030b 100644 --- a/Content.Shared/Cluwne/CluwneComponent.cs +++ b/Content.Shared/Cluwne/CluwneComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Cluwne; [RegisterComponent] [NetworkedComponent] -public sealed class CluwneComponent : Component +public sealed partial class CluwneComponent : Component { /// /// timings for giggles and knocks. diff --git a/Content.Shared/CombatMode/CombatModeComponent.cs b/Content.Shared/CombatMode/CombatModeComponent.cs index a7ec35e3e4..5bff5b6cc3 100644 --- a/Content.Shared/CombatMode/CombatModeComponent.cs +++ b/Content.Shared/CombatMode/CombatModeComponent.cs @@ -14,7 +14,7 @@ namespace Content.Shared.CombatMode /// [RegisterComponent, NetworkedComponent] [Access(typeof(SharedCombatModeSystem))] - public sealed class CombatModeComponent : Component + public sealed partial class CombatModeComponent : Component { #region Disarm @@ -26,10 +26,10 @@ namespace Content.Shared.CombatMode public bool? CanDisarm; [DataField("disarmSuccessSound")] - public readonly SoundSpecifier DisarmSuccessSound = new SoundPathSpecifier("/Audio/Effects/thudswoosh.ogg"); + public SoundSpecifier DisarmSuccessSound = new SoundPathSpecifier("/Audio/Effects/thudswoosh.ogg"); [DataField("disarmFailChance")] - public readonly float BaseDisarmFailChance = 0.75f; + public float BaseDisarmFailChance = 0.75f; #endregion @@ -37,7 +37,7 @@ namespace Content.Shared.CombatMode private TargetingZone _activeZone; [DataField("combatToggleActionId", customTypeSerializer: typeof(PrototypeIdSerializer))] - public readonly string CombatToggleActionId = "CombatModeToggle"; + public string CombatToggleActionId = "CombatModeToggle"; [DataField("combatToggleAction")] public InstantAction? CombatToggleAction; diff --git a/Content.Shared/CombatMode/Events/TogglePrecisionModeEvent.cs b/Content.Shared/CombatMode/Events/TogglePrecisionModeEvent.cs index e0ac52cea1..42c8a03a58 100644 --- a/Content.Shared/CombatMode/Events/TogglePrecisionModeEvent.cs +++ b/Content.Shared/CombatMode/Events/TogglePrecisionModeEvent.cs @@ -2,6 +2,6 @@ using Content.Shared.Actions; namespace Content.Shared.CombatMode; -public sealed class TogglePrecisionModeEvent : InstantActionEvent +public sealed partial class TogglePrecisionModeEvent : InstantActionEvent { } diff --git a/Content.Shared/CombatMode/Pacification/PacifiedComponent.cs b/Content.Shared/CombatMode/Pacification/PacifiedComponent.cs index ad50b4bf1f..40ddc70002 100644 --- a/Content.Shared/CombatMode/Pacification/PacifiedComponent.cs +++ b/Content.Shared/CombatMode/Pacification/PacifiedComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.CombatMode.Pacification; /// [RegisterComponent, NetworkedComponent] [Access(typeof(PacificationSystem))] -public sealed class PacifiedComponent : Component +public sealed partial class PacifiedComponent : Component { } diff --git a/Content.Shared/CombatMode/SharedCombatModeSystem.cs b/Content.Shared/CombatMode/SharedCombatModeSystem.cs index fe406cde76..ef8d0dd185 100644 --- a/Content.Shared/CombatMode/SharedCombatModeSystem.cs +++ b/Content.Shared/CombatMode/SharedCombatModeSystem.cs @@ -107,4 +107,4 @@ public abstract class SharedCombatModeSystem : EntitySystem } } -public sealed class ToggleCombatActionEvent : InstantActionEvent { } +public sealed partial class ToggleCombatActionEvent : InstantActionEvent { } diff --git a/Content.Shared/Communications/SharedCommunicationsConsoleComponent.cs b/Content.Shared/Communications/SharedCommunicationsConsoleComponent.cs index 324f705500..7f9094726c 100644 --- a/Content.Shared/Communications/SharedCommunicationsConsoleComponent.cs +++ b/Content.Shared/Communications/SharedCommunicationsConsoleComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Communications { [Virtual] - public class SharedCommunicationsConsoleComponent : Component + public partial class SharedCommunicationsConsoleComponent : Component { } diff --git a/Content.Shared/Configurable/ConfigurationComponent.cs b/Content.Shared/Configurable/ConfigurationComponent.cs index 51399ce914..63a0dfe95a 100644 --- a/Content.Shared/Configurable/ConfigurationComponent.cs +++ b/Content.Shared/Configurable/ConfigurationComponent.cs @@ -7,16 +7,16 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Configurable { [RegisterComponent, NetworkedComponent] - public sealed class ConfigurationComponent : Component + public sealed partial class ConfigurationComponent : Component { [DataField("config")] - public readonly Dictionary Config = new(); + public Dictionary Config = new(); [DataField("qualityNeeded", customTypeSerializer: typeof(PrototypeIdSerializer))] public string QualityNeeded = "Pulsing"; [DataField("validation")] - public readonly Regex Validation = new("^[a-zA-Z0-9 ]*$", RegexOptions.Compiled); + public Regex Validation = new("^[a-zA-Z0-9 ]*$", RegexOptions.Compiled); [Serializable, NetSerializable] public sealed class ConfigurationBoundUserInterfaceState : BoundUserInterfaceState diff --git a/Content.Shared/Construction/Components/AnchorableComponent.cs b/Content.Shared/Construction/Components/AnchorableComponent.cs index 455ce2f9ba..09bb94f465 100644 --- a/Content.Shared/Construction/Components/AnchorableComponent.cs +++ b/Content.Shared/Construction/Components/AnchorableComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Construction.Components { [RegisterComponent, Access(typeof(AnchorableSystem))] - public sealed class AnchorableComponent : Component + public sealed partial class AnchorableComponent : Component { [DataField("tool", customTypeSerializer: typeof(PrototypeIdSerializer))] public string Tool { get; private set; } = "Anchoring"; diff --git a/Content.Shared/Construction/Components/MachineBoardComponent.cs b/Content.Shared/Construction/Components/MachineBoardComponent.cs index f81b68e853..dbca316061 100644 --- a/Content.Shared/Construction/Components/MachineBoardComponent.cs +++ b/Content.Shared/Construction/Components/MachineBoardComponent.cs @@ -7,21 +7,21 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Construction.Components { [RegisterComponent, NetworkedComponent] - public sealed class MachineBoardComponent : Component + public sealed partial class MachineBoardComponent : Component { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [DataField("requirements", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] - public readonly Dictionary Requirements = new(); + public Dictionary Requirements = new(); [DataField("materialRequirements")] - public readonly Dictionary MaterialIdRequirements = new(); + public Dictionary MaterialIdRequirements = new(); [DataField("tagRequirements")] - public readonly Dictionary TagRequirements = new(); + public Dictionary TagRequirements = new(); [DataField("componentRequirements")] - public readonly Dictionary ComponentRequirements = new(); + public Dictionary ComponentRequirements = new(); [ViewVariables(VVAccess.ReadWrite)] [DataField("prototype")] @@ -42,7 +42,7 @@ namespace Content.Shared.Construction.Components [Serializable] [DataDefinition] - public struct GenericPartInfo + public partial struct GenericPartInfo { [DataField("Amount")] public int Amount; diff --git a/Content.Shared/Construction/Components/MachinePartComponent.cs b/Content.Shared/Construction/Components/MachinePartComponent.cs index 21faf369c9..a68e3495e2 100644 --- a/Content.Shared/Construction/Components/MachinePartComponent.cs +++ b/Content.Shared/Construction/Components/MachinePartComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Construction.Components { [RegisterComponent, NetworkedComponent] - public sealed class MachinePartComponent : Component + public sealed partial class MachinePartComponent : Component { [DataField("part", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] public string PartType { get; private set; } = default!; diff --git a/Content.Shared/Construction/Components/PartAssemblyComponent.cs b/Content.Shared/Construction/Components/PartAssemblyComponent.cs index b583379d55..2e0667bbdb 100644 --- a/Content.Shared/Construction/Components/PartAssemblyComponent.cs +++ b/Content.Shared/Construction/Components/PartAssemblyComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Construction.Components; /// todo: in a pr that isn't 6k loc, combine this with MechAssemblyComponent /// [RegisterComponent] -public sealed class PartAssemblyComponent : Component +public sealed partial class PartAssemblyComponent : Component { /// /// A dictionary of a set of parts to a list of tags for each assembly. diff --git a/Content.Shared/Construction/Conditions/EmptyOrWindowValidInTile.cs b/Content.Shared/Construction/Conditions/EmptyOrWindowValidInTile.cs index b5348654e1..c6c7c47c70 100644 --- a/Content.Shared/Construction/Conditions/EmptyOrWindowValidInTile.cs +++ b/Content.Shared/Construction/Conditions/EmptyOrWindowValidInTile.cs @@ -6,10 +6,10 @@ namespace Content.Shared.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class EmptyOrWindowValidInTile : IConstructionCondition + public sealed partial class EmptyOrWindowValidInTile : IConstructionCondition { [DataField("tileNotBlocked")] - private readonly TileNotBlocked _tileNotBlocked = new(); + private TileNotBlocked _tileNotBlocked = new(); public bool Condition(EntityUid user, EntityCoordinates location, Direction direction) { diff --git a/Content.Shared/Construction/Conditions/NoUnstackableInTile.cs b/Content.Shared/Construction/Conditions/NoUnstackableInTile.cs index 27315efbd6..78518187d6 100644 --- a/Content.Shared/Construction/Conditions/NoUnstackableInTile.cs +++ b/Content.Shared/Construction/Conditions/NoUnstackableInTile.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Construction.Conditions; /// [UsedImplicitly] [DataDefinition] -public sealed class NoUnstackableInTile : IConstructionCondition +public sealed partial class NoUnstackableInTile : IConstructionCondition { public const string GuidebookString = "construction-step-condition-no-unstackable-in-tile"; public bool Condition(EntityUid user, EntityCoordinates location, Direction direction) diff --git a/Content.Shared/Construction/Conditions/NoWindowsInTile.cs b/Content.Shared/Construction/Conditions/NoWindowsInTile.cs index 21f6e07974..be6bc2cfac 100644 --- a/Content.Shared/Construction/Conditions/NoWindowsInTile.cs +++ b/Content.Shared/Construction/Conditions/NoWindowsInTile.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class NoWindowsInTile : IConstructionCondition + public sealed partial class NoWindowsInTile : IConstructionCondition { public bool Condition(EntityUid user, EntityCoordinates location, Direction direction) { diff --git a/Content.Shared/Construction/Conditions/TileNotBlocked.cs b/Content.Shared/Construction/Conditions/TileNotBlocked.cs index c7baaa01c7..02bc84f736 100644 --- a/Content.Shared/Construction/Conditions/TileNotBlocked.cs +++ b/Content.Shared/Construction/Conditions/TileNotBlocked.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Construction.Conditions; [UsedImplicitly] [DataDefinition] -public sealed class TileNotBlocked : IConstructionCondition +public sealed partial class TileNotBlocked : IConstructionCondition { [DataField("filterMobs")] private bool _filterMobs = false; [DataField("failIfSpace")] private bool _failIfSpace = true; diff --git a/Content.Shared/Construction/Conditions/TileType.cs b/Content.Shared/Construction/Conditions/TileType.cs index 60385b0ff3..3ffdf66050 100644 --- a/Content.Shared/Construction/Conditions/TileType.cs +++ b/Content.Shared/Construction/Conditions/TileType.cs @@ -7,10 +7,10 @@ namespace Content.Shared.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class TileType : IConstructionCondition + public sealed partial class TileType : IConstructionCondition { [DataField("targets")] - public List TargetTiles { get; } = new(); + public List TargetTiles { get; private set; } = new(); [DataField("guideText")] public string? GuideText; diff --git a/Content.Shared/Construction/Conditions/WallmountCondition.cs b/Content.Shared/Construction/Conditions/WallmountCondition.cs index 7bde86802b..bf3016d497 100644 --- a/Content.Shared/Construction/Conditions/WallmountCondition.cs +++ b/Content.Shared/Construction/Conditions/WallmountCondition.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public sealed class WallmountCondition : IConstructionCondition + public sealed partial class WallmountCondition : IConstructionCondition { public bool Condition(EntityUid user, EntityCoordinates location, Direction direction) { diff --git a/Content.Shared/Construction/ConstructionGraphEdge.cs b/Content.Shared/Construction/ConstructionGraphEdge.cs index 81e03cd8b4..6ac7571743 100644 --- a/Content.Shared/Construction/ConstructionGraphEdge.cs +++ b/Content.Shared/Construction/ConstructionGraphEdge.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Construction { [Serializable] [DataDefinition] - public sealed class ConstructionGraphEdge + public sealed partial class ConstructionGraphEdge { [DataField("steps")] private ConstructionGraphStep[] _steps = Array.Empty(); @@ -16,7 +16,7 @@ namespace Content.Shared.Construction private IGraphAction[] _completed = Array.Empty(); [DataField("to", required:true)] - public string Target { get; } = string.Empty; + public string Target { get; private set; } = string.Empty; [ViewVariables] public IReadOnlyList Conditions => _conditions; diff --git a/Content.Shared/Construction/ConstructionGraphNode.cs b/Content.Shared/Construction/ConstructionGraphNode.cs index 1519587e92..265463c243 100644 --- a/Content.Shared/Construction/ConstructionGraphNode.cs +++ b/Content.Shared/Construction/ConstructionGraphNode.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Construction { [Serializable] [DataDefinition] - public sealed class ConstructionGraphNode + public sealed partial class ConstructionGraphNode { [DataField("actions", serverOnly: true)] private IGraphAction[] _actions = Array.Empty(); diff --git a/Content.Shared/Construction/EntitySystems/AnchorableSystem.cs b/Content.Shared/Construction/EntitySystems/AnchorableSystem.cs index 0951583c53..3e1cf5584c 100644 --- a/Content.Shared/Construction/EntitySystems/AnchorableSystem.cs +++ b/Content.Shared/Construction/EntitySystems/AnchorableSystem.cs @@ -21,7 +21,7 @@ using Robust.Shared.Utility; namespace Content.Shared.Construction.EntitySystems; -public sealed class AnchorableSystem : EntitySystem +public sealed partial class AnchorableSystem : EntitySystem { [Dependency] private readonly IMapManager _mapManager = default!; [Dependency] private readonly ISharedAdminLogManager _adminLogger = default!; @@ -331,12 +331,12 @@ public sealed class AnchorableSystem : EntitySystem } [Serializable, NetSerializable] - private sealed class TryUnanchorCompletedEvent : SimpleDoAfterEvent + private sealed partial class TryUnanchorCompletedEvent : SimpleDoAfterEvent { } [Serializable, NetSerializable] - private sealed class TryAnchorCompletedEvent : SimpleDoAfterEvent + private sealed partial class TryAnchorCompletedEvent : SimpleDoAfterEvent { } } diff --git a/Content.Shared/Construction/Events.cs b/Content.Shared/Construction/Events.cs index f36686a53c..f231407ff4 100644 --- a/Content.Shared/Construction/Events.cs +++ b/Content.Shared/Construction/Events.cs @@ -107,10 +107,10 @@ public sealed class ResponseConstructionGuide : EntityEventArgs } [Serializable, NetSerializable] -public sealed class ConstructionInteractDoAfterEvent : DoAfterEvent +public sealed partial class ConstructionInteractDoAfterEvent : DoAfterEvent { [DataField("clickLocation")] - public readonly EntityCoordinates ClickLocation; + public EntityCoordinates ClickLocation; private ConstructionInteractDoAfterEvent() { @@ -125,6 +125,6 @@ public sealed class ConstructionInteractDoAfterEvent : DoAfterEvent } [Serializable, NetSerializable] -public sealed class WelderRefineDoAfterEvent : SimpleDoAfterEvent +public sealed partial class WelderRefineDoAfterEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/Construction/IGraphAction.cs b/Content.Shared/Construction/IGraphAction.cs index b1aed0be00..0c2a867859 100644 --- a/Content.Shared/Construction/IGraphAction.cs +++ b/Content.Shared/Construction/IGraphAction.cs @@ -1,7 +1,7 @@ namespace Content.Shared.Construction { [ImplicitDataDefinitionForInheritors] - public interface IGraphAction + public partial interface IGraphAction { // TODO pass in node/edge & graph ID for better error logs. void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager); diff --git a/Content.Shared/Construction/IGraphCondition.cs b/Content.Shared/Construction/IGraphCondition.cs index fbeb9e4b1d..f8da8594f7 100644 --- a/Content.Shared/Construction/IGraphCondition.cs +++ b/Content.Shared/Construction/IGraphCondition.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Construction { [ImplicitDataDefinitionForInheritors] - public interface IGraphCondition + public partial interface IGraphCondition { bool Condition(EntityUid uid, IEntityManager entityManager); bool DoExamine(ExaminedEvent args); diff --git a/Content.Shared/Construction/NodeEntities/NullNodeEntity.cs b/Content.Shared/Construction/NodeEntities/NullNodeEntity.cs index 3ca89931ba..f8db079c44 100644 --- a/Content.Shared/Construction/NodeEntities/NullNodeEntity.cs +++ b/Content.Shared/Construction/NodeEntities/NullNodeEntity.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Construction.NodeEntities; [UsedImplicitly] [DataDefinition] -public sealed class NullNodeEntity : IGraphNodeEntity +public sealed partial class NullNodeEntity : IGraphNodeEntity { public string? GetId(EntityUid? uid, EntityUid? userUid, GraphNodeEntityArgs args) { diff --git a/Content.Shared/Construction/NodeEntities/StaticNodeEntity.cs b/Content.Shared/Construction/NodeEntities/StaticNodeEntity.cs index c5bc734575..34770a02a7 100644 --- a/Content.Shared/Construction/NodeEntities/StaticNodeEntity.cs +++ b/Content.Shared/Construction/NodeEntities/StaticNodeEntity.cs @@ -6,11 +6,11 @@ namespace Content.Shared.Construction.NodeEntities; [UsedImplicitly] [DataDefinition] -public sealed class StaticNodeEntity : IGraphNodeEntity +public sealed partial class StaticNodeEntity : IGraphNodeEntity { [DataField("id", customTypeSerializer:typeof(PrototypeIdSerializer))] [ViewVariables(VVAccess.ReadWrite)] - public string? Id { get; } + public string? Id { get; private set; } public StaticNodeEntity() { diff --git a/Content.Shared/Construction/Prototypes/ConstructionGraphPrototype.cs b/Content.Shared/Construction/Prototypes/ConstructionGraphPrototype.cs index 5eb7c19fb8..050f8b6c18 100644 --- a/Content.Shared/Construction/Prototypes/ConstructionGraphPrototype.cs +++ b/Content.Shared/Construction/Prototypes/ConstructionGraphPrototype.cs @@ -14,10 +14,10 @@ namespace Content.Shared.Construction.Prototypes [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("start")] - public string? Start { get; } + public string? Start { get; private set; } [DataField("graph", priority: 0)] private List _graph = new(); diff --git a/Content.Shared/Construction/Prototypes/ConstructionPrototype.cs b/Content.Shared/Construction/Prototypes/ConstructionPrototype.cs index e249c1d11b..e4e28b11b5 100644 --- a/Content.Shared/Construction/Prototypes/ConstructionPrototype.cs +++ b/Content.Shared/Construction/Prototypes/ConstructionPrototype.cs @@ -70,7 +70,7 @@ public sealed class ConstructionPrototype : IPrototype [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("placementMode")] public string PlacementMode = "PlaceFree"; diff --git a/Content.Shared/Construction/Prototypes/MachinePartPrototype.cs b/Content.Shared/Construction/Prototypes/MachinePartPrototype.cs index a4a4b91a09..707dc5dc23 100644 --- a/Content.Shared/Construction/Prototypes/MachinePartPrototype.cs +++ b/Content.Shared/Construction/Prototypes/MachinePartPrototype.cs @@ -12,17 +12,17 @@ public sealed class MachinePartPrototype : IPrototype { /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// A human-readable name for the machine part type. /// [DataField("name")] - public readonly string Name = string.Empty; + public string Name = string.Empty; /// /// A stock part entity based on the machine part. /// [DataField("stockPartPrototype", customTypeSerializer: typeof(PrototypeIdSerializer), required: true)] - public readonly string StockPartPrototype = string.Empty; + public string StockPartPrototype = string.Empty; } diff --git a/Content.Shared/Construction/SharedCanBuildWindowOnTopComponent.cs b/Content.Shared/Construction/SharedCanBuildWindowOnTopComponent.cs index 13dedaa5d2..b7a586aafe 100644 --- a/Content.Shared/Construction/SharedCanBuildWindowOnTopComponent.cs +++ b/Content.Shared/Construction/SharedCanBuildWindowOnTopComponent.cs @@ -1,7 +1,7 @@ namespace Content.Shared.Construction { [RegisterComponent] - public sealed class SharedCanBuildWindowOnTopComponent : Component + public sealed partial class SharedCanBuildWindowOnTopComponent : Component { } } diff --git a/Content.Shared/Construction/Steps/ArbitraryInsertConstructionGraphStep.cs b/Content.Shared/Construction/Steps/ArbitraryInsertConstructionGraphStep.cs index a6a7719fbe..8e3dcd4f4d 100644 --- a/Content.Shared/Construction/Steps/ArbitraryInsertConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/ArbitraryInsertConstructionGraphStep.cs @@ -3,7 +3,7 @@ using Robust.Shared.Utility; namespace Content.Shared.Construction.Steps { - public abstract class ArbitraryInsertConstructionGraphStep : EntityInsertConstructionGraphStep + public abstract partial class ArbitraryInsertConstructionGraphStep : EntityInsertConstructionGraphStep { [DataField("name")] public string Name { get; private set; } = string.Empty; diff --git a/Content.Shared/Construction/Steps/ComponentConstructionGraphStep.cs b/Content.Shared/Construction/Steps/ComponentConstructionGraphStep.cs index 8908eac5aa..a85a1ed472 100644 --- a/Content.Shared/Construction/Steps/ComponentConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/ComponentConstructionGraphStep.cs @@ -3,9 +3,9 @@ namespace Content.Shared.Construction.Steps { [DataDefinition] - public sealed class ComponentConstructionGraphStep : ArbitraryInsertConstructionGraphStep + public sealed partial class ComponentConstructionGraphStep : ArbitraryInsertConstructionGraphStep { - [DataField("component")] public string Component { get; } = string.Empty; + [DataField("component")] public string Component { get; private set; } = string.Empty; public override bool EntityValid(EntityUid uid, IEntityManager entityManager, IComponentFactory compFactory) { diff --git a/Content.Shared/Construction/Steps/ConstructionGraphStep.cs b/Content.Shared/Construction/Steps/ConstructionGraphStep.cs index 3e3a9da828..82248fa105 100644 --- a/Content.Shared/Construction/Steps/ConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/ConstructionGraphStep.cs @@ -4,11 +4,11 @@ namespace Content.Shared.Construction.Steps { [Serializable] [ImplicitDataDefinitionForInheritors] - public abstract class ConstructionGraphStep + public abstract partial class ConstructionGraphStep { [DataField("completed", serverOnly: true)] private IGraphAction[] _completed = Array.Empty(); - [DataField("doAfter")] public float DoAfter { get; } + [DataField("doAfter")] public float DoAfter { get; private set; } public IReadOnlyList Completed => _completed; diff --git a/Content.Shared/Construction/Steps/EntityInsertConstructionGraphStep.cs b/Content.Shared/Construction/Steps/EntityInsertConstructionGraphStep.cs index 7bd14ee00b..28684dead3 100644 --- a/Content.Shared/Construction/Steps/EntityInsertConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/EntityInsertConstructionGraphStep.cs @@ -1,9 +1,9 @@ namespace Content.Shared.Construction.Steps { [ImplicitDataDefinitionForInheritors] - public abstract class EntityInsertConstructionGraphStep : ConstructionGraphStep + public abstract partial class EntityInsertConstructionGraphStep : ConstructionGraphStep { - [DataField("store")] public string Store { get; } = string.Empty; + [DataField("store")] public string Store { get; private set; } = string.Empty; public abstract bool EntityValid(EntityUid uid, IEntityManager entityManager, IComponentFactory compFactory); } diff --git a/Content.Shared/Construction/Steps/MaterialConstructionGraphStep.cs b/Content.Shared/Construction/Steps/MaterialConstructionGraphStep.cs index 93f81fd91c..d9f968d41a 100644 --- a/Content.Shared/Construction/Steps/MaterialConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/MaterialConstructionGraphStep.cs @@ -7,14 +7,14 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Construction.Steps { [DataDefinition] - public sealed class MaterialConstructionGraphStep : EntityInsertConstructionGraphStep + public sealed partial class MaterialConstructionGraphStep : EntityInsertConstructionGraphStep { // TODO: Make this use the material system. // TODO TODO: Make the material system not shit. [DataField("material", required:true, customTypeSerializer:typeof(PrototypeIdSerializer))] - public string MaterialPrototypeId { get; } = "Steel"; + public string MaterialPrototypeId { get; private set; } = "Steel"; - [DataField("amount")] public int Amount { get; } = 1; + [DataField("amount")] public int Amount { get; private set; } = 1; public override void DoExamine(ExaminedEvent examinedEvent) { diff --git a/Content.Shared/Construction/Steps/MultipleTagsConstructionGraphStep.cs b/Content.Shared/Construction/Steps/MultipleTagsConstructionGraphStep.cs index 083bdd0c40..668952dac2 100644 --- a/Content.Shared/Construction/Steps/MultipleTagsConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/MultipleTagsConstructionGraphStep.cs @@ -2,7 +2,7 @@ using Content.Shared.Tag; namespace Content.Shared.Construction.Steps { - public sealed class MultipleTagsConstructionGraphStep : ArbitraryInsertConstructionGraphStep + public sealed partial class MultipleTagsConstructionGraphStep : ArbitraryInsertConstructionGraphStep { [DataField("allTags")] private List? _allTags; diff --git a/Content.Shared/Construction/Steps/PartAssemblyConstructionGraphStep.cs b/Content.Shared/Construction/Steps/PartAssemblyConstructionGraphStep.cs index de7eec13c0..9119587a6b 100644 --- a/Content.Shared/Construction/Steps/PartAssemblyConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/PartAssemblyConstructionGraphStep.cs @@ -5,7 +5,7 @@ using JetBrains.Annotations; namespace Content.Shared.Construction.Steps; [DataDefinition] -public sealed class PartAssemblyConstructionGraphStep : ConstructionGraphStep +public sealed partial class PartAssemblyConstructionGraphStep : ConstructionGraphStep { /// /// A valid ID on 's dictionary of strings to part lists. diff --git a/Content.Shared/Construction/Steps/TagConstructionGraphStep.cs b/Content.Shared/Construction/Steps/TagConstructionGraphStep.cs index db87e6adff..df8c166aa1 100644 --- a/Content.Shared/Construction/Steps/TagConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/TagConstructionGraphStep.cs @@ -3,7 +3,7 @@ using Content.Shared.Tag; namespace Content.Shared.Construction.Steps { [DataDefinition] - public sealed class TagConstructionGraphStep : ArbitraryInsertConstructionGraphStep + public sealed partial class TagConstructionGraphStep : ArbitraryInsertConstructionGraphStep { [DataField("tag")] private string? _tag; diff --git a/Content.Shared/Construction/Steps/TemperatureConstructionGraphStep.cs b/Content.Shared/Construction/Steps/TemperatureConstructionGraphStep.cs index b9b9e3288f..6b3a742968 100644 --- a/Content.Shared/Construction/Steps/TemperatureConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/TemperatureConstructionGraphStep.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Construction.Steps { [DataDefinition] - public sealed class TemperatureConstructionGraphStep : ConstructionGraphStep + public sealed partial class TemperatureConstructionGraphStep : ConstructionGraphStep { [DataField("minTemperature")] public float? MinTemperature; diff --git a/Content.Shared/Construction/Steps/ToolConstructionGraphStep.cs b/Content.Shared/Construction/Steps/ToolConstructionGraphStep.cs index e9d79b6b9c..f096c698bb 100644 --- a/Content.Shared/Construction/Steps/ToolConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/ToolConstructionGraphStep.cs @@ -6,14 +6,14 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Construction.Steps { [DataDefinition] - public sealed class ToolConstructionGraphStep : ConstructionGraphStep + public sealed partial class ToolConstructionGraphStep : ConstructionGraphStep { [DataField("tool", required:true, customTypeSerializer:typeof(PrototypeIdSerializer))] - public string Tool { get; } = string.Empty; + public string Tool { get; private set; } = string.Empty; - [DataField("fuel")] public float Fuel { get; } = 10; + [DataField("fuel")] public float Fuel { get; private set; } = 10; - [DataField("examine")] public string ExamineOverride { get; } = string.Empty; + [DataField("examine")] public string ExamineOverride { get; private set; } = string.Empty; public override void DoExamine(ExaminedEvent examinedEvent) { diff --git a/Content.Shared/Containers/ContainerFillComponent.cs b/Content.Shared/Containers/ContainerFillComponent.cs index 6d5fd93ed7..8c63cbc66a 100644 --- a/Content.Shared/Containers/ContainerFillComponent.cs +++ b/Content.Shared/Containers/ContainerFillComponent.cs @@ -18,10 +18,10 @@ namespace Content.Shared.Containers; /// cref="EntitySpawnCollection.GetSpawns"/>, which is also used by several other systems. /// [RegisterComponent] -public sealed class ContainerFillComponent : Component +public sealed partial class ContainerFillComponent : Component { [DataField("containers", customTypeSerializer:typeof(ContainerFillSerializer))] - public readonly Dictionary> Containers = new(); + public Dictionary> Containers = new(); /// /// If true, entities spawned via the construction system will not have entities spawned into containers managed diff --git a/Content.Shared/Containers/ItemSlot/ItemSlotsComponent.cs b/Content.Shared/Containers/ItemSlot/ItemSlotsComponent.cs index 753fadb0ff..a895311fb2 100644 --- a/Content.Shared/Containers/ItemSlot/ItemSlotsComponent.cs +++ b/Content.Shared/Containers/ItemSlot/ItemSlotsComponent.cs @@ -15,14 +15,14 @@ namespace Content.Shared.Containers.ItemSlots [RegisterComponent] [Access(typeof(ItemSlotsSystem))] [NetworkedComponent] - public sealed class ItemSlotsComponent : Component + public sealed partial class ItemSlotsComponent : Component { /// /// The dictionary that stores all of the item slots whose interactions will be managed by the . /// [DataField("slots", readOnly:true)] - public readonly Dictionary Slots = new(); + public Dictionary Slots = new(); // There are two ways to use item slots: // @@ -58,7 +58,7 @@ namespace Content.Shared.Containers.ItemSlots [DataDefinition] [Access(typeof(ItemSlotsSystem))] [Serializable, NetSerializable] - public sealed class ItemSlot + public sealed partial class ItemSlot { public ItemSlot() { } diff --git a/Content.Shared/Conveyor/ActiveConveyorComponent.cs b/Content.Shared/Conveyor/ActiveConveyorComponent.cs index 951bed4f1f..1c94be9764 100644 --- a/Content.Shared/Conveyor/ActiveConveyorComponent.cs +++ b/Content.Shared/Conveyor/ActiveConveyorComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Conveyor; /// Used to track which conveyors are relevant in case there's a lot of them. /// [RegisterComponent] -public sealed class ActiveConveyorComponent : Component +public sealed partial class ActiveConveyorComponent : Component { } diff --git a/Content.Shared/Conveyor/ConveyorComponent.cs b/Content.Shared/Conveyor/ConveyorComponent.cs index d6cedcbab2..2af859b4a1 100644 --- a/Content.Shared/Conveyor/ConveyorComponent.cs +++ b/Content.Shared/Conveyor/ConveyorComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Conveyor; [RegisterComponent, NetworkedComponent] -public sealed class ConveyorComponent : Component +public sealed partial class ConveyorComponent : Component { /// /// The angle to move entities by in relation to the owner's rotation. diff --git a/Content.Shared/Crayon/SharedCrayonComponent.cs b/Content.Shared/Crayon/SharedCrayonComponent.cs index a442d35293..f8e88b218d 100644 --- a/Content.Shared/Crayon/SharedCrayonComponent.cs +++ b/Content.Shared/Crayon/SharedCrayonComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Crayon { [NetworkedComponent, ComponentProtoName("Crayon"), Access(typeof(SharedCrayonSystem))] - public abstract class SharedCrayonComponent : Component + public abstract partial class SharedCrayonComponent : Component { public string SelectedState { get; set; } = string.Empty; diff --git a/Content.Shared/Cuffs/Components/CuffableComponent.cs b/Content.Shared/Cuffs/Components/CuffableComponent.cs index 4cfeec5636..5da6fa41a5 100644 --- a/Content.Shared/Cuffs/Components/CuffableComponent.cs +++ b/Content.Shared/Cuffs/Components/CuffableComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Cuffs.Components; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedCuffableSystem))] -public sealed class CuffableComponent : Component +public sealed partial class CuffableComponent : Component { /// /// The current RSI for the handcuff layer diff --git a/Content.Shared/Cuffs/Components/HandcuffComponent.cs b/Content.Shared/Cuffs/Components/HandcuffComponent.cs index 398fce4fc7..da44ee01ff 100644 --- a/Content.Shared/Cuffs/Components/HandcuffComponent.cs +++ b/Content.Shared/Cuffs/Components/HandcuffComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Cuffs.Components; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedCuffableSystem))] -public sealed class HandcuffComponent : Component +public sealed partial class HandcuffComponent : Component { /// /// The time it takes to cuff an entity. diff --git a/Content.Shared/Cuffs/SharedCuffableSystem.cs b/Content.Shared/Cuffs/SharedCuffableSystem.cs index 57b4b19af0..7dd1ec9065 100644 --- a/Content.Shared/Cuffs/SharedCuffableSystem.cs +++ b/Content.Shared/Cuffs/SharedCuffableSystem.cs @@ -36,7 +36,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Cuffs { // TODO remove all the IsServer() checks. - public abstract class SharedCuffableSystem : EntitySystem + public abstract partial class SharedCuffableSystem : EntitySystem { [Dependency] private readonly IComponentFactory _componentFactory = default!; [Dependency] private readonly INetManager _net = default!; @@ -705,12 +705,12 @@ namespace Content.Shared.Cuffs } [Serializable, NetSerializable] - private sealed class UnCuffDoAfterEvent : SimpleDoAfterEvent + private sealed partial class UnCuffDoAfterEvent : SimpleDoAfterEvent { } [Serializable, NetSerializable] - private sealed class AddCuffDoAfterEvent : SimpleDoAfterEvent + private sealed partial class AddCuffDoAfterEvent : SimpleDoAfterEvent { } } diff --git a/Content.Shared/Damage/Components/ActiveStaminaComponent.cs b/Content.Shared/Damage/Components/ActiveStaminaComponent.cs index 35d21a0253..ea63bb1395 100644 --- a/Content.Shared/Damage/Components/ActiveStaminaComponent.cs +++ b/Content.Shared/Damage/Components/ActiveStaminaComponent.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Damage.Components; /// Tracks whether an entity has ANY stamina damage for update purposes only. /// [RegisterComponent] -public sealed class ActiveStaminaComponent : Component +public sealed partial class ActiveStaminaComponent : Component { } diff --git a/Content.Shared/Damage/Components/DamageContactsComponent.cs b/Content.Shared/Damage/Components/DamageContactsComponent.cs index 3eedda7fc6..4ae88db8d7 100644 --- a/Content.Shared/Damage/Components/DamageContactsComponent.cs +++ b/Content.Shared/Damage/Components/DamageContactsComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Damage.Components; [NetworkedComponent, RegisterComponent] -public sealed class DamageContactsComponent : Component +public sealed partial class DamageContactsComponent : Component { /// /// The damage done each second to those touching this entity diff --git a/Content.Shared/Damage/Components/DamageExaminableComponent.cs b/Content.Shared/Damage/Components/DamageExaminableComponent.cs index 4bd019deaf..a9fa833070 100644 --- a/Content.Shared/Damage/Components/DamageExaminableComponent.cs +++ b/Content.Shared/Damage/Components/DamageExaminableComponent.cs @@ -3,6 +3,6 @@ using Robust.Shared.GameStates; namespace Content.Shared.Damage.Components; [RegisterComponent, NetworkedComponent] -public sealed class DamageExaminableComponent : Component +public sealed partial class DamageExaminableComponent : Component { } diff --git a/Content.Shared/Damage/Components/DamageableComponent.cs b/Content.Shared/Damage/Components/DamageableComponent.cs index b9a55e70a6..f8ba661a66 100644 --- a/Content.Shared/Damage/Components/DamageableComponent.cs +++ b/Content.Shared/Damage/Components/DamageableComponent.cs @@ -17,7 +17,7 @@ namespace Content.Shared.Damage [RegisterComponent] [NetworkedComponent()] [Access(typeof(DamageableSystem), Other = AccessPermissions.ReadExecute)] - public sealed class DamageableComponent : Component + public sealed partial class DamageableComponent : Component { /// /// This specifies what damage types are supported by this component. diff --git a/Content.Shared/Damage/Components/DamagedByContactComponent.cs b/Content.Shared/Damage/Components/DamagedByContactComponent.cs index 1b4c2999aa..bc86f1f5e2 100644 --- a/Content.Shared/Damage/Components/DamagedByContactComponent.cs +++ b/Content.Shared/Damage/Components/DamagedByContactComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Shared.Damage.Components; [NetworkedComponent, RegisterComponent] -public sealed class DamagedByContactComponent : Component +public sealed partial class DamagedByContactComponent : Component { [DataField("nextSecond", customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)] public TimeSpan NextSecond = TimeSpan.Zero; diff --git a/Content.Shared/Damage/Components/GodmodeComponent.cs b/Content.Shared/Damage/Components/GodmodeComponent.cs index f85479bb65..66f0daff39 100644 --- a/Content.Shared/Damage/Components/GodmodeComponent.cs +++ b/Content.Shared/Damage/Components/GodmodeComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Damage.Components; [RegisterComponent, NetworkedComponent, Access(typeof(SharedGodmodeSystem))] -public sealed class GodmodeComponent : Component +public sealed partial class GodmodeComponent : Component { [DataField("wasMovedByPressure")] public bool WasMovedByPressure; diff --git a/Content.Shared/Damage/Components/SlowOnDamageComponent.cs b/Content.Shared/Damage/Components/SlowOnDamageComponent.cs index 0d60c0122e..aa0cafa057 100644 --- a/Content.Shared/Damage/Components/SlowOnDamageComponent.cs +++ b/Content.Shared/Damage/Components/SlowOnDamageComponent.cs @@ -6,12 +6,12 @@ namespace Content.Shared.Damage.Components // TODO It'd be nice if this could be a destructible threshold, but on the other hand, // that doesn't really work with events at all, and [RegisterComponent, NetworkedComponent] - public sealed class SlowOnDamageComponent : Component + public sealed partial class SlowOnDamageComponent : Component { /// /// Damage -> movespeed dictionary. This is -damage-, not -health-. /// [DataField("speedModifierThresholds", required: true)] - public readonly Dictionary SpeedModifierThresholds = default!; + public Dictionary SpeedModifierThresholds = default!; } } diff --git a/Content.Shared/Damage/Components/StaminaComponent.cs b/Content.Shared/Damage/Components/StaminaComponent.cs index 9f745c9df1..3cdc90ecb1 100644 --- a/Content.Shared/Damage/Components/StaminaComponent.cs +++ b/Content.Shared/Damage/Components/StaminaComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Damage.Components; /// Add to an entity to paralyze it whenever it reaches critical amounts of Stamina DamageType. /// [RegisterComponent, NetworkedComponent] -public sealed class StaminaComponent : Component +public sealed partial class StaminaComponent : Component { /// /// Have we reached peak stamina damage and been paralyzed? diff --git a/Content.Shared/Damage/Components/StaminaDamageOnCollideComponent.cs b/Content.Shared/Damage/Components/StaminaDamageOnCollideComponent.cs index a5a6e1bb8a..5ed2bb628e 100644 --- a/Content.Shared/Damage/Components/StaminaDamageOnCollideComponent.cs +++ b/Content.Shared/Damage/Components/StaminaDamageOnCollideComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Damage.Components; /// Applies stamina damage when colliding with an entity. /// [RegisterComponent] -public sealed class StaminaDamageOnCollideComponent : Component +public sealed partial class StaminaDamageOnCollideComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("damage")] public float Damage = 55f; diff --git a/Content.Shared/Damage/Components/StaminaDamageOnHitComponent.cs b/Content.Shared/Damage/Components/StaminaDamageOnHitComponent.cs index 578acce410..7a524a0052 100644 --- a/Content.Shared/Damage/Components/StaminaDamageOnHitComponent.cs +++ b/Content.Shared/Damage/Components/StaminaDamageOnHitComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Audio; namespace Content.Shared.Damage.Components; [RegisterComponent] -public sealed class StaminaDamageOnHitComponent : Component +public sealed partial class StaminaDamageOnHitComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("damage")] public float Damage = 30f; diff --git a/Content.Shared/Damage/DamageModifierSet.cs b/Content.Shared/Damage/DamageModifierSet.cs index b47eab0122..2dfc38715e 100644 --- a/Content.Shared/Damage/DamageModifierSet.cs +++ b/Content.Shared/Damage/DamageModifierSet.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Damage [DataDefinition] [Serializable, NetSerializable] [Virtual] - public class DamageModifierSet + public partial class DamageModifierSet { [DataField("coefficients", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] public Dictionary Coefficients = new(); diff --git a/Content.Shared/Damage/DamageSpecifier.cs b/Content.Shared/Damage/DamageSpecifier.cs index 341e3bb76b..903ee605f1 100644 --- a/Content.Shared/Damage/DamageSpecifier.cs +++ b/Content.Shared/Damage/DamageSpecifier.cs @@ -16,18 +16,18 @@ namespace Content.Shared.Damage /// functions to apply resistance sets and supports basic math operations to modify this dictionary. /// [DataDefinition] - public sealed class DamageSpecifier : IEquatable + public sealed partial class DamageSpecifier : IEquatable { // These exist solely so the wiki works. Please do not touch them or use them. [JsonPropertyName("types")] [DataField("types", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] [UsedImplicitly] - private readonly Dictionary? _damageTypeDictionary; + private Dictionary? _damageTypeDictionary; [JsonPropertyName("groups")] [DataField("groups", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] [UsedImplicitly] - private readonly Dictionary? _damageGroupDictionary; + private Dictionary? _damageGroupDictionary; /// /// Main DamageSpecifier dictionary. Most DamageSpecifier functions exist to somehow modifying this. diff --git a/Content.Shared/Damage/Prototypes/DamageContainerPrototype.cs b/Content.Shared/Damage/Prototypes/DamageContainerPrototype.cs index 8a5c2a7a52..0bcb95294b 100644 --- a/Content.Shared/Damage/Prototypes/DamageContainerPrototype.cs +++ b/Content.Shared/Damage/Prototypes/DamageContainerPrototype.cs @@ -18,7 +18,7 @@ namespace Content.Shared.Damage.Prototypes { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// List of damage groups that are supported by this container. diff --git a/Content.Shared/Damage/Prototypes/DamageGroupPrototype.cs b/Content.Shared/Damage/Prototypes/DamageGroupPrototype.cs index 8842f34660..2a508a03e6 100644 --- a/Content.Shared/Damage/Prototypes/DamageGroupPrototype.cs +++ b/Content.Shared/Damage/Prototypes/DamageGroupPrototype.cs @@ -18,6 +18,6 @@ namespace Content.Shared.Damage.Prototypes [IdDataField] public string ID { get; } = default!; [DataField("damageTypes", required: true, customTypeSerializer: typeof(PrototypeIdListSerializer))] - public List DamageTypes { get; } = default!; + public List DamageTypes { get; private set; } = default!; } } diff --git a/Content.Shared/Damage/Prototypes/DamageModifierSetPrototype.cs b/Content.Shared/Damage/Prototypes/DamageModifierSetPrototype.cs index 8aa4c7b948..99e13ee284 100644 --- a/Content.Shared/Damage/Prototypes/DamageModifierSetPrototype.cs +++ b/Content.Shared/Damage/Prototypes/DamageModifierSetPrototype.cs @@ -14,6 +14,6 @@ namespace Content.Shared.Damage.Prototypes { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; } } diff --git a/Content.Shared/Damage/Prototypes/DamageTypePrototype.cs b/Content.Shared/Damage/Prototypes/DamageTypePrototype.cs index ca6ac74e99..592de5acf3 100644 --- a/Content.Shared/Damage/Prototypes/DamageTypePrototype.cs +++ b/Content.Shared/Damage/Prototypes/DamageTypePrototype.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Damage.Prototypes public sealed class DamageTypePrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// The price for each 1% damage reduction in armors diff --git a/Content.Shared/Damage/Prototypes/ExaminableDamagePrototype.cs b/Content.Shared/Damage/Prototypes/ExaminableDamagePrototype.cs index 4aa0a2498a..c4191f4d13 100644 --- a/Content.Shared/Damage/Prototypes/ExaminableDamagePrototype.cs +++ b/Content.Shared/Damage/Prototypes/ExaminableDamagePrototype.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Damage.Prototypes; public sealed class ExaminableDamagePrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// List of damage messages IDs sorted by severity. diff --git a/Content.Shared/Dataset/DatasetPrototype.cs b/Content.Shared/Dataset/DatasetPrototype.cs index 6a29fea605..b418864299 100644 --- a/Content.Shared/Dataset/DatasetPrototype.cs +++ b/Content.Shared/Dataset/DatasetPrototype.cs @@ -7,8 +7,8 @@ namespace Content.Shared.Dataset { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; - [DataField("values")] public IReadOnlyList Values { get; } = new List(); + [DataField("values")] public IReadOnlyList Values { get; private set; } = new List(); } } diff --git a/Content.Shared/Decals/ColorPalettePrototype.cs b/Content.Shared/Decals/ColorPalettePrototype.cs index 59f09544f7..a42e0a0ff3 100644 --- a/Content.Shared/Decals/ColorPalettePrototype.cs +++ b/Content.Shared/Decals/ColorPalettePrototype.cs @@ -6,6 +6,6 @@ namespace Content.Shared.Decals; public sealed class ColorPalettePrototype : IPrototype { [IdDataField] public string ID { get; } = null!; - [DataField("name")] public string Name { get; } = null!; - [DataField("colors")] public Dictionary Colors { get; } = null!; + [DataField("name")] public string Name { get; private set; } = null!; + [DataField("colors")] public Dictionary Colors { get; private set; } = null!; } diff --git a/Content.Shared/Decals/Decal.cs b/Content.Shared/Decals/Decal.cs index 7368b6f2cd..56ecc829e7 100644 --- a/Content.Shared/Decals/Decal.cs +++ b/Content.Shared/Decals/Decal.cs @@ -5,15 +5,15 @@ namespace Content.Shared.Decals { [Serializable, NetSerializable] [DataDefinition] - public sealed class Decal + public sealed partial class Decal { // if these are made not-readonly, then decal grid state handling needs to be updated to clone decals. - [DataField("coordinates")] public readonly Vector2 Coordinates = Vector2.Zero; - [DataField("id")] public readonly string Id = string.Empty; - [DataField("color")] public readonly Color? Color; - [DataField("angle")] public readonly Angle Angle = Angle.Zero; - [DataField("zIndex")] public readonly int ZIndex; - [DataField("cleanable")] public readonly bool Cleanable; + [DataField("coordinates")] public Vector2 Coordinates = Vector2.Zero; + [DataField("id")] public string Id = string.Empty; + [DataField("color")] public Color? Color; + [DataField("angle")] public Angle Angle = Angle.Zero; + [DataField("zIndex")] public int ZIndex; + [DataField("cleanable")] public bool Cleanable; public Decal() {} diff --git a/Content.Shared/Decals/DecalGridChunkCollectionTypeSerializer.cs b/Content.Shared/Decals/DecalGridChunkCollectionTypeSerializer.cs index be10e8f41a..ba89c8a695 100644 --- a/Content.Shared/Decals/DecalGridChunkCollectionTypeSerializer.cs +++ b/Content.Shared/Decals/DecalGridChunkCollectionTypeSerializer.cs @@ -16,7 +16,7 @@ using static Content.Shared.Decals.DecalGridComponent; namespace Content.Shared.Decals { [TypeSerializer] - public sealed class DecalGridChunkCollectionTypeSerializer : ITypeSerializer + public sealed partial class DecalGridChunkCollectionTypeSerializer : ITypeSerializer { public ValidationNode Validate(ISerializationManager serializationManager, MappingDataNode node, IDependencyCollection dependencies, ISerializationContext? context = null) @@ -163,22 +163,22 @@ namespace Content.Shared.Decals } [DataDefinition] - private readonly struct DecalData : IEquatable, IComparable + private readonly partial struct DecalData : IEquatable, IComparable { [DataField("id")] - public readonly string Id = string.Empty; + public string Id { get; init; } = string.Empty; [DataField("color")] - public readonly Color? Color; + public Color? Color { get; init; } [DataField("angle")] - public readonly Angle Angle = Angle.Zero; + public Angle Angle { get; init; } = Angle.Zero; [DataField("zIndex")] - public readonly int ZIndex; + public int ZIndex { get; init; } [DataField("cleanable")] - public readonly bool Cleanable; + public bool Cleanable { get; init; } public DecalData(string id, Color? color, Angle angle, int zIndex, bool cleanable) { diff --git a/Content.Shared/Decals/DecalGridComponent.cs b/Content.Shared/Decals/DecalGridComponent.cs index 32273e76f8..aa366f28c9 100644 --- a/Content.Shared/Decals/DecalGridComponent.cs +++ b/Content.Shared/Decals/DecalGridComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Decals [RegisterComponent] [Access(typeof(SharedDecalSystem))] [NetworkedComponent] - public sealed class DecalGridComponent : Component + public sealed partial class DecalGridComponent : Component { [DataField("chunkCollection", serverOnly: true)] public DecalGridChunkCollection ChunkCollection = new(new ()); @@ -31,7 +31,7 @@ namespace Content.Shared.Decals [DataDefinition] [Serializable, NetSerializable] - public sealed class DecalChunk + public sealed partial class DecalChunk { [IncludeDataField(customTypeSerializer:typeof(DictionarySerializer))] public Dictionary Decals; diff --git a/Content.Shared/Decals/DecalPrototype.cs b/Content.Shared/Decals/DecalPrototype.cs index 00970a3a7c..db9d5b5b87 100644 --- a/Content.Shared/Decals/DecalPrototype.cs +++ b/Content.Shared/Decals/DecalPrototype.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Decals public sealed class DecalPrototype : IPrototype { [IdDataField] public string ID { get; } = null!; - [DataField("sprite")] public SpriteSpecifier Sprite { get; } = SpriteSpecifier.Invalid; + [DataField("sprite")] public SpriteSpecifier Sprite { get; private set; } = SpriteSpecifier.Invalid; [DataField("tags")] public List Tags = new(); [DataField("showMenu")] public bool ShowMenu = true; diff --git a/Content.Shared/DeviceLinking/DeviceLinkSinkComponent.cs b/Content.Shared/DeviceLinking/DeviceLinkSinkComponent.cs index 1bb0fc8971..a66431e68a 100644 --- a/Content.Shared/DeviceLinking/DeviceLinkSinkComponent.cs +++ b/Content.Shared/DeviceLinking/DeviceLinkSinkComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.DeviceLinking; [RegisterComponent] [NetworkedComponent] // for interactions. Actual state isn't currently synced. [Access(typeof(SharedDeviceLinkSystem))] -public sealed class DeviceLinkSinkComponent : Component +public sealed partial class DeviceLinkSinkComponent : Component { /// /// The ports this sink has diff --git a/Content.Shared/DeviceLinking/DeviceLinkSourceComponent.cs b/Content.Shared/DeviceLinking/DeviceLinkSourceComponent.cs index 01417988d9..3a5d4d9f6d 100644 --- a/Content.Shared/DeviceLinking/DeviceLinkSourceComponent.cs +++ b/Content.Shared/DeviceLinking/DeviceLinkSourceComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.DeviceLinking; [RegisterComponent] [NetworkedComponent] // for interactions. Actual state isn't currently synced. [Access(typeof(SharedDeviceLinkSystem))] -public sealed class DeviceLinkSourceComponent : Component +public sealed partial class DeviceLinkSourceComponent : Component { /// /// The ports the device link source sends signals from diff --git a/Content.Shared/DeviceLinking/DevicePortPrototype.cs b/Content.Shared/DeviceLinking/DevicePortPrototype.cs index 823f6f5748..c0a419ee65 100644 --- a/Content.Shared/DeviceLinking/DevicePortPrototype.cs +++ b/Content.Shared/DeviceLinking/DevicePortPrototype.cs @@ -11,7 +11,7 @@ namespace Content.Shared.DeviceLinking; public abstract class DevicePortPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Localization string for the port name. Displayed in the linking UI. @@ -42,5 +42,5 @@ public sealed class SourcePortPrototype : DevicePortPrototype, IPrototype /// default-link functionality. /// [DataField("defaultLinks", customTypeSerializer: typeof(PrototypeIdHashSetSerializer))] - public readonly HashSet? DefaultLinks; + public HashSet? DefaultLinks; } diff --git a/Content.Shared/DeviceNetwork/Components/DeviceListComponent.cs b/Content.Shared/DeviceNetwork/Components/DeviceListComponent.cs index e52ac766ba..a85ea1b6f8 100644 --- a/Content.Shared/DeviceNetwork/Components/DeviceListComponent.cs +++ b/Content.Shared/DeviceNetwork/Components/DeviceListComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.DeviceNetwork.Components; [RegisterComponent] [NetworkedComponent] [Access(typeof(SharedDeviceListSystem))] -public sealed class DeviceListComponent : Component +public sealed partial class DeviceListComponent : Component { /// /// The list of devices can or can't connect to, depending on the field. diff --git a/Content.Shared/DeviceNetwork/Components/NetworkConfiguratorComponent.cs b/Content.Shared/DeviceNetwork/Components/NetworkConfiguratorComponent.cs index b0b675ac0b..57987cd6a8 100644 --- a/Content.Shared/DeviceNetwork/Components/NetworkConfiguratorComponent.cs +++ b/Content.Shared/DeviceNetwork/Components/NetworkConfiguratorComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.DeviceNetwork.Components; [RegisterComponent] [NetworkedComponent] [Access(typeof(SharedNetworkConfiguratorSystem))] -public sealed class NetworkConfiguratorComponent : Component +public sealed partial class NetworkConfiguratorComponent : Component { /// /// Determines whether the configurator is in linking mode or list mode diff --git a/Content.Shared/DeviceNetwork/DeviceFrequencyPrototype.cs b/Content.Shared/DeviceNetwork/DeviceFrequencyPrototype.cs index fb9da7cbd2..2e6ef4d1a0 100644 --- a/Content.Shared/DeviceNetwork/DeviceFrequencyPrototype.cs +++ b/Content.Shared/DeviceNetwork/DeviceFrequencyPrototype.cs @@ -11,7 +11,7 @@ namespace Content.Shared.DeviceNetwork; public sealed class DeviceFrequencyPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; // TODO Somehow Allow per-station or some other type of named but randomized frequencies? [DataField("frequency", required: true)] diff --git a/Content.Shared/DeviceNetwork/Systems/SharedNetworkConfiguratorSystem.cs b/Content.Shared/DeviceNetwork/Systems/SharedNetworkConfiguratorSystem.cs index 9a9d7e1885..716f49eb2d 100644 --- a/Content.Shared/DeviceNetwork/Systems/SharedNetworkConfiguratorSystem.cs +++ b/Content.Shared/DeviceNetwork/Systems/SharedNetworkConfiguratorSystem.cs @@ -34,7 +34,7 @@ public abstract class SharedNetworkConfiguratorSystem : EntitySystem } } -public sealed class ClearAllOverlaysEvent : InstantActionEvent +public sealed partial class ClearAllOverlaysEvent : InstantActionEvent { } diff --git a/Content.Shared/Devour/Components/DevourerComponent.cs b/Content.Shared/Devour/Components/DevourerComponent.cs index d2831683b0..ccba438a17 100644 --- a/Content.Shared/Devour/Components/DevourerComponent.cs +++ b/Content.Shared/Devour/Components/DevourerComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Devour.Components; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedDevourSystem))] -public sealed class DevourerComponent : Component +public sealed partial class DevourerComponent : Component { [DataField("devourAction")] public EntityTargetAction? DevourAction; diff --git a/Content.Shared/Devour/SharedDevourSystem.cs b/Content.Shared/Devour/SharedDevourSystem.cs index 117d010606..46c6e4236e 100644 --- a/Content.Shared/Devour/SharedDevourSystem.cs +++ b/Content.Shared/Devour/SharedDevourSystem.cs @@ -81,10 +81,10 @@ public abstract class SharedDevourSystem : EntitySystem } } -public sealed class DevourActionEvent : EntityTargetActionEvent { } +public sealed partial class DevourActionEvent : EntityTargetActionEvent { } [Serializable, NetSerializable] -public sealed class DevourDoAfterEvent : SimpleDoAfterEvent { } +public sealed partial class DevourDoAfterEvent : SimpleDoAfterEvent { } [Serializable, NetSerializable] public enum FoodPreference : byte diff --git a/Content.Shared/Dice/DiceComponent.cs b/Content.Shared/Dice/DiceComponent.cs index 53b640effb..e2e23890a4 100644 --- a/Content.Shared/Dice/DiceComponent.cs +++ b/Content.Shared/Dice/DiceComponent.cs @@ -5,26 +5,26 @@ using Robust.Shared.Serialization; namespace Content.Shared.Dice; [RegisterComponent, NetworkedComponent, Access(typeof(SharedDiceSystem))] -public sealed class DiceComponent : Component +public sealed partial class DiceComponent : Component { [DataField("sound")] - public SoundSpecifier Sound { get; } = new SoundCollectionSpecifier("Dice"); + public SoundSpecifier Sound { get; private set; } = new SoundCollectionSpecifier("Dice"); /// /// Multiplier for the value of a die. Applied after the . /// [DataField("multiplier")] - public int Multiplier { get; } = 1; + public int Multiplier { get; private set; } = 1; /// /// Quantity that is subtracted from the value of a die. Can be used to make dice that start at "0". Applied /// before the /// [DataField("offset")] - public int Offset { get; } = 0; + public int Offset { get; private set; } = 0; [DataField("sides")] - public int Sides { get; } = 20; + public int Sides { get; private set; } = 20; /// /// The currently displayed value. diff --git a/Content.Shared/Disposal/Components/SharedDisposalRouterComponent.cs b/Content.Shared/Disposal/Components/SharedDisposalRouterComponent.cs index 8a9c1112db..6d78a4c526 100644 --- a/Content.Shared/Disposal/Components/SharedDisposalRouterComponent.cs +++ b/Content.Shared/Disposal/Components/SharedDisposalRouterComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Disposal.Components { - public sealed class SharedDisposalRouterComponent : Component + public sealed partial class SharedDisposalRouterComponent : Component { public static readonly Regex TagRegex = new("^[a-zA-Z0-9, ]*$", RegexOptions.Compiled); diff --git a/Content.Shared/Disposal/Components/SharedDisposalTaggerComponent.cs b/Content.Shared/Disposal/Components/SharedDisposalTaggerComponent.cs index cd5bed4611..d9099a56e9 100644 --- a/Content.Shared/Disposal/Components/SharedDisposalTaggerComponent.cs +++ b/Content.Shared/Disposal/Components/SharedDisposalTaggerComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Disposal.Components { - public sealed class SharedDisposalTaggerComponent : Component + public sealed partial class SharedDisposalTaggerComponent : Component { public static readonly Regex TagRegex = new("^[a-zA-Z0-9 ]*$", RegexOptions.Compiled); diff --git a/Content.Shared/Disposal/Components/SharedDisposalUnitComponent.cs b/Content.Shared/Disposal/Components/SharedDisposalUnitComponent.cs index 66bb5de0c6..111de81e6a 100644 --- a/Content.Shared/Disposal/Components/SharedDisposalUnitComponent.cs +++ b/Content.Shared/Disposal/Components/SharedDisposalUnitComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Shared.Disposal.Components; [NetworkedComponent] -public abstract class SharedDisposalUnitComponent : Component +public abstract partial class SharedDisposalUnitComponent : Component { public const string ContainerId = "disposals"; @@ -28,7 +28,7 @@ public abstract class SharedDisposalUnitComponent : Component /// We'll track whatever just left disposals so we know what collision we need to ignore until they stop intersecting our BB. /// [ViewVariables, DataField("recentlyEjected")] - public readonly List RecentlyEjected = new(); + public List RecentlyEjected = new(); /// /// Next time the disposal unit will be pressurized. diff --git a/Content.Shared/Disposal/SharedDisposalUnitSystem.cs b/Content.Shared/Disposal/SharedDisposalUnitSystem.cs index 7ca2959443..e96c45a62c 100644 --- a/Content.Shared/Disposal/SharedDisposalUnitSystem.cs +++ b/Content.Shared/Disposal/SharedDisposalUnitSystem.cs @@ -18,7 +18,7 @@ using Robust.Shared.Timing; namespace Content.Shared.Disposal; [Serializable, NetSerializable] -public sealed class DisposalDoAfterEvent : SimpleDoAfterEvent +public sealed partial class DisposalDoAfterEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/DoAfter/ActiveDoAfterComponent.cs b/Content.Shared/DoAfter/ActiveDoAfterComponent.cs index 186b102f68..9554f9e5cf 100644 --- a/Content.Shared/DoAfter/ActiveDoAfterComponent.cs +++ b/Content.Shared/DoAfter/ActiveDoAfterComponent.cs @@ -6,6 +6,6 @@ namespace Content.Shared.DoAfter; /// Added to entities that are currently performing any doafters. /// [RegisterComponent] -public sealed class ActiveDoAfterComponent : Component +public sealed partial class ActiveDoAfterComponent : Component { } diff --git a/Content.Shared/DoAfter/DoAfter.cs b/Content.Shared/DoAfter/DoAfter.cs index ed8db8c7b2..248227c8af 100644 --- a/Content.Shared/DoAfter/DoAfter.cs +++ b/Content.Shared/DoAfter/DoAfter.cs @@ -8,7 +8,7 @@ namespace Content.Shared.DoAfter; [Serializable, NetSerializable] [DataDefinition] [Access(typeof(SharedDoAfterSystem))] -public sealed class DoAfter +public sealed partial class DoAfter { [DataField("index", required:true)] public ushort Index; @@ -16,7 +16,7 @@ public sealed class DoAfter public DoAfterId Id => new(Args.User, Index); [IncludeDataField] - public readonly DoAfterArgs Args = default!; + public DoAfterArgs Args = default!; /// /// Time at which this do after was started. diff --git a/Content.Shared/DoAfter/DoAfterArgs.cs b/Content.Shared/DoAfter/DoAfterArgs.cs index 618297d235..7c68c8b74a 100644 --- a/Content.Shared/DoAfter/DoAfterArgs.cs +++ b/Content.Shared/DoAfter/DoAfterArgs.cs @@ -5,38 +5,38 @@ namespace Content.Shared.DoAfter; [Serializable, NetSerializable] [DataDefinition] -public sealed class DoAfterArgs +public sealed partial class DoAfterArgs { /// /// The entity invoking do_after /// [DataField("user", required: true)] - public readonly EntityUid User; + public EntityUid User; /// /// How long does the do_after require to complete /// [DataField("delay", required: true)] - public readonly TimeSpan Delay; + public TimeSpan Delay; /// /// Applicable target (if relevant) /// [DataField("target")] - public readonly EntityUid? Target; + public EntityUid? Target; /// /// Entity used by the User on the Target. /// [DataField("using")] - public readonly EntityUid? Used; + public EntityUid? Used; #region Event options /// /// The event that will get raised when the DoAfter has finished. If null, this will simply raise a /// [DataField("event", required: true)] - public readonly DoAfterEvent Event = default!; + public DoAfterEvent Event = default!; /// /// This option determines how frequently the DoAfterAttempt event will get raised. Defaults to never raising the @@ -49,7 +49,7 @@ public sealed class DoAfterArgs /// Entity which will receive the directed event. If null, no directed event will be raised. /// [DataField("eventTarget")] - public readonly EntityUid? EventTarget; + public EntityUid? EventTarget; /// /// Should the DoAfter event broadcast? If this is false, then should be a valid entity. diff --git a/Content.Shared/DoAfter/DoAfterComponent.cs b/Content.Shared/DoAfter/DoAfterComponent.cs index cebd171176..7fb42b34b9 100644 --- a/Content.Shared/DoAfter/DoAfterComponent.cs +++ b/Content.Shared/DoAfter/DoAfterComponent.cs @@ -6,13 +6,13 @@ namespace Content.Shared.DoAfter; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedDoAfterSystem))] -public sealed class DoAfterComponent : Component +public sealed partial class DoAfterComponent : Component { [DataField("nextId")] public ushort NextId; [DataField("doAfters")] - public readonly Dictionary DoAfters = new(); + public Dictionary DoAfters = new(); // Used by obsolete async do afters public readonly Dictionary> AwaitedDoAfters = new(); diff --git a/Content.Shared/DoAfter/DoAfterEvent.cs b/Content.Shared/DoAfter/DoAfterEvent.cs index 454aa6a1ef..c01505f9b2 100644 --- a/Content.Shared/DoAfter/DoAfterEvent.cs +++ b/Content.Shared/DoAfter/DoAfterEvent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.DoAfter; /// [Serializable, NetSerializable] [ImplicitDataDefinitionForInheritors] -public abstract class DoAfterEvent : HandledEntityEventArgs +public abstract partial class DoAfterEvent : HandledEntityEventArgs { /// /// The do after that triggered this event. This will be set by the do after system before the event is raised. @@ -44,7 +44,7 @@ public abstract class DoAfterEvent : HandledEntityEventArgs /// If an event actually contains data, it should actually override Clone(). /// [Serializable, NetSerializable] -public abstract class SimpleDoAfterEvent : DoAfterEvent +public abstract partial class SimpleDoAfterEvent : DoAfterEvent { // TODO: Find some way to enforce that inheritors don't store data? // Alternatively, I just need to allow generics to be networked. @@ -57,7 +57,7 @@ public abstract class SimpleDoAfterEvent : DoAfterEvent // Placeholder for obsolete async do afters [Serializable, NetSerializable] [Obsolete("Dont use async DoAfters")] -public sealed class AwaitedDoAfterEvent : SimpleDoAfterEvent +public sealed partial class AwaitedDoAfterEvent : SimpleDoAfterEvent { } @@ -65,7 +65,7 @@ public sealed class AwaitedDoAfterEvent : SimpleDoAfterEvent /// This event will optionally get raised every tick while a do-after is in progress to check whether the do-after /// should be canceled. /// -public sealed class DoAfterAttemptEvent : CancellableEntityEventArgs where TEvent : DoAfterEvent +public sealed partial class DoAfterAttemptEvent : CancellableEntityEventArgs where TEvent : DoAfterEvent { /// /// The do after that triggered this event. diff --git a/Content.Shared/Doors/Components/AirlockComponent.cs b/Content.Shared/Doors/Components/AirlockComponent.cs index 3e73a7ef9d..c64e1ac518 100644 --- a/Content.Shared/Doors/Components/AirlockComponent.cs +++ b/Content.Shared/Doors/Components/AirlockComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Doors.Components; /// [RegisterComponent, NetworkedComponent] [Access(typeof(SharedAirlockSystem), Friend = AccessPermissions.ReadWriteExecute, Other = AccessPermissions.Read)] -public sealed class AirlockComponent : Component +public sealed partial class AirlockComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("safety")] @@ -27,7 +27,7 @@ public sealed class AirlockComponent : Component /// so this default is closer to 6 effectively on e.g. jaws (9 seconds when applied to other default.) /// [DataField("poweredPryModifier")] - public readonly float PoweredPryModifier = 9f; + public float PoweredPryModifier = 9f; /// /// Whether the maintenance panel should be visible even if the airlock is opened. diff --git a/Content.Shared/Doors/Components/DoorBoltComponent.cs b/Content.Shared/Doors/Components/DoorBoltComponent.cs index 8ce744e36c..52f7d56db5 100644 --- a/Content.Shared/Doors/Components/DoorBoltComponent.cs +++ b/Content.Shared/Doors/Components/DoorBoltComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Doors.Components; /// [RegisterComponent, NetworkedComponent] [Access(typeof(SharedDoorBoltSystem))] -public sealed class DoorBoltComponent : Component +public sealed partial class DoorBoltComponent : Component { /// /// Sound to play when the bolts on the airlock go up. diff --git a/Content.Shared/Doors/Components/DoorComponent.cs b/Content.Shared/Doors/Components/DoorComponent.cs index 2be28ab5c4..847ea2ba92 100644 --- a/Content.Shared/Doors/Components/DoorComponent.cs +++ b/Content.Shared/Doors/Components/DoorComponent.cs @@ -15,7 +15,7 @@ namespace Content.Shared.Doors.Components; [NetworkedComponent] [RegisterComponent] -public sealed class DoorComponent : Component +public sealed partial class DoorComponent : Component { /// /// The current state of the door -- whether it is open, closed, opening, or closing. @@ -36,34 +36,34 @@ public sealed class DoorComponent : Component /// Closing time until impassable. Total time is this plus . /// [DataField("closeTimeOne")] - public readonly TimeSpan CloseTimeOne = TimeSpan.FromSeconds(0.4f); + public TimeSpan CloseTimeOne = TimeSpan.FromSeconds(0.4f); /// /// Closing time until fully closed. Total time is this plus . /// [DataField("closeTimeTwo")] - public readonly TimeSpan CloseTimeTwo = TimeSpan.FromSeconds(0.2f); + public TimeSpan CloseTimeTwo = TimeSpan.FromSeconds(0.2f); /// /// Opening time until passable. Total time is this plus . /// [DataField("openTimeOne")] - public readonly TimeSpan OpenTimeOne = TimeSpan.FromSeconds(0.4f); + public TimeSpan OpenTimeOne = TimeSpan.FromSeconds(0.4f); /// /// Opening time until fully open. Total time is this plus . /// [DataField("openTimeTwo")] - public readonly TimeSpan OpenTimeTwo = TimeSpan.FromSeconds(0.2f); + public TimeSpan OpenTimeTwo = TimeSpan.FromSeconds(0.2f); /// /// Interval between deny sounds & visuals; /// [DataField("denyDuration")] - public readonly TimeSpan DenyDuration = TimeSpan.FromSeconds(0.45f); + public TimeSpan DenyDuration = TimeSpan.FromSeconds(0.45f); [DataField("emagDuration")] - public readonly TimeSpan EmagDuration = TimeSpan.FromSeconds(0.8f); + public TimeSpan EmagDuration = TimeSpan.FromSeconds(0.8f); /// /// When the door is active, this is the time when the state will next update. @@ -116,7 +116,7 @@ public sealed class DoorComponent : Component /// again. Total stun time is actually given by this plus . /// [DataField("doorStunTime")] - public readonly TimeSpan DoorStunTime = TimeSpan.FromSeconds(2f); + public TimeSpan DoorStunTime = TimeSpan.FromSeconds(2f); [DataField("crushDamage")] public DamageSpecifier? CrushDamage; @@ -126,14 +126,14 @@ public sealed class DoorComponent : Component /// stun, not whether it can close despite entities being in the way. /// [DataField("canCrush")] - public readonly bool CanCrush = true; + public bool CanCrush = true; /// /// Whether to check for colliding entities before closing. This may be overridden by other system by subscribing to /// . For example, hacked airlocks will set this to false. /// [DataField("performCollisionCheck")] - public readonly bool PerformCollisionCheck = true; + public bool PerformCollisionCheck = true; /// /// List of EntityUids of entities we're currently crushing. Cleared in OnPartialOpen(). diff --git a/Content.Shared/Doors/Components/FirelockComponent.cs b/Content.Shared/Doors/Components/FirelockComponent.cs index ceef5964a3..97e57185ca 100644 --- a/Content.Shared/Doors/Components/FirelockComponent.cs +++ b/Content.Shared/Doors/Components/FirelockComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Doors.Components /// retaining pressure.. /// [RegisterComponent] - public sealed class FirelockComponent : Component + public sealed partial class FirelockComponent : Component { /// /// Pry time modifier to be used when the firelock is currently closed due to fire or pressure. diff --git a/Content.Shared/Doors/Systems/SharedDoorSystem.cs b/Content.Shared/Doors/Systems/SharedDoorSystem.cs index b5528ea0d2..4b2da83df7 100644 --- a/Content.Shared/Doors/Systems/SharedDoorSystem.cs +++ b/Content.Shared/Doors/Systems/SharedDoorSystem.cs @@ -19,7 +19,7 @@ using Robust.Shared.Timing; namespace Content.Shared.Doors.Systems; -public abstract class SharedDoorSystem : EntitySystem +public abstract partial class SharedDoorSystem : EntitySystem { [Dependency] protected readonly IGameTiming GameTiming = default!; [Dependency] protected readonly SharedPhysicsSystem PhysicsSystem = default!; @@ -664,7 +664,7 @@ public abstract class SharedDoorSystem : EntitySystem protected abstract void PlaySound(EntityUid uid, SoundSpecifier soundSpecifier, AudioParams audioParams, EntityUid? predictingPlayer, bool predicted); [Serializable, NetSerializable] - protected sealed class DoorPryDoAfterEvent : SimpleDoAfterEvent + protected sealed partial class DoorPryDoAfterEvent : SimpleDoAfterEvent { } } diff --git a/Content.Shared/Dragon/SharedDragonRiftComponent.cs b/Content.Shared/Dragon/SharedDragonRiftComponent.cs index 5f629e8e87..0d2bf44018 100644 --- a/Content.Shared/Dragon/SharedDragonRiftComponent.cs +++ b/Content.Shared/Dragon/SharedDragonRiftComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Dragon; [NetworkedComponent] -public abstract class SharedDragonRiftComponent : Component +public abstract partial class SharedDragonRiftComponent : Component { [DataField("state")] public DragonRiftState State = DragonRiftState.Charging; diff --git a/Content.Shared/Drugs/SeeingRainbowsComponent.cs b/Content.Shared/Drugs/SeeingRainbowsComponent.cs index 50fc25494f..221599c26e 100644 --- a/Content.Shared/Drugs/SeeingRainbowsComponent.cs +++ b/Content.Shared/Drugs/SeeingRainbowsComponent.cs @@ -6,4 +6,4 @@ namespace Content.Shared.Drugs; /// Exists for use as a status effect. Adds a shader to the client that scales with the effect duration. /// [RegisterComponent, NetworkedComponent] -public sealed class SeeingRainbowsComponent : Component { } +public sealed partial class SeeingRainbowsComponent : Component { } diff --git a/Content.Shared/Drunk/DrunkComponent.cs b/Content.Shared/Drunk/DrunkComponent.cs index 0d053bf753..61c195d27e 100644 --- a/Content.Shared/Drunk/DrunkComponent.cs +++ b/Content.Shared/Drunk/DrunkComponent.cs @@ -3,4 +3,4 @@ using Robust.Shared.GameStates; namespace Content.Shared.Drunk; [RegisterComponent, NetworkedComponent] -public sealed class DrunkComponent : Component { } +public sealed partial class DrunkComponent : Component { } diff --git a/Content.Shared/Effects/ColorFlashEffectComponent.cs b/Content.Shared/Effects/ColorFlashEffectComponent.cs index 3a9895e9c0..8300bef1b8 100644 --- a/Content.Shared/Effects/ColorFlashEffectComponent.cs +++ b/Content.Shared/Effects/ColorFlashEffectComponent.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Effects; /// Stores the original sprite color for flashing entity to be able to restore it later. /// [RegisterComponent] -public sealed class ColorFlashEffectComponent : Component +public sealed partial class ColorFlashEffectComponent : Component { [ViewVariables] public Color Color = Color.White; diff --git a/Content.Shared/Electrocution/ElectrocutedComponent.cs b/Content.Shared/Electrocution/ElectrocutedComponent.cs index 3ecd884527..f71ba5b715 100644 --- a/Content.Shared/Electrocution/ElectrocutedComponent.cs +++ b/Content.Shared/Electrocution/ElectrocutedComponent.cs @@ -1,7 +1,7 @@ namespace Content.Shared.Electrocution { [RegisterComponent] - public sealed class ElectrocutedComponent : Component + public sealed partial class ElectrocutedComponent : Component { } } diff --git a/Content.Shared/Electrocution/InsulatedComponent.cs b/Content.Shared/Electrocution/InsulatedComponent.cs index c83a4501b7..cd4e5e32c5 100644 --- a/Content.Shared/Electrocution/InsulatedComponent.cs +++ b/Content.Shared/Electrocution/InsulatedComponent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Electrocution { [Access(typeof(SharedElectrocutionSystem))] [RegisterComponent, NetworkedComponent] - public sealed class InsulatedComponent : Component + public sealed partial class InsulatedComponent : Component { /// /// Siemens coefficient. Zero means completely insulated. diff --git a/Content.Shared/Emag/Components/EmaggedComponent.cs b/Content.Shared/Emag/Components/EmaggedComponent.cs index 1b66357f3e..337f1a8e56 100644 --- a/Content.Shared/Emag/Components/EmaggedComponent.cs +++ b/Content.Shared/Emag/Components/EmaggedComponent.cs @@ -6,6 +6,6 @@ namespace Content.Shared.Emag.Components; /// Marker component for emagged entities /// [RegisterComponent, NetworkedComponent] -public sealed class EmaggedComponent : Component +public sealed partial class EmaggedComponent : Component { } diff --git a/Content.Shared/Emoting/EmotingComponent.cs b/Content.Shared/Emoting/EmotingComponent.cs index 2a1bca85b2..a7a1542a91 100644 --- a/Content.Shared/Emoting/EmotingComponent.cs +++ b/Content.Shared/Emoting/EmotingComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Emoting { [RegisterComponent, NetworkedComponent] - public sealed class EmotingComponent : Component + public sealed partial class EmotingComponent : Component { [DataField("enabled"), Access(typeof(EmoteSystem), Friend = AccessPermissions.ReadWrite, diff --git a/Content.Shared/Emp/EmpDisabledComponent.cs b/Content.Shared/Emp/EmpDisabledComponent.cs index c84bab9d4d..33ba619a0d 100644 --- a/Content.Shared/Emp/EmpDisabledComponent.cs +++ b/Content.Shared/Emp/EmpDisabledComponent.cs @@ -5,11 +5,11 @@ namespace Content.Shared.Emp; /// /// While entity has this component it is "disabled" by EMP. -/// Add desired behaviour in other systems +/// Add desired behaviour in other systems /// [RegisterComponent, NetworkedComponent] [Access(typeof(SharedEmpSystem))] -public sealed class EmpDisabledComponent : Component +public sealed partial class EmpDisabledComponent : Component { /// /// Moment of time when component is removed and entity stops being "disabled" diff --git a/Content.Shared/Ensnaring/Components/EnsnareableComponent.cs b/Content.Shared/Ensnaring/Components/EnsnareableComponent.cs index e0c3806996..553f6df1c7 100644 --- a/Content.Shared/Ensnaring/Components/EnsnareableComponent.cs +++ b/Content.Shared/Ensnaring/Components/EnsnareableComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Ensnaring.Components; /// Use this on an entity that you would like to be ensnared by anything that has the /// [RegisterComponent, NetworkedComponent] -public sealed class EnsnareableComponent : Component +public sealed partial class EnsnareableComponent : Component { /// /// How much should this slow down the entities walk? diff --git a/Content.Shared/Ensnaring/Components/EnsnaringComponent.cs b/Content.Shared/Ensnaring/Components/EnsnaringComponent.cs index 1604f7472b..e7d769d339 100644 --- a/Content.Shared/Ensnaring/Components/EnsnaringComponent.cs +++ b/Content.Shared/Ensnaring/Components/EnsnaringComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Ensnaring.Components; /// Use this on something you want to use to ensnare an entity with /// [RegisterComponent, NetworkedComponent] -public sealed class EnsnaringComponent : Component +public sealed partial class EnsnaringComponent : Component { /// /// How long it should take to free someone else. diff --git a/Content.Shared/Ensnaring/SharedEnsnareableSystem.cs b/Content.Shared/Ensnaring/SharedEnsnareableSystem.cs index 3486a29251..4f35dc583a 100644 --- a/Content.Shared/Ensnaring/SharedEnsnareableSystem.cs +++ b/Content.Shared/Ensnaring/SharedEnsnareableSystem.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Ensnaring; [Serializable, NetSerializable] -public sealed class EnsnareableDoAfterEvent : SimpleDoAfterEvent +public sealed partial class EnsnareableDoAfterEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/EntityList/EntityListPrototype.cs b/Content.Shared/EntityList/EntityListPrototype.cs index 222d436952..4ba6dbd7ca 100644 --- a/Content.Shared/EntityList/EntityListPrototype.cs +++ b/Content.Shared/EntityList/EntityListPrototype.cs @@ -9,10 +9,10 @@ namespace Content.Shared.EntityList { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("entities", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public ImmutableList EntityIds { get; } = ImmutableList.Empty; + public ImmutableList EntityIds { get; private set; } = ImmutableList.Empty; public IEnumerable Entities(IPrototypeManager? prototypeManager = null) { diff --git a/Content.Shared/EntityList/EntityLootTablePrototype.cs b/Content.Shared/EntityList/EntityLootTablePrototype.cs index df81b454e0..06b33eb7f6 100644 --- a/Content.Shared/EntityList/EntityLootTablePrototype.cs +++ b/Content.Shared/EntityList/EntityLootTablePrototype.cs @@ -9,7 +9,7 @@ namespace Content.Shared.EntityList; public sealed class EntityLootTablePrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("entries")] public ImmutableList Entries = ImmutableList.Empty; diff --git a/Content.Shared/Examine/ExaminerComponent.cs b/Content.Shared/Examine/ExaminerComponent.cs index 3a931d961f..f46754eea8 100644 --- a/Content.Shared/Examine/ExaminerComponent.cs +++ b/Content.Shared/Examine/ExaminerComponent.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Examine /// Component required for a player to be able to examine things. /// [RegisterComponent] - public sealed class ExaminerComponent : Component + public sealed partial class ExaminerComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("skipChecks")] diff --git a/Content.Shared/Examine/GroupExamineComponent.cs b/Content.Shared/Examine/GroupExamineComponent.cs index 529ad6075d..a61971a2c5 100644 --- a/Content.Shared/Examine/GroupExamineComponent.cs +++ b/Content.Shared/Examine/GroupExamineComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Examine /// This component groups examine messages together /// [RegisterComponent] - public sealed class GroupExamineComponent : Component + public sealed partial class GroupExamineComponent : Component { /// /// A list of ExamineGroups. @@ -28,7 +28,7 @@ namespace Content.Shared.Examine } [DataDefinition] - public sealed class ExamineGroup + public sealed partial class ExamineGroup { /// /// The title of the Examine Group. Localized string that gets added to the examine tooltip. @@ -74,7 +74,7 @@ namespace Content.Shared.Examine /// An entry used when showing examine details /// [Serializable, NetSerializable, DataDefinition] - public sealed class ExamineEntry + public sealed partial class ExamineEntry { /// /// Which component does this entry relate to? diff --git a/Content.Shared/Exchanger/ExchangerDoAfterEvent.cs b/Content.Shared/Exchanger/ExchangerDoAfterEvent.cs index 0060cf7f57..921b0697eb 100644 --- a/Content.Shared/Exchanger/ExchangerDoAfterEvent.cs +++ b/Content.Shared/Exchanger/ExchangerDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Exchanger; [Serializable, NetSerializable] -public sealed class ExchangerDoAfterEvent : SimpleDoAfterEvent +public sealed partial class ExchangerDoAfterEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/Explosion/ExplosionPrototype.cs b/Content.Shared/Explosion/ExplosionPrototype.cs index 927b963f9e..a2fa7d632e 100644 --- a/Content.Shared/Explosion/ExplosionPrototype.cs +++ b/Content.Shared/Explosion/ExplosionPrototype.cs @@ -17,27 +17,27 @@ namespace Content.Shared.Explosion; public sealed class ExplosionPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Damage to deal to entities. This is scaled by the explosion intensity. /// [DataField("damagePerIntensity", required: true)] - public readonly DamageSpecifier DamagePerIntensity = default!; + public DamageSpecifier DamagePerIntensity = default!; /// /// This set of points, together with define a function that maps the /// explosion intensity to a tile break chance via linear interpolation. /// [DataField("tileBreakChance")] - private readonly float[] _tileBreakChance = { 0f, 1f }; + private float[] _tileBreakChance = { 0f, 1f }; /// /// This set of points, together with define a function that maps the /// explosion intensity to a tile break chance via linear interpolation. /// [DataField("tileBreakIntensity")] - private readonly float[] _tileBreakIntensity = {0f, 15f }; + private float[] _tileBreakIntensity = {0f, 15f }; /// /// When a tile is broken by an explosion, the intensity is reduced by this amount and is used to try and @@ -48,25 +48,25 @@ public sealed class ExplosionPrototype : IPrototype /// chance to create a space tile. /// [DataField("tileBreakRerollReduction")] - public readonly float TileBreakRerollReduction = 10f; + public float TileBreakRerollReduction = 10f; /// /// Color emitted by a point light at the center of the explosion. /// [DataField("lightColor")] - public readonly Color LightColor = Color.Orange; + public Color LightColor = Color.Orange; /// /// Color used to modulate the fire texture. /// [DataField("fireColor")] - public readonly Color? FireColor; + public Color? FireColor; [DataField("Sound")] - public readonly SoundSpecifier Sound = new SoundCollectionSpecifier("explosion"); + public SoundSpecifier Sound = new SoundCollectionSpecifier("explosion"); [DataField("texturePath")] - public readonly ResPath TexturePath = new("/Textures/Effects/fire.rsi"); + public ResPath TexturePath = new("/Textures/Effects/fire.rsi"); /// /// How intense does the explosion have to be at a tile to advance to the next fire texture state? @@ -77,7 +77,7 @@ public sealed class ExplosionPrototype : IPrototype // Theres probably a better way to do this. Currently Atmos just hard codes a constant int, so I have no one to // steal code from. [DataField("fireStates")] - public readonly int FireStates = 3; + public int FireStates = 3; /// /// Basic function for linear interpolation of the _tileBreakChance and _tileBreakIntensity arrays diff --git a/Content.Shared/Explosion/ExplosionVisualsComponent.cs b/Content.Shared/Explosion/ExplosionVisualsComponent.cs index 5d1400cedb..24bcdf5d45 100644 --- a/Content.Shared/Explosion/ExplosionVisualsComponent.cs +++ b/Content.Shared/Explosion/ExplosionVisualsComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Explosion; /// Component that is used to send explosion overlay/visual data to an abstract explosion entity. /// [RegisterComponent, NetworkedComponent] -public sealed class ExplosionVisualsComponent : Component +public sealed partial class ExplosionVisualsComponent : Component { public MapCoordinates Epicenter; public Dictionary>? SpaceTiles; diff --git a/Content.Shared/Explosion/SharedTriggerOnProximityComponent.cs b/Content.Shared/Explosion/SharedTriggerOnProximityComponent.cs index 72c17e8936..fdc5cd1134 100644 --- a/Content.Shared/Explosion/SharedTriggerOnProximityComponent.cs +++ b/Content.Shared/Explosion/SharedTriggerOnProximityComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Explosion; [NetworkedComponent] -public abstract class SharedTriggerOnProximityComponent : Component +public abstract partial class SharedTriggerOnProximityComponent : Component { } diff --git a/Content.Shared/Extinguisher/SharedFireExtinguisherComponent.cs b/Content.Shared/Extinguisher/SharedFireExtinguisherComponent.cs index a5e4c7efb2..53d58f1d80 100644 --- a/Content.Shared/Extinguisher/SharedFireExtinguisherComponent.cs +++ b/Content.Shared/Extinguisher/SharedFireExtinguisherComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Extinguisher; -public abstract class SharedFireExtinguisherComponent : Component +public abstract partial class SharedFireExtinguisherComponent : Component { [DataField("refillSound")] public SoundSpecifier RefillSound = new SoundPathSpecifier("/Audio/Effects/refill.ogg"); @@ -12,7 +12,7 @@ public abstract class SharedFireExtinguisherComponent : Component [DataField("safety")] public bool Safety = true; [DataField("safetySound")] - public SoundSpecifier SafetySound { get; } = new SoundPathSpecifier("/Audio/Machines/button.ogg"); + public SoundSpecifier SafetySound { get; private set; } = new SoundPathSpecifier("/Audio/Machines/button.ogg"); } diff --git a/Content.Shared/Eye/Blinding/Components/BlindfoldComponent.cs b/Content.Shared/Eye/Blinding/Components/BlindfoldComponent.cs index 85268d8545..c1ab3b87d2 100644 --- a/Content.Shared/Eye/Blinding/Components/BlindfoldComponent.cs +++ b/Content.Shared/Eye/Blinding/Components/BlindfoldComponent.cs @@ -7,6 +7,6 @@ namespace Content.Shared.Eye.Blinding.Components; /// [RegisterComponent] [NetworkedComponent] -public sealed class BlindfoldComponent : Component +public sealed partial class BlindfoldComponent : Component { } diff --git a/Content.Shared/Eye/Blinding/Components/EyeProtectionComponent.cs b/Content.Shared/Eye/Blinding/Components/EyeProtectionComponent.cs index eaf3bdb924..eab9e6912b 100644 --- a/Content.Shared/Eye/Blinding/Components/EyeProtectionComponent.cs +++ b/Content.Shared/Eye/Blinding/Components/EyeProtectionComponent.cs @@ -4,12 +4,12 @@ namespace Content.Shared.Eye.Blinding.Components; /// For welding masks, sunglasses, etc. /// [RegisterComponent] -public sealed class EyeProtectionComponent : Component +public sealed partial class EyeProtectionComponent : Component { /// /// How many seconds to subtract from the status effect. If it's greater than the source /// of blindness, do not blind. /// [DataField("protectionTime")] - public readonly TimeSpan ProtectionTime = TimeSpan.FromSeconds(10); + public TimeSpan ProtectionTime = TimeSpan.FromSeconds(10); } diff --git a/Content.Shared/Eye/Blinding/Components/TemporaryBlindnessComponent.cs b/Content.Shared/Eye/Blinding/Components/TemporaryBlindnessComponent.cs index 41049e3671..1f89c3df86 100644 --- a/Content.Shared/Eye/Blinding/Components/TemporaryBlindnessComponent.cs +++ b/Content.Shared/Eye/Blinding/Components/TemporaryBlindnessComponent.cs @@ -6,6 +6,6 @@ namespace Content.Shared.Eye.Blinding.Components; /// Component used for the blind status effect. /// [NetworkedComponent, RegisterComponent] -public sealed class TemporaryBlindnessComponent : Component +public sealed partial class TemporaryBlindnessComponent : Component { } diff --git a/Content.Shared/Flash/FlashableComponent.cs b/Content.Shared/Flash/FlashableComponent.cs index c51933e0a6..e20e2e7941 100644 --- a/Content.Shared/Flash/FlashableComponent.cs +++ b/Content.Shared/Flash/FlashableComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Flash { [RegisterComponent, NetworkedComponent] - public sealed class FlashableComponent : Component + public sealed partial class FlashableComponent : Component { public float Duration; public TimeSpan LastFlash; diff --git a/Content.Shared/Fluids/AbsorbentComponent.cs b/Content.Shared/Fluids/AbsorbentComponent.cs index 8da715ce2f..450ecc0df6 100644 --- a/Content.Shared/Fluids/AbsorbentComponent.cs +++ b/Content.Shared/Fluids/AbsorbentComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Fluids; /// For entities that can clean up puddles /// [RegisterComponent, NetworkedComponent] -public sealed class AbsorbentComponent : Component +public sealed partial class AbsorbentComponent : Component { public const string SolutionName = "absorbed"; diff --git a/Content.Shared/Fluids/Components/DrainComponent.cs b/Content.Shared/Fluids/Components/DrainComponent.cs index 6c368336ee..84331851d1 100644 --- a/Content.Shared/Fluids/Components/DrainComponent.cs +++ b/Content.Shared/Fluids/Components/DrainComponent.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Fluids.Components; /// Later this can be refactored into a proper Plunger component if needed. /// [RegisterComponent, Access(typeof(SharedDrainSystem))] -public sealed class DrainComponent : Component +public sealed partial class DrainComponent : Component { public const string SolutionName = "drainBuffer"; diff --git a/Content.Shared/Fluids/Components/PuddleComponent.cs b/Content.Shared/Fluids/Components/PuddleComponent.cs index 614d6701c5..4abacf1ac9 100644 --- a/Content.Shared/Fluids/Components/PuddleComponent.cs +++ b/Content.Shared/Fluids/Components/PuddleComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Fluids.Components /// Puddle on a floor /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedPuddleSystem))] - public sealed class PuddleComponent : Component + public sealed partial class PuddleComponent : Component { [DataField("spillSound")] public SoundSpecifier SpillSound = new SoundPathSpecifier("/Audio/Effects/Fluids/splat.ogg"); diff --git a/Content.Shared/Fluids/Events.cs b/Content.Shared/Fluids/Events.cs index 5cff7ea757..e281de9137 100644 --- a/Content.Shared/Fluids/Events.cs +++ b/Content.Shared/Fluids/Events.cs @@ -6,19 +6,19 @@ using Robust.Shared.Serialization; namespace Content.Shared.Fluids; [Serializable, NetSerializable] -public sealed class AbsorbantDoAfterEvent : DoAfterEvent +public sealed partial class AbsorbantDoAfterEvent : DoAfterEvent { [DataField("solution", required: true)] - public readonly string TargetSolution = default!; + public string TargetSolution = default!; [DataField("message", required: true)] - public readonly string Message = default!; + public string Message = default!; [DataField("sound", required: true)] - public readonly SoundSpecifier Sound = default!; + public SoundSpecifier Sound = default!; [DataField("transferAmount", required: true)] - public readonly FixedPoint2 TransferAmount; + public FixedPoint2 TransferAmount; private AbsorbantDoAfterEvent() { diff --git a/Content.Shared/Fluids/SharedDrainSystem.cs b/Content.Shared/Fluids/SharedDrainSystem.cs index 43df0c352b..f9bcee44ee 100644 --- a/Content.Shared/Fluids/SharedDrainSystem.cs +++ b/Content.Shared/Fluids/SharedDrainSystem.cs @@ -3,10 +3,10 @@ using Robust.Shared.Serialization; namespace Content.Shared.Fluids; -public class SharedDrainSystem : EntitySystem +public partial class SharedDrainSystem : EntitySystem { [Serializable, NetSerializable] - public sealed class DrainDoAfterEvent : SimpleDoAfterEvent + public sealed partial class DrainDoAfterEvent : SimpleDoAfterEvent { } } diff --git a/Content.Shared/Foldable/FoldableComponent.cs b/Content.Shared/Foldable/FoldableComponent.cs index ec29db7d98..eb166f786a 100644 --- a/Content.Shared/Foldable/FoldableComponent.cs +++ b/Content.Shared/Foldable/FoldableComponent.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Foldable; [RegisterComponent] [NetworkedComponent] [Access(typeof(SharedFoldableSystem))] -public sealed class FoldableComponent : Component +public sealed partial class FoldableComponent : Component { [DataField("folded")] public bool IsFolded = false; diff --git a/Content.Shared/Follower/Components/OrbitVisualsComponent.cs b/Content.Shared/Follower/Components/OrbitVisualsComponent.cs index 9b005baa6c..a1ee17c27f 100644 --- a/Content.Shared/Follower/Components/OrbitVisualsComponent.cs +++ b/Content.Shared/Follower/Components/OrbitVisualsComponent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Follower.Components; [RegisterComponent] [NetworkedComponent] -public sealed class OrbitVisualsComponent : Component +public sealed partial class OrbitVisualsComponent : Component { /// /// How long should the orbit animation last in seconds, before being randomized? diff --git a/Content.Shared/Forensics/Events.cs b/Content.Shared/Forensics/Events.cs index 7db2965c0e..d49bb24fbb 100644 --- a/Content.Shared/Forensics/Events.cs +++ b/Content.Shared/Forensics/Events.cs @@ -4,14 +4,14 @@ using Robust.Shared.Serialization; namespace Content.Shared.Forensics; [Serializable, NetSerializable] -public sealed class ForensicScannerDoAfterEvent : SimpleDoAfterEvent +public sealed partial class ForensicScannerDoAfterEvent : SimpleDoAfterEvent { } [Serializable, NetSerializable] -public sealed class ForensicPadDoAfterEvent : DoAfterEvent +public sealed partial class ForensicPadDoAfterEvent : DoAfterEvent { - [DataField("sample", required: true)] public readonly string Sample = default!; + [DataField("sample", required: true)] public string Sample = default!; private ForensicPadDoAfterEvent() { diff --git a/Content.Shared/Glue/GlueComponent.cs b/Content.Shared/Glue/GlueComponent.cs index b9a5ff70ad..4cbbc49737 100644 --- a/Content.Shared/Glue/GlueComponent.cs +++ b/Content.Shared/Glue/GlueComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Glue; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedGlueSystem))] -public sealed class GlueComponent : Component +public sealed partial class GlueComponent : Component { /// /// Noise made when glue applied. diff --git a/Content.Shared/Glue/GluedComponent.cs b/Content.Shared/Glue/GluedComponent.cs index 9d34d9722e..fd7a52fdb1 100644 --- a/Content.Shared/Glue/GluedComponent.cs +++ b/Content.Shared/Glue/GluedComponent.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Glue; [RegisterComponent] [Access(typeof(SharedGlueSystem))] -public sealed class GluedComponent : Component +public sealed partial class GluedComponent : Component { /// /// Reverts name to before prefix event (essentially removes prefix). diff --git a/Content.Shared/Gravity/FloatingVisualsComponent.cs b/Content.Shared/Gravity/FloatingVisualsComponent.cs index 53b28aef90..7cf6331e9e 100644 --- a/Content.Shared/Gravity/FloatingVisualsComponent.cs +++ b/Content.Shared/Gravity/FloatingVisualsComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Gravity; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedFloatingVisualizerSystem))] -public sealed class FloatingVisualsComponent : Component +public sealed partial class FloatingVisualsComponent : Component { /// /// How long it takes to go from the bottom of the animation to the top. diff --git a/Content.Shared/Gravity/GravityComponent.cs b/Content.Shared/Gravity/GravityComponent.cs index 0ddc2d275f..bbe3de69ea 100644 --- a/Content.Shared/Gravity/GravityComponent.cs +++ b/Content.Shared/Gravity/GravityComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Gravity { [RegisterComponent] [NetworkedComponent] - public sealed class GravityComponent : Component + public sealed partial class GravityComponent : Component { [DataField("gravityShakeSound")] public SoundSpecifier GravityShakeSound { get; set; } = new SoundPathSpecifier("/Audio/Effects/alert.ogg"); diff --git a/Content.Shared/Gravity/GravityShakeComponent.cs b/Content.Shared/Gravity/GravityShakeComponent.cs index 795c155a5e..5fc1e90230 100644 --- a/Content.Shared/Gravity/GravityShakeComponent.cs +++ b/Content.Shared/Gravity/GravityShakeComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Gravity; /// Indicates this entity is shaking due to gravity changes. /// [RegisterComponent, NetworkedComponent] -public sealed class GravityShakeComponent : Component +public sealed partial class GravityShakeComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("shakeTimes")] public int ShakeTimes; diff --git a/Content.Shared/Gravity/SharedGravityGeneratorComponent.cs b/Content.Shared/Gravity/SharedGravityGeneratorComponent.cs index 4b96a42da8..1f78e333f1 100644 --- a/Content.Shared/Gravity/SharedGravityGeneratorComponent.cs +++ b/Content.Shared/Gravity/SharedGravityGeneratorComponent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Gravity { [NetworkedComponent()] [Virtual] - public class SharedGravityGeneratorComponent : Component + public partial class SharedGravityGeneratorComponent : Component { /// /// A map of the sprites used by the gravity generator given its status. @@ -13,28 +13,28 @@ namespace Content.Shared.Gravity [DataField("spriteMap")] [Access(typeof(SharedGravitySystem))] public Dictionary SpriteMap = new(); - + /// /// The sprite used by the core of the gravity generator when the gravity generator is starting up. /// [DataField("coreStartupState")] [ViewVariables(VVAccess.ReadWrite)] public string CoreStartupState = "startup"; - + /// /// The sprite used by the core of the gravity generator when the gravity generator is idle. /// [DataField("coreIdleState")] [ViewVariables(VVAccess.ReadWrite)] public string CoreIdleState = "idle"; - + /// /// The sprite used by the core of the gravity generator when the gravity generator is activating. /// [DataField("coreActivatingState")] [ViewVariables(VVAccess.ReadWrite)] public string CoreActivatingState = "activating"; - + /// /// The sprite used by the core of the gravity generator when the gravity generator is active. /// diff --git a/Content.Shared/Guardian/GuardianCreatorDoAfterEvent.cs b/Content.Shared/Guardian/GuardianCreatorDoAfterEvent.cs index 98de64764d..8addfa2ed1 100644 --- a/Content.Shared/Guardian/GuardianCreatorDoAfterEvent.cs +++ b/Content.Shared/Guardian/GuardianCreatorDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Guardian; [Serializable, NetSerializable] -public sealed class GuardianCreatorDoAfterEvent : SimpleDoAfterEvent +public sealed partial class GuardianCreatorDoAfterEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/HUD/HudThemePrototype.cs b/Content.Shared/HUD/HudThemePrototype.cs index 3237d2e7e7..bdf6f056dc 100644 --- a/Content.Shared/HUD/HudThemePrototype.cs +++ b/Content.Shared/HUD/HudThemePrototype.cs @@ -6,12 +6,12 @@ namespace Content.Shared.HUD public sealed class HudThemePrototype : IPrototype { [DataField("name", required: true)] - public string Name { get; } = string.Empty; + public string Name { get; private set; } = string.Empty; [IdDataField] - public string ID { get; } = string.Empty; + public string ID { get; private set; } = string.Empty; [DataField("path", required: true)] - public string Path { get; } = string.Empty; + public string Path { get; private set; } = string.Empty; } } diff --git a/Content.Shared/Hands/Components/HandsComponent.cs b/Content.Shared/Hands/Components/HandsComponent.cs index c40d29b895..c1664289ce 100644 --- a/Content.Shared/Hands/Components/HandsComponent.cs +++ b/Content.Shared/Hands/Components/HandsComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Hands.Components; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedHandsSystem))] -public sealed class HandsComponent : Component +public sealed partial class HandsComponent : Component { /// /// The currently active hand. diff --git a/Content.Shared/HotPotato/ActiveHotPotatoComponent.cs b/Content.Shared/HotPotato/ActiveHotPotatoComponent.cs index 3a2a343783..9bcd218335 100644 --- a/Content.Shared/HotPotato/ActiveHotPotatoComponent.cs +++ b/Content.Shared/HotPotato/ActiveHotPotatoComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.HotPotato; /// [RegisterComponent, NetworkedComponent] [Access(typeof(SharedHotPotatoSystem))] -public sealed class ActiveHotPotatoComponent : Component +public sealed partial class ActiveHotPotatoComponent : Component { /// /// Hot potato effect spawn cooldown in seconds diff --git a/Content.Shared/Humanoid/HumanoidAppearanceComponent.cs b/Content.Shared/Humanoid/HumanoidAppearanceComponent.cs index 301b34e635..82d5750aa5 100644 --- a/Content.Shared/Humanoid/HumanoidAppearanceComponent.cs +++ b/Content.Shared/Humanoid/HumanoidAppearanceComponent.cs @@ -11,7 +11,7 @@ using static Content.Shared.Humanoid.HumanoidAppearanceState; namespace Content.Shared.Humanoid; [NetworkedComponent, RegisterComponent] -public sealed class HumanoidAppearanceComponent : Component +public sealed partial class HumanoidAppearanceComponent : Component { [DataField("markingSet")] public MarkingSet MarkingSet = new(); @@ -50,7 +50,7 @@ public sealed class HumanoidAppearanceComponent : Component /// The initial profile and base layers to apply to this humanoid. /// [DataField("initial", customTypeSerializer: typeof(PrototypeIdSerializer))] - public string? Initial { get; } + public string? Initial { get; private set; } /// /// Skin color of this humanoid. @@ -85,7 +85,7 @@ public sealed class HumanoidAppearanceComponent : Component } [Serializable, NetSerializable] -public sealed class HumanoidAppearanceState : ComponentState +public sealed partial class HumanoidAppearanceState : ComponentState { public readonly MarkingSet Markings; public readonly HashSet PermanentlyHidden; @@ -124,7 +124,7 @@ public sealed class HumanoidAppearanceState : ComponentState [DataDefinition] [Serializable, NetSerializable] - public readonly struct CustomBaseLayerInfo + public readonly partial struct CustomBaseLayerInfo { public CustomBaseLayerInfo(string? id, Color? color = null) { diff --git a/Content.Shared/Humanoid/HumanoidCharacterAppearance.cs b/Content.Shared/Humanoid/HumanoidCharacterAppearance.cs index 4c7dca14c0..e50e55025c 100644 --- a/Content.Shared/Humanoid/HumanoidCharacterAppearance.cs +++ b/Content.Shared/Humanoid/HumanoidCharacterAppearance.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Humanoid { [DataDefinition] [Serializable, NetSerializable] - public sealed class HumanoidCharacterAppearance : ICharacterAppearance + public sealed partial class HumanoidCharacterAppearance : ICharacterAppearance { public HumanoidCharacterAppearance(string hairStyleId, Color hairColor, @@ -29,25 +29,25 @@ namespace Content.Shared.Humanoid } [DataField("hair")] - public string HairStyleId { get; } + public string HairStyleId { get; private set; } [DataField("hairColor")] - public Color HairColor { get; } + public Color HairColor { get; private set; } [DataField("facialHair")] - public string FacialHairStyleId { get; } + public string FacialHairStyleId { get; private set; } [DataField("facialHairColor")] - public Color FacialHairColor { get; } + public Color FacialHairColor { get; private set; } [DataField("eyeColor")] - public Color EyeColor { get; } + public Color EyeColor { get; private set; } [DataField("skinColor")] - public Color SkinColor { get; } + public Color SkinColor { get; private set; } [DataField("markings")] - public List Markings { get; } + public List Markings { get; private set; } public HumanoidCharacterAppearance WithHairStyleName(string newName) { diff --git a/Content.Shared/Humanoid/Markings/ColoringTypes/CategoryColoring.cs b/Content.Shared/Humanoid/Markings/ColoringTypes/CategoryColoring.cs index 1ed3e531ff..1f71b9a461 100644 --- a/Content.Shared/Humanoid/Markings/ColoringTypes/CategoryColoring.cs +++ b/Content.Shared/Humanoid/Markings/ColoringTypes/CategoryColoring.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Humanoid.Markings; /// /// Colors marking in color of first defined marking from specified category (in e.x. from Hair category) /// -public sealed class CategoryColoring : LayerColoringType +public sealed partial class CategoryColoring : LayerColoringType { [DataField("category", required: true)] public MarkingCategories Category; diff --git a/Content.Shared/Humanoid/Markings/ColoringTypes/EyeColoring.cs b/Content.Shared/Humanoid/Markings/ColoringTypes/EyeColoring.cs index 0c7865418b..0b18653a4c 100644 --- a/Content.Shared/Humanoid/Markings/ColoringTypes/EyeColoring.cs +++ b/Content.Shared/Humanoid/Markings/ColoringTypes/EyeColoring.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Humanoid.Markings; /// /// Colors layer in an eye color /// -public sealed class EyeColoring : LayerColoringType +public sealed partial class EyeColoring : LayerColoringType { public override Color? GetCleanColor(Color? skin, Color? eyes, MarkingSet markingSet) { diff --git a/Content.Shared/Humanoid/Markings/ColoringTypes/SimpleColoring.cs b/Content.Shared/Humanoid/Markings/ColoringTypes/SimpleColoring.cs index 2ee68b88c3..9051c26dd7 100644 --- a/Content.Shared/Humanoid/Markings/ColoringTypes/SimpleColoring.cs +++ b/Content.Shared/Humanoid/Markings/ColoringTypes/SimpleColoring.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Humanoid.Markings; /// /// Colors layer in a specified color /// -public sealed class SimpleColoring : LayerColoringType +public sealed partial class SimpleColoring : LayerColoringType { [DataField("color", required: true)] public Color Color = Color.White; diff --git a/Content.Shared/Humanoid/Markings/ColoringTypes/SkinColoring.cs b/Content.Shared/Humanoid/Markings/ColoringTypes/SkinColoring.cs index 49cdb7985c..79a09a39ce 100644 --- a/Content.Shared/Humanoid/Markings/ColoringTypes/SkinColoring.cs +++ b/Content.Shared/Humanoid/Markings/ColoringTypes/SkinColoring.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Humanoid.Markings; /// /// Colors layer in a skin color /// -public sealed class SkinColoring : LayerColoringType +public sealed partial class SkinColoring : LayerColoringType { public override Color? GetCleanColor(Color? skin, Color? eyes, MarkingSet markingSet) { diff --git a/Content.Shared/Humanoid/Markings/ColoringTypes/TattooColoring.cs b/Content.Shared/Humanoid/Markings/ColoringTypes/TattooColoring.cs index 225ad67da3..51962cef3b 100644 --- a/Content.Shared/Humanoid/Markings/ColoringTypes/TattooColoring.cs +++ b/Content.Shared/Humanoid/Markings/ColoringTypes/TattooColoring.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Humanoid.Markings; /// /// Colors layer in skin color but much darker. /// -public sealed class TattooColoring : LayerColoringType +public sealed partial class TattooColoring : LayerColoringType { public override Color? GetCleanColor(Color? skin, Color? eyes, MarkingSet markingSet) { @@ -11,7 +11,7 @@ public sealed class TattooColoring : LayerColoringType { return null; } - + var newColor = Color.ToHsv(skin.Value); newColor.Z = .40f; diff --git a/Content.Shared/Humanoid/Markings/Marking.cs b/Content.Shared/Humanoid/Markings/Marking.cs index 1b97939a92..767d4a6482 100644 --- a/Content.Shared/Humanoid/Markings/Marking.cs +++ b/Content.Shared/Humanoid/Markings/Marking.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Humanoid.Markings { [DataDefinition] [Serializable, NetSerializable] - public sealed class Marking : IEquatable, IComparable, IComparable + public sealed partial class Marking : IEquatable, IComparable, IComparable { [DataField("markingColor")] private List _markingColors = new(); @@ -50,7 +50,7 @@ namespace Content.Shared.Humanoid.Markings /// ID of the marking prototype. /// [DataField("markingId", required: true)] - public string MarkingId { get; } = default!; + public string MarkingId { get; private set; } = default!; /// /// All colors currently on this marking. diff --git a/Content.Shared/Humanoid/Markings/MarkingColoring.cs b/Content.Shared/Humanoid/Markings/MarkingColoring.cs index d90fdec0c7..a13481debf 100644 --- a/Content.Shared/Humanoid/Markings/MarkingColoring.cs +++ b/Content.Shared/Humanoid/Markings/MarkingColoring.cs @@ -3,10 +3,10 @@ using Robust.Shared.Utility; namespace Content.Shared.Humanoid.Markings; /// -/// Default colors for marking +/// Default colors for marking /// [DataDefinition] -public sealed class MarkingColors +public sealed partial class MarkingColors { /// /// Coloring properties that will be used on any unspecified layer @@ -65,7 +65,7 @@ public static class MarkingColoring colors.Add(defaultColor); continue; } - + // All specified layers must be colored separately, all unspecified must depend on default coloring if (prototype.Coloring.Layers.TryGetValue(name, out var layerColoring)) { @@ -86,7 +86,7 @@ public static class MarkingColoring /// A class that defines coloring type and fallback for markings /// [DataDefinition] -public sealed class LayerColoringDefinition +public sealed partial class LayerColoringDefinition { [DataField("type")] public LayerColoringType Type = new SkinColoring(); @@ -96,7 +96,7 @@ public sealed class LayerColoringDefinition /// [DataField("fallbackTypes")] public List FallbackTypes = new() {}; - + /// /// Color that will be used if coloring type and fallback type will return nil /// @@ -122,13 +122,13 @@ public sealed class LayerColoringDefinition /// An abstract class for coloring types /// [ImplicitDataDefinitionForInheritors] -public abstract class LayerColoringType +public abstract partial class LayerColoringType { /// /// Makes output color negative /// [DataField("negative")] - public bool Negative { get; } = false; + public bool Negative { get; private set; } = false; public abstract Color? GetCleanColor(Color? skin, Color? eyes, MarkingSet markingSet); public Color? GetColor(Color? skin, Color? eyes, MarkingSet markingSet) { @@ -144,4 +144,4 @@ public abstract class LayerColoringType } return color; } -} \ No newline at end of file +} diff --git a/Content.Shared/Humanoid/Markings/MarkingPoints.cs b/Content.Shared/Humanoid/Markings/MarkingPoints.cs index ef9c9f723d..41009f95c0 100644 --- a/Content.Shared/Humanoid/Markings/MarkingPoints.cs +++ b/Content.Shared/Humanoid/Markings/MarkingPoints.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Humanoid.Markings; [DataDefinition] [Serializable, NetSerializable] -public sealed class MarkingPoints +public sealed partial class MarkingPoints { [DataField("points", required: true)] public int Points = 0; @@ -47,5 +47,5 @@ public sealed class MarkingPointsPrototype : IPrototype [DataField("onlyWhitelisted")] public bool OnlyWhitelisted; [DataField("points", required: true)] - public Dictionary Points { get; } = default!; + public Dictionary Points { get; private set; } = default!; } diff --git a/Content.Shared/Humanoid/Markings/MarkingPrototype.cs b/Content.Shared/Humanoid/Markings/MarkingPrototype.cs index 3ceb319761..14eb4e0d75 100644 --- a/Content.Shared/Humanoid/Markings/MarkingPrototype.cs +++ b/Content.Shared/Humanoid/Markings/MarkingPrototype.cs @@ -7,27 +7,27 @@ namespace Content.Shared.Humanoid.Markings public sealed class MarkingPrototype : IPrototype { [IdDataField] - public string ID { get; } = "uwu"; + public string ID { get; private set; } = "uwu"; public string Name { get; private set; } = default!; [DataField("bodyPart", required: true)] - public HumanoidVisualLayers BodyPart { get; } = default!; + public HumanoidVisualLayers BodyPart { get; private set; } = default!; [DataField("markingCategory", required: true)] - public MarkingCategories MarkingCategory { get; } = default!; - + public MarkingCategories MarkingCategory { get; private set; } = default!; + [DataField("speciesRestriction")] - public List? SpeciesRestrictions { get; } + public List? SpeciesRestrictions { get; private set; } [DataField("followSkinColor")] - public bool FollowSkinColor { get; } = false; + public bool FollowSkinColor { get; private set; } = false; [DataField("forcedColoring")] - public bool ForcedColoring { get; } = false; + public bool ForcedColoring { get; private set; } = false; [DataField("coloring")] - public MarkingColors Coloring { get; } = new(); + public MarkingColors Coloring { get; private set; } = new(); [DataField("sprites", required: true)] public List Sprites { get; private set; } = default!; diff --git a/Content.Shared/Humanoid/Markings/MarkingsComponent.cs b/Content.Shared/Humanoid/Markings/MarkingsComponent.cs index 2bbaa5dc51..b22f25cfcd 100644 --- a/Content.Shared/Humanoid/Markings/MarkingsComponent.cs +++ b/Content.Shared/Humanoid/Markings/MarkingsComponent.cs @@ -1,7 +1,7 @@ namespace Content.Shared.Humanoid.Markings { [RegisterComponent] - public sealed class MarkingsComponent : Component + public sealed partial class MarkingsComponent : Component { public Dictionary> ActiveMarkings = new(); diff --git a/Content.Shared/Humanoid/Markings/MarkingsSet.cs b/Content.Shared/Humanoid/Markings/MarkingsSet.cs index 393ca6e135..3fc6942600 100644 --- a/Content.Shared/Humanoid/Markings/MarkingsSet.cs +++ b/Content.Shared/Humanoid/Markings/MarkingsSet.cs @@ -27,7 +27,7 @@ namespace Content.Shared.Humanoid.Markings; /// [DataDefinition] [Serializable, NetSerializable] -public sealed class MarkingSet +public sealed partial class MarkingSet { /// /// Every single marking in this set. diff --git a/Content.Shared/Humanoid/Prototypes/HumanoidProfilePrototype.cs b/Content.Shared/Humanoid/Prototypes/HumanoidProfilePrototype.cs index a70042e22f..5752e57c93 100644 --- a/Content.Shared/Humanoid/Prototypes/HumanoidProfilePrototype.cs +++ b/Content.Shared/Humanoid/Prototypes/HumanoidProfilePrototype.cs @@ -8,11 +8,11 @@ namespace Content.Shared.Humanoid.Prototypes; public sealed class HumanoidProfilePrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("customBaseLayers")] public Dictionary CustomBaseLayers = new(); [DataField("profile")] - public HumanoidCharacterProfile Profile { get; } = new(); + public HumanoidCharacterProfile Profile { get; private set; } = new(); } diff --git a/Content.Shared/Humanoid/Prototypes/HumanoidSpritePrototypes.cs b/Content.Shared/Humanoid/Prototypes/HumanoidSpritePrototypes.cs index d122a557bc..b185a6a502 100644 --- a/Content.Shared/Humanoid/Prototypes/HumanoidSpritePrototypes.cs +++ b/Content.Shared/Humanoid/Prototypes/HumanoidSpritePrototypes.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Humanoid.Prototypes; public sealed class HumanoidSpeciesBaseSpritesPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Sprites that this species will use on the given humanoid @@ -33,7 +33,7 @@ public sealed class HumanoidSpeciesBaseSpritesPrototype : IPrototype public sealed class HumanoidSpeciesSpriteLayer : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// The base sprite for this sprite layer. This is what /// will replace the empty layer tagged by the enum @@ -43,7 +43,7 @@ public sealed class HumanoidSpeciesSpriteLayer : IPrototype /// layer will be invisible until otherwise set. /// [DataField("baseSprite")] - public SpriteSpecifier? BaseSprite { get; } + public SpriteSpecifier? BaseSprite { get; private set; } /// /// The alpha of this layer. Ensures that @@ -51,20 +51,20 @@ public sealed class HumanoidSpeciesSpriteLayer : IPrototype /// of alpha. /// [DataField("layerAlpha")] - public float LayerAlpha { get; } = 1.0f; + public float LayerAlpha { get; private set; } = 1.0f; /// /// If this sprite layer should allow markings or not. /// [DataField("allowsMarkings")] - public bool AllowsMarkings { get; } = true; + public bool AllowsMarkings { get; private set; } = true; /// /// If this layer should always match the /// skin tone in a character profile. /// [DataField("matchSkin")] - public bool MatchSkin { get; } = true; + public bool MatchSkin { get; private set; } = true; /// /// If any markings that go on this layer should @@ -72,5 +72,5 @@ public sealed class HumanoidSpeciesSpriteLayer : IPrototype /// alpha. /// [DataField("markingsMatchSkin")] - public bool MarkingsMatchSkin { get; } + public bool MarkingsMatchSkin { get; private set; } } diff --git a/Content.Shared/Humanoid/Prototypes/RandomHumanoidSettingsPrototype.cs b/Content.Shared/Humanoid/Prototypes/RandomHumanoidSettingsPrototype.cs index 367ff10748..907adc42dc 100644 --- a/Content.Shared/Humanoid/Prototypes/RandomHumanoidSettingsPrototype.cs +++ b/Content.Shared/Humanoid/Prototypes/RandomHumanoidSettingsPrototype.cs @@ -21,17 +21,17 @@ public sealed class RandomHumanoidSettingsPrototype : IPrototype, IInheritingPro /// Whether the humanoid's name should take from the randomized profile or not. /// [DataField("randomizeName")] - public bool RandomizeName { get; } = true; + public bool RandomizeName { get; private set; } = true; /// /// Species that will be ignored by the randomizer. /// [DataField("speciesBlacklist")] - public HashSet SpeciesBlacklist { get; } = new(); + public HashSet SpeciesBlacklist { get; private set; } = new(); /// /// Extra components to add to this entity. /// [DataField("components")] - public ComponentRegistry? Components { get; } + public ComponentRegistry? Components { get; private set; } } diff --git a/Content.Shared/Humanoid/Prototypes/SpeciesPrototype.cs b/Content.Shared/Humanoid/Prototypes/SpeciesPrototype.cs index 4fdea0fdd3..54c74e542f 100644 --- a/Content.Shared/Humanoid/Prototypes/SpeciesPrototype.cs +++ b/Content.Shared/Humanoid/Prototypes/SpeciesPrototype.cs @@ -10,13 +10,13 @@ public sealed class SpeciesPrototype : IPrototype /// Prototype ID of the species. /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// User visible name of the species. /// [DataField("name", required: true)] - public string Name { get; } = default!; + public string Name { get; private set; } = default!; /// /// Descriptor. Unused...? This is intended @@ -24,13 +24,13 @@ public sealed class SpeciesPrototype : IPrototype /// (i.e., young human person, young lizard person, etc.) /// [DataField("descriptor")] - public string Descriptor { get; } = "humanoid"; + public string Descriptor { get; private set; } = "humanoid"; /// /// Whether the species is available "at round start" (In the character editor) /// [DataField("roundStart", required: true)] - public bool RoundStart { get; } = false; + public bool RoundStart { get; private set; } = false; // The below two are to avoid fetching information about the species from the entity // prototype. @@ -42,59 +42,59 @@ public sealed class SpeciesPrototype : IPrototype // sprite accessories. [DataField("sprites")] - public string SpriteSet { get; } = default!; + public string SpriteSet { get; private set; } = default!; /// /// Default skin tone for this species. This applies for non-human skin tones. /// [DataField("defaultSkinTone")] - public Color DefaultSkinTone { get; } = Color.White; + public Color DefaultSkinTone { get; private set; } = Color.White; /// /// Default human skin tone for this species. This applies for human skin tones. /// See for the valid range of skin tones. /// [DataField("defaultHumanSkinTone")] - public int DefaultHumanSkinTone { get; } = 20; + public int DefaultHumanSkinTone { get; private set; } = 20; /// /// The limit of body markings that you can place on this species. /// [DataField("markingLimits")] - public string MarkingPoints { get; } = default!; + public string MarkingPoints { get; private set; } = default!; /// /// Humanoid species variant used by this entity. /// [DataField("prototype", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] - public string Prototype { get; } = default!; + public string Prototype { get; private set; } = default!; /// /// Prototype used by the species for the dress-up doll in various menus. /// [DataField("dollPrototype", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] - public string DollPrototype { get; } = default!; + public string DollPrototype { get; private set; } = default!; /// /// Method of skin coloration used by the species. /// [DataField("skinColoration", required: true)] - public HumanoidSkinColor SkinColoration { get; } + public HumanoidSkinColor SkinColoration { get; private set; } [DataField("maleFirstNames")] - public string MaleFirstNames { get; } = "names_first_male"; + public string MaleFirstNames { get; private set; } = "names_first_male"; [DataField("femaleFirstNames")] - public string FemaleFirstNames { get; } = "names_first_female"; + public string FemaleFirstNames { get; private set; } = "names_first_female"; [DataField("lastNames")] - public string LastNames { get; } = "names_last"; + public string LastNames { get; private set; } = "names_last"; [DataField("naming")] - public SpeciesNaming Naming { get; } = SpeciesNaming.FirstLast; + public SpeciesNaming Naming { get; private set; } = SpeciesNaming.FirstLast; [DataField("sexes")] - public List Sexes { get; } = new() { Sex.Male, Sex.Female }; + public List Sexes { get; private set; } = new() { Sex.Male, Sex.Female }; /// /// Characters younger than this are too young to be hired by Nanotrasen. diff --git a/Content.Shared/IconSmoothing/SmoothEdgeComponent.cs b/Content.Shared/IconSmoothing/SmoothEdgeComponent.cs index ccde4c9c98..a3dfd8d4e0 100644 --- a/Content.Shared/IconSmoothing/SmoothEdgeComponent.cs +++ b/Content.Shared/IconSmoothing/SmoothEdgeComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.IconSmoothing; /// Applies an edge sprite to for non-smoothed directions. /// [RegisterComponent, NetworkedComponent] -public sealed class SmoothEdgeComponent : Component +public sealed partial class SmoothEdgeComponent : Component { } diff --git a/Content.Shared/IdentityManagement/Components/IdentityBlockerComponent.cs b/Content.Shared/IdentityManagement/Components/IdentityBlockerComponent.cs index 0f65556279..4dc9e97b01 100644 --- a/Content.Shared/IdentityManagement/Components/IdentityBlockerComponent.cs +++ b/Content.Shared/IdentityManagement/Components/IdentityBlockerComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.IdentityManagement.Components; [RegisterComponent, NetworkedComponent] -public sealed class IdentityBlockerComponent : Component +public sealed partial class IdentityBlockerComponent : Component { public bool Enabled = true; } diff --git a/Content.Shared/IdentityManagement/Components/IdentityComponent.cs b/Content.Shared/IdentityManagement/Components/IdentityComponent.cs index 8c7a357cb5..aeaef3cf0d 100644 --- a/Content.Shared/IdentityManagement/Components/IdentityComponent.cs +++ b/Content.Shared/IdentityManagement/Components/IdentityComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.IdentityManagement.Components; /// This is a and not just a datum entity because we do sort of care that it gets deleted and sent with the user. /// [RegisterComponent] -public sealed class IdentityComponent : Component +public sealed partial class IdentityComponent : Component { [ViewVariables] public ContainerSlot IdentityEntitySlot = default!; diff --git a/Content.Shared/Implants/Components/ImplantedComponent.cs b/Content.Shared/Implants/Components/ImplantedComponent.cs index beaa9a9072..727213907a 100644 --- a/Content.Shared/Implants/Components/ImplantedComponent.cs +++ b/Content.Shared/Implants/Components/ImplantedComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Implants.Components; /// Used in instances where mob info needs to be passed to the implant such as MobState triggers /// [RegisterComponent, NetworkedComponent] -public sealed class ImplantedComponent : Component +public sealed partial class ImplantedComponent : Component { public Container ImplantContainer = default!; } diff --git a/Content.Shared/Implants/Components/ImplanterComponent.cs b/Content.Shared/Implants/Components/ImplanterComponent.cs index 8cb7ae9091..e681cab047 100644 --- a/Content.Shared/Implants/Components/ImplanterComponent.cs +++ b/Content.Shared/Implants/Components/ImplanterComponent.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Implants.Components; /// //TODO: Rework drawing to work with implant cases when surgery is in [RegisterComponent, NetworkedComponent] -public sealed class ImplanterComponent : Component +public sealed partial class ImplanterComponent : Component { public const string ImplanterSlotId = "implanter_slot"; public const string ImplantSlotId = "implant"; diff --git a/Content.Shared/Implants/Components/RattleComponent.cs b/Content.Shared/Implants/Components/RattleComponent.cs index b107915810..e8b98e462f 100644 --- a/Content.Shared/Implants/Components/RattleComponent.cs +++ b/Content.Shared/Implants/Components/RattleComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Implants.Components; [RegisterComponent, NetworkedComponent] -public sealed class RattleComponent : Component +public sealed partial class RattleComponent : Component { // The radio channel the message will be sent to [DataField("radioChannel", customTypeSerializer: typeof(PrototypeIdSerializer))] diff --git a/Content.Shared/Implants/Components/SubdermalImplantComponent.cs b/Content.Shared/Implants/Components/SubdermalImplantComponent.cs index eb8ac9808e..7f7484f51c 100644 --- a/Content.Shared/Implants/Components/SubdermalImplantComponent.cs +++ b/Content.Shared/Implants/Components/SubdermalImplantComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Implants.Components; /// They're added and removed with implanters /// [RegisterComponent, NetworkedComponent] -public sealed class SubdermalImplantComponent : Component +public sealed partial class SubdermalImplantComponent : Component { /// /// Used where you want the implant to grant the owner an instant action. @@ -37,12 +37,12 @@ public sealed class SubdermalImplantComponent : Component /// /// Used for opening the storage implant via action. /// -public sealed class OpenStorageImplantEvent : InstantActionEvent +public sealed partial class OpenStorageImplantEvent : InstantActionEvent { } -public sealed class UseFreedomImplantEvent : InstantActionEvent +public sealed partial class UseFreedomImplantEvent : InstantActionEvent { } @@ -50,7 +50,7 @@ public sealed class UseFreedomImplantEvent : InstantActionEvent /// /// Used for triggering trigger events on the implant via action /// -public sealed class ActivateImplantEvent : InstantActionEvent +public sealed partial class ActivateImplantEvent : InstantActionEvent { } @@ -58,12 +58,12 @@ public sealed class ActivateImplantEvent : InstantActionEvent /// /// Used for opening the uplink implant via action. /// -public sealed class OpenUplinkImplantEvent : InstantActionEvent +public sealed partial class OpenUplinkImplantEvent : InstantActionEvent { } -public sealed class UseDnaScramblerImplantEvent : InstantActionEvent +public sealed partial class UseDnaScramblerImplantEvent : InstantActionEvent { } diff --git a/Content.Shared/Implants/Components/TriggerImplantActionComponent.cs b/Content.Shared/Implants/Components/TriggerImplantActionComponent.cs index 16b4c205fb..0f9856f2a4 100644 --- a/Content.Shared/Implants/Components/TriggerImplantActionComponent.cs +++ b/Content.Shared/Implants/Components/TriggerImplantActionComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Implants.Components; /// Triggers implants when the action is pressed /// [RegisterComponent, NetworkedComponent] -public sealed class TriggerImplantActionComponent : Component +public sealed partial class TriggerImplantActionComponent : Component { } diff --git a/Content.Shared/Implants/SharedImplanterSystem.cs b/Content.Shared/Implants/SharedImplanterSystem.cs index ce67189418..6d0a65f238 100644 --- a/Content.Shared/Implants/SharedImplanterSystem.cs +++ b/Content.Shared/Implants/SharedImplanterSystem.cs @@ -178,12 +178,12 @@ public abstract class SharedImplanterSystem : EntitySystem } [Serializable, NetSerializable] -public sealed class ImplantEvent : SimpleDoAfterEvent +public sealed partial class ImplantEvent : SimpleDoAfterEvent { } [Serializable, NetSerializable] -public sealed class DrawEvent : SimpleDoAfterEvent +public sealed partial class DrawEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/Interaction/Components/BlockMovementComponent.cs b/Content.Shared/Interaction/Components/BlockMovementComponent.cs index a599ca3684..e308e84960 100644 --- a/Content.Shared/Interaction/Components/BlockMovementComponent.cs +++ b/Content.Shared/Interaction/Components/BlockMovementComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Interaction.Components; /// This is used for entities which cannot move or interact in any way. /// [RegisterComponent, NetworkedComponent] -public sealed class BlockMovementComponent : Component +public sealed partial class BlockMovementComponent : Component { } diff --git a/Content.Shared/Interaction/Components/ClumsyComponent.cs b/Content.Shared/Interaction/Components/ClumsyComponent.cs index 2acbdeaf68..5b72fc224c 100644 --- a/Content.Shared/Interaction/Components/ClumsyComponent.cs +++ b/Content.Shared/Interaction/Components/ClumsyComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Interaction.Components /// A simple clumsy tag-component. /// [RegisterComponent] - public sealed class ClumsyComponent : Component + public sealed partial class ClumsyComponent : Component { [DataField("clumsyDamage", required: true)] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Shared/Interaction/Components/InteractionRelayComponent.cs b/Content.Shared/Interaction/Components/InteractionRelayComponent.cs index 9ae63c3527..a7b47875c6 100644 --- a/Content.Shared/Interaction/Components/InteractionRelayComponent.cs +++ b/Content.Shared/Interaction/Components/InteractionRelayComponent.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Interaction.Components; /// [RegisterComponent, NetworkedComponent] [Access(typeof(SharedInteractionSystem))] -public sealed class InteractionRelayComponent : Component +public sealed partial class InteractionRelayComponent : Component { /// /// The entity the interactions are being relayed to. diff --git a/Content.Shared/Interaction/Components/UnremoveableComponent.cs b/Content.Shared/Interaction/Components/UnremoveableComponent.cs index bcf294a657..cd10694865 100644 --- a/Content.Shared/Interaction/Components/UnremoveableComponent.cs +++ b/Content.Shared/Interaction/Components/UnremoveableComponent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Interaction.Components { [RegisterComponent] [NetworkedComponent] - public sealed class UnremoveableComponent : Component + public sealed partial class UnremoveableComponent : Component { /// /// If this is true then unremovable items that are removed from inventory are deleted (typically from corpse gibbing). diff --git a/Content.Shared/Internals/InternalsDoAfterEvent.cs b/Content.Shared/Internals/InternalsDoAfterEvent.cs index 98709a0342..13b6087ec0 100644 --- a/Content.Shared/Internals/InternalsDoAfterEvent.cs +++ b/Content.Shared/Internals/InternalsDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Internals; [Serializable, NetSerializable] -public sealed class InternalsDoAfterEvent : SimpleDoAfterEvent +public sealed partial class InternalsDoAfterEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/Inventory/InventoryComponent.cs b/Content.Shared/Inventory/InventoryComponent.cs index eac41555c7..07a2463d12 100644 --- a/Content.Shared/Inventory/InventoryComponent.cs +++ b/Content.Shared/Inventory/InventoryComponent.cs @@ -5,10 +5,10 @@ namespace Content.Shared.Inventory; [RegisterComponent, NetworkedComponent] [Access(typeof(InventorySystem))] -public sealed class InventoryComponent : Component +public sealed partial class InventoryComponent : Component { [DataField("templateId", customTypeSerializer: typeof(PrototypeIdSerializer))] - public string TemplateId { get; } = "human"; + public string TemplateId { get; private set; } = "human"; [DataField("speciesId")] public string? SpeciesId { get; set; } } diff --git a/Content.Shared/Inventory/InventoryTemplatePrototype.cs b/Content.Shared/Inventory/InventoryTemplatePrototype.cs index 8faa58f854..fcbe5dcf30 100644 --- a/Content.Shared/Inventory/InventoryTemplatePrototype.cs +++ b/Content.Shared/Inventory/InventoryTemplatePrototype.cs @@ -9,36 +9,36 @@ public sealed class InventoryTemplatePrototype : IPrototype { [IdDataField] public string ID { get; } = string.Empty; - [DataField("slots")] public SlotDefinition[] Slots { get; } = Array.Empty(); + [DataField("slots")] public SlotDefinition[] Slots { get; private set; } = Array.Empty(); } [DataDefinition] -public sealed class SlotDefinition +public sealed partial class SlotDefinition { - [DataField("name", required: true)] public string Name { get; } = string.Empty; - [DataField("slotTexture")] public string TextureName { get; } = "pocket"; - [DataField("slotFlags")] public SlotFlags SlotFlags { get; } = SlotFlags.PREVENTEQUIP; - [DataField("showInWindow")] public bool ShowInWindow { get; } = true; - [DataField("slotGroup")] public string SlotGroup { get; } = "Default"; - [DataField("stripTime")] public float StripTime { get; } = 4f; + [DataField("name", required: true)] public string Name { get; private set; } = string.Empty; + [DataField("slotTexture")] public string TextureName { get; private set; } = "pocket"; + [DataField("slotFlags")] public SlotFlags SlotFlags { get; private set; } = SlotFlags.PREVENTEQUIP; + [DataField("showInWindow")] public bool ShowInWindow { get; private set; } = true; + [DataField("slotGroup")] public string SlotGroup { get; private set; } = "Default"; + [DataField("stripTime")] public float StripTime { get; private set; } = 4f; [DataField("uiWindowPos", required: true)] - public Vector2i UIWindowPosition { get; } + public Vector2i UIWindowPosition { get; private set; } [DataField("strippingWindowPos", required: true)] - public Vector2i StrippingWindowPos { get; } + public Vector2i StrippingWindowPos { get; private set; } - [DataField("dependsOn")] public string? DependsOn { get; } + [DataField("dependsOn")] public string? DependsOn { get; private set; } [DataField("displayName", required: true)] - public string DisplayName { get; } = string.Empty; + public string DisplayName { get; private set; } = string.Empty; - [DataField("stripHidden")] public bool StripHidden { get; } + [DataField("stripHidden")] public bool StripHidden { get; private set; } /// /// Offset for the clothing sprites. /// - [DataField("offset")] public Vector2 Offset { get; } = Vector2.Zero; + [DataField("offset")] public Vector2 Offset { get; private set; } = Vector2.Zero; /// /// Entity whitelist for CanEquip checks. diff --git a/Content.Shared/Item/ItemComponent.cs b/Content.Shared/Item/ItemComponent.cs index 58aae4f446..894601f176 100644 --- a/Content.Shared/Item/ItemComponent.cs +++ b/Content.Shared/Item/ItemComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Item; [RegisterComponent] [NetworkedComponent] [Access(typeof(SharedItemSystem))] -public sealed class ItemComponent : Component +public sealed partial class ItemComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("size")] diff --git a/Content.Shared/Item/ItemToggleComponent.cs b/Content.Shared/Item/ItemToggleComponent.cs index 9bcee120cd..fda4d0904a 100644 --- a/Content.Shared/Item/ItemToggleComponent.cs +++ b/Content.Shared/Item/ItemToggleComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameStates; namespace Content.Server.Weapons.Melee.ItemToggle; [RegisterComponent, NetworkedComponent] -public sealed class ItemToggleComponent : Component +public sealed partial class ItemToggleComponent : Component { public bool Activated = false; diff --git a/Content.Shared/Item/MultiHandedItemComponent.cs b/Content.Shared/Item/MultiHandedItemComponent.cs index fd2a931172..9a90d063ba 100644 --- a/Content.Shared/Item/MultiHandedItemComponent.cs +++ b/Content.Shared/Item/MultiHandedItemComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Item; /// multiple hands to be able to be picked up /// [RegisterComponent, NetworkedComponent] -public sealed class MultiHandedItemComponent : Component +public sealed partial class MultiHandedItemComponent : Component { [DataField("handsNeeded"), ViewVariables(VVAccess.ReadWrite)] public int HandsNeeded = 2; diff --git a/Content.Shared/Jittering/JitteringComponent.cs b/Content.Shared/Jittering/JitteringComponent.cs index 85b8fe73dc..cd8e3aeea7 100644 --- a/Content.Shared/Jittering/JitteringComponent.cs +++ b/Content.Shared/Jittering/JitteringComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Jittering { [Access(typeof(SharedJitteringSystem))] [RegisterComponent, NetworkedComponent] - public sealed class JitteringComponent : Component + public sealed partial class JitteringComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public float Amplitude { get; set; } diff --git a/Content.Shared/Kitchen/Components/KitchenSpikeComponent.cs b/Content.Shared/Kitchen/Components/KitchenSpikeComponent.cs index beb0d5acd3..8b43ab1a85 100644 --- a/Content.Shared/Kitchen/Components/KitchenSpikeComponent.cs +++ b/Content.Shared/Kitchen/Components/KitchenSpikeComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Kitchen.Components; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedKitchenSpikeSystem))] -public sealed class KitchenSpikeComponent : Component +public sealed partial class KitchenSpikeComponent : Component { [DataField("delay")] public float SpikeDelay = 7.0f; diff --git a/Content.Shared/Kitchen/MicrowaveMealRecipePrototype.cs b/Content.Shared/Kitchen/MicrowaveMealRecipePrototype.cs index b0d8dd141d..898d911141 100644 --- a/Content.Shared/Kitchen/MicrowaveMealRecipePrototype.cs +++ b/Content.Shared/Kitchen/MicrowaveMealRecipePrototype.cs @@ -14,22 +14,22 @@ namespace Content.Shared.Kitchen { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("name")] private string _name = string.Empty; [DataField("reagents", customTypeSerializer:typeof(PrototypeIdDictionarySerializer))] - private readonly Dictionary _ingsReagents = new(); + private Dictionary _ingsReagents = new(); [DataField("solids", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] - private readonly Dictionary _ingsSolids = new (); + private Dictionary _ingsSolids = new (); [DataField("result", customTypeSerializer: typeof(PrototypeIdSerializer))] - public string Result { get; } = string.Empty; + public string Result { get; private set; } = string.Empty; [DataField("time")] - public uint CookTime { get; } = 5; + public uint CookTime { get; private set; } = 5; public string Name => Loc.GetString(_name); diff --git a/Content.Shared/Kitchen/SharedKitchenSpikeSystem.cs b/Content.Shared/Kitchen/SharedKitchenSpikeSystem.cs index a61fc066c5..2f740f99ad 100644 --- a/Content.Shared/Kitchen/SharedKitchenSpikeSystem.cs +++ b/Content.Shared/Kitchen/SharedKitchenSpikeSystem.cs @@ -33,6 +33,6 @@ public abstract class SharedKitchenSpikeSystem : EntitySystem } [Serializable, NetSerializable] -public sealed class SpikeDoAfterEvent : SimpleDoAfterEvent +public sealed partial class SpikeDoAfterEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/Kitchen/SharpDoAfterEvent.cs b/Content.Shared/Kitchen/SharpDoAfterEvent.cs index 1189fc8212..4c2a264a03 100644 --- a/Content.Shared/Kitchen/SharpDoAfterEvent.cs +++ b/Content.Shared/Kitchen/SharpDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Kitchen; [Serializable, NetSerializable] -public sealed class SharpDoAfterEvent : SimpleDoAfterEvent +public sealed partial class SharpDoAfterEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/Lathe/LatheComponent.cs b/Content.Shared/Lathe/LatheComponent.cs index fbc2eb2cc6..411695b46d 100644 --- a/Content.Shared/Lathe/LatheComponent.cs +++ b/Content.Shared/Lathe/LatheComponent.cs @@ -8,19 +8,19 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Lathe { [RegisterComponent, NetworkedComponent] - public sealed class LatheComponent : Component + public sealed partial class LatheComponent : Component { /// /// All of the recipes that the lathe has by default /// [DataField("staticRecipes", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public readonly List StaticRecipes = new(); + public List StaticRecipes = new(); /// /// All of the recipes that the lathe is capable of researching /// [DataField("dynamicRecipes", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public readonly List DynamicRecipes = new(); + public List DynamicRecipes = new(); /// /// The lathe's construction queue diff --git a/Content.Shared/Light/Component/HandheldLightComponent.cs b/Content.Shared/Light/Component/HandheldLightComponent.cs index 154e7493b6..a3f6d2c964 100644 --- a/Content.Shared/Light/Component/HandheldLightComponent.cs +++ b/Content.Shared/Light/Component/HandheldLightComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Light [NetworkedComponent] [RegisterComponent] [Access(typeof(SharedHandheldLightSystem))] - public sealed class HandheldLightComponent : Robust.Shared.GameObjects.Component + public sealed partial class HandheldLightComponent : Robust.Shared.GameObjects.Component { public byte? Level; public bool Activated; diff --git a/Content.Shared/Light/Component/LightBulbComponent.cs b/Content.Shared/Light/Component/LightBulbComponent.cs index aa3a0f0be7..9c6e8524e5 100644 --- a/Content.Shared/Light/Component/LightBulbComponent.cs +++ b/Content.Shared/Light/Component/LightBulbComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Light.Component; /// [RegisterComponent] [NetworkedComponent] -public sealed class LightBulbComponent : Robust.Shared.GameObjects.Component +public sealed partial class LightBulbComponent : Robust.Shared.GameObjects.Component { /// /// The color of the lightbulb and the light it produces. diff --git a/Content.Shared/Light/Component/RgbLightControllerComponent.cs b/Content.Shared/Light/Component/RgbLightControllerComponent.cs index cadcb1c0c9..fdacbd79f2 100644 --- a/Content.Shared/Light/Component/RgbLightControllerComponent.cs +++ b/Content.Shared/Light/Component/RgbLightControllerComponent.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Light.Component; [NetworkedComponent] [RegisterComponent] [Access(typeof(SharedRgbLightControllerSystem))] -public sealed class RgbLightControllerComponent : Robust.Shared.GameObjects.Component +public sealed partial class RgbLightControllerComponent : Robust.Shared.GameObjects.Component { [DataField("cycleRate")] public float CycleRate { get; set; } = 0.1f; diff --git a/Content.Shared/Light/Component/SharedEmergencyLightComponent.cs b/Content.Shared/Light/Component/SharedEmergencyLightComponent.cs index ef41400bfb..b7d71f639d 100644 --- a/Content.Shared/Light/Component/SharedEmergencyLightComponent.cs +++ b/Content.Shared/Light/Component/SharedEmergencyLightComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Light.Component { [NetworkedComponent] - public abstract class SharedEmergencyLightComponent : Robust.Shared.GameObjects.Component + public abstract partial class SharedEmergencyLightComponent : Robust.Shared.GameObjects.Component { public bool Enabled { get; set; } = false; } diff --git a/Content.Shared/Light/Component/SharedExpendableLightComponent.cs b/Content.Shared/Light/Component/SharedExpendableLightComponent.cs index b49e3b97fb..7979c15224 100644 --- a/Content.Shared/Light/Component/SharedExpendableLightComponent.cs +++ b/Content.Shared/Light/Component/SharedExpendableLightComponent.cs @@ -21,7 +21,7 @@ namespace Content.Shared.Light.Component } [NetworkedComponent] - public abstract class SharedExpendableLightComponent: Robust.Shared.GameObjects.Component + public abstract partial class SharedExpendableLightComponent: Robust.Shared.GameObjects.Component { public static readonly AudioParams LoopedSoundParams = new(0, 1, "Master", 62.5f, 1, 1, true, 0.3f); diff --git a/Content.Shared/Light/Component/SharedLightBehaviourComponent.cs b/Content.Shared/Light/Component/SharedLightBehaviourComponent.cs index 3d10b73e69..56ad1d6a72 100644 --- a/Content.Shared/Light/Component/SharedLightBehaviourComponent.cs +++ b/Content.Shared/Light/Component/SharedLightBehaviourComponent.cs @@ -3,7 +3,7 @@ /// /// A component which applies a specific behaviour to a PointLightComponent on its owner. /// - public abstract class SharedLightBehaviourComponent : Robust.Shared.GameObjects.Component + public abstract partial class SharedLightBehaviourComponent : Robust.Shared.GameObjects.Component { } } diff --git a/Content.Shared/Light/Component/UnpoweredFlashlightComponent.cs b/Content.Shared/Light/Component/UnpoweredFlashlightComponent.cs index 108c252b61..66879a59e7 100644 --- a/Content.Shared/Light/Component/UnpoweredFlashlightComponent.cs +++ b/Content.Shared/Light/Component/UnpoweredFlashlightComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Light.Component; /// It doesn't consume any power and can be toggle only by verb. /// [RegisterComponent] -public sealed class UnpoweredFlashlightComponent : Robust.Shared.GameObjects.Component +public sealed partial class UnpoweredFlashlightComponent : Robust.Shared.GameObjects.Component { [DataField("toggleFlashlightSound")] public SoundSpecifier ToggleSound = new SoundPathSpecifier("/Audio/Items/flashlight_pda.ogg"); diff --git a/Content.Shared/Light/PoweredLightDoAfterEvent.cs b/Content.Shared/Light/PoweredLightDoAfterEvent.cs index ac1a7045e9..9685ee6ebe 100644 --- a/Content.Shared/Light/PoweredLightDoAfterEvent.cs +++ b/Content.Shared/Light/PoweredLightDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Light; [Serializable, NetSerializable] -public sealed class PoweredLightDoAfterEvent : SimpleDoAfterEvent +public sealed partial class PoweredLightDoAfterEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/Lightning/Components/SharedLightningComponent.cs b/Content.Shared/Lightning/Components/SharedLightningComponent.cs index 7fc2dcacba..e01307bfd9 100644 --- a/Content.Shared/Lightning/Components/SharedLightningComponent.cs +++ b/Content.Shared/Lightning/Components/SharedLightningComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Lightning.Components; /// /// Handles how lightning acts and is spawned. Use the ShootLightning method to fire lightning from one user to a target. /// -public abstract class SharedLightningComponent : Component +public abstract partial class SharedLightningComponent : Component { /// /// Can this lightning arc? diff --git a/Content.Shared/Lube/LubeComponent.cs b/Content.Shared/Lube/LubeComponent.cs index d945f14265..6a99e3cf14 100644 --- a/Content.Shared/Lube/LubeComponent.cs +++ b/Content.Shared/Lube/LubeComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Lube; [RegisterComponent, NetworkedComponent] -public sealed class LubeComponent : Component +public sealed partial class LubeComponent : Component { [DataField("squeeze")] public SoundSpecifier Squeeze = new SoundPathSpecifier("/Audio/Items/squeezebottle.ogg"); diff --git a/Content.Shared/Lube/LubedComponent.cs b/Content.Shared/Lube/LubedComponent.cs index 1fd3322dc8..fe1946ddb1 100644 --- a/Content.Shared/Lube/LubedComponent.cs +++ b/Content.Shared/Lube/LubedComponent.cs @@ -1,7 +1,7 @@ namespace Content.Shared.Lube; [RegisterComponent] -public sealed class LubedComponent : Component +public sealed partial class LubedComponent : Component { /// /// Reverts name to before prefix event (essentially removes prefix). diff --git a/Content.Shared/Magic/SpellbookDoAfterEvent.cs b/Content.Shared/Magic/SpellbookDoAfterEvent.cs index 7c05ecb8a9..88b7514fcd 100644 --- a/Content.Shared/Magic/SpellbookDoAfterEvent.cs +++ b/Content.Shared/Magic/SpellbookDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Magic; [Serializable, NetSerializable] -public sealed class SpellbookDoAfterEvent : SimpleDoAfterEvent +public sealed partial class SpellbookDoAfterEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/Maps/ContentTileDefinition.cs b/Content.Shared/Maps/ContentTileDefinition.cs index e04100e9e2..d0101aa152 100644 --- a/Content.Shared/Maps/ContentTileDefinition.cs +++ b/Content.Shared/Maps/ContentTileDefinition.cs @@ -26,14 +26,14 @@ namespace Content.Shared.Maps [DataField("name")] public string Name { get; private set; } = ""; - [DataField("sprite")] public ResPath? Sprite { get; } + [DataField("sprite")] public ResPath? Sprite { get; private set; } - [DataField("edgeSprites")] public Dictionary EdgeSprites { get; } = new(); + [DataField("edgeSprites")] public Dictionary EdgeSprites { get; private set; } = new(); [DataField("isSubfloor")] public bool IsSubFloor { get; private set; } [DataField("baseTurf")] - public string BaseTurf { get; } = string.Empty; + public string BaseTurf { get; private set; } = string.Empty; [DataField("canCrowbar")] public bool CanCrowbar { get; private set; } @@ -47,12 +47,12 @@ namespace Content.Shared.Maps /// /// These play when the mob has shoes on. /// - [DataField("footstepSounds")] public SoundSpecifier? FootstepSounds { get; } + [DataField("footstepSounds")] public SoundSpecifier? FootstepSounds { get; private set; } /// /// These play when the mob has no shoes on. /// - [DataField("barestepSounds")] public SoundSpecifier? BarestepSounds { get; } = new SoundCollectionSpecifier("BarestepHard"); + [DataField("barestepSounds")] public SoundSpecifier? BarestepSounds { get; private set; } = new SoundCollectionSpecifier("BarestepHard"); [DataField("friction")] public float Friction { get; set; } = 0.2f; @@ -69,7 +69,7 @@ namespace Content.Shared.Maps [DataField("heatCapacity")] public float HeatCapacity = Atmospherics.MinimumHeatCapacity; [DataField("itemDrop", customTypeSerializer:typeof(PrototypeIdSerializer))] - public string ItemDropPrototypeName { get; } = "FloorTileItemSteel"; + public string ItemDropPrototypeName { get; private set; } = "FloorTileItemSteel"; [DataField("isSpace")] public bool IsSpace { get; private set; } [DataField("sturdy")] public bool Sturdy { get; private set; } = true; diff --git a/Content.Shared/Materials/ActiveMaterialReclaimerComponent.cs b/Content.Shared/Materials/ActiveMaterialReclaimerComponent.cs index b62be502e3..9c2ee9632e 100644 --- a/Content.Shared/Materials/ActiveMaterialReclaimerComponent.cs +++ b/Content.Shared/Materials/ActiveMaterialReclaimerComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Materials; /// /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedMaterialReclaimerSystem))] -public sealed class ActiveMaterialReclaimerComponent : Component +public sealed partial class ActiveMaterialReclaimerComponent : Component { /// /// Container used to store the item currently being reclaimed diff --git a/Content.Shared/Materials/CollideMaterialReclaimerComponent.cs b/Content.Shared/Materials/CollideMaterialReclaimerComponent.cs index 4d9b072ad2..b59f21eef2 100644 --- a/Content.Shared/Materials/CollideMaterialReclaimerComponent.cs +++ b/Content.Shared/Materials/CollideMaterialReclaimerComponent.cs @@ -6,7 +6,7 @@ /// /// [RegisterComponent] -public sealed class CollideMaterialReclaimerComponent : Component +public sealed partial class CollideMaterialReclaimerComponent : Component { /// /// The fixture that starts reclaiming on collision. diff --git a/Content.Shared/Materials/InsertingMaterialStorageComponent.cs b/Content.Shared/Materials/InsertingMaterialStorageComponent.cs index 6c0ed0f969..e841853c8e 100644 --- a/Content.Shared/Materials/InsertingMaterialStorageComponent.cs +++ b/Content.Shared/Materials/InsertingMaterialStorageComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Shared.Materials; [RegisterComponent, NetworkedComponent] -public sealed class InsertingMaterialStorageComponent : Component +public sealed partial class InsertingMaterialStorageComponent : Component { /// /// The time when insertion ends. diff --git a/Content.Shared/Materials/MaterialComponent.cs b/Content.Shared/Materials/MaterialComponent.cs index 3a5bba3e1f..46e57697c9 100644 --- a/Content.Shared/Materials/MaterialComponent.cs +++ b/Content.Shared/Materials/MaterialComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Materials; /// The material amounts themselves are in /// [RegisterComponent, NetworkedComponent] -public sealed class MaterialComponent : Component +public sealed partial class MaterialComponent : Component { } diff --git a/Content.Shared/Materials/MaterialPrototype.cs b/Content.Shared/Materials/MaterialPrototype.cs index 1418ed2182..d78fa9452a 100644 --- a/Content.Shared/Materials/MaterialPrototype.cs +++ b/Content.Shared/Materials/MaterialPrototype.cs @@ -22,7 +22,7 @@ namespace Content.Shared.Materials [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// For material storage to be able to convert back and forth @@ -36,13 +36,13 @@ namespace Content.Shared.Materials public string Name = ""; [DataField("color")] - public Color Color { get; } = Color.Gray; + public Color Color { get; private set; } = Color.Gray; /// /// An icon used to represent the material in graphic interfaces. /// [DataField("icon")] - public SpriteSpecifier Icon { get; } = SpriteSpecifier.Invalid; + public SpriteSpecifier Icon { get; private set; } = SpriteSpecifier.Invalid; /// /// The price per cm3. diff --git a/Content.Shared/Materials/MaterialReclaimerComponent.cs b/Content.Shared/Materials/MaterialReclaimerComponent.cs index b29776a851..6108176352 100644 --- a/Content.Shared/Materials/MaterialReclaimerComponent.cs +++ b/Content.Shared/Materials/MaterialReclaimerComponent.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Materials; /// into the raw materials and chemicals that make them up. /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedMaterialReclaimerSystem))] -public sealed class MaterialReclaimerComponent : Component +public sealed partial class MaterialReclaimerComponent : Component { /// /// Whether or not the machine has power. We put it here diff --git a/Content.Shared/Materials/MaterialStorageComponent.cs b/Content.Shared/Materials/MaterialStorageComponent.cs index 71b4056042..50935bcd47 100644 --- a/Content.Shared/Materials/MaterialStorageComponent.cs +++ b/Content.Shared/Materials/MaterialStorageComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Materials; [Access(typeof(SharedMaterialStorageSystem))] [RegisterComponent, NetworkedComponent] -public sealed class MaterialStorageComponent : Component +public sealed partial class MaterialStorageComponent : Component { [DataField("storage", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] public Dictionary Storage { get; set; } = new(); diff --git a/Content.Shared/Materials/PhysicalCompositionComponent.cs b/Content.Shared/Materials/PhysicalCompositionComponent.cs index 2d23a8ccf6..97ec3d7b65 100644 --- a/Content.Shared/Materials/PhysicalCompositionComponent.cs +++ b/Content.Shared/Materials/PhysicalCompositionComponent.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Materials; /// combination of the two systems. /// [RegisterComponent] -public sealed class PhysicalCompositionComponent : Component +public sealed partial class PhysicalCompositionComponent : Component { /// /// The materials that "make up" this entity diff --git a/Content.Shared/Mech/Components/MechComponent.cs b/Content.Shared/Mech/Components/MechComponent.cs index a6a2aa0d5c..aa437786c0 100644 --- a/Content.Shared/Mech/Components/MechComponent.cs +++ b/Content.Shared/Mech/Components/MechComponent.cs @@ -15,7 +15,7 @@ namespace Content.Shared.Mech.Components; /// powered via an internal battery. /// [RegisterComponent, NetworkedComponent] -public sealed class MechComponent : Component +public sealed partial class MechComponent : Component { /// /// How much "health" the mech has left. diff --git a/Content.Shared/Mech/Components/MechPilotComponent.cs b/Content.Shared/Mech/Components/MechPilotComponent.cs index 11e443820e..127ec58099 100644 --- a/Content.Shared/Mech/Components/MechPilotComponent.cs +++ b/Content.Shared/Mech/Components/MechPilotComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Mech.Components; /// Get in the robot, Shinji /// [RegisterComponent, NetworkedComponent] -public sealed class MechPilotComponent : Component +public sealed partial class MechPilotComponent : Component { /// /// The mech being piloted diff --git a/Content.Shared/Mech/EntitySystems/SharedMechSystem.cs b/Content.Shared/Mech/EntitySystems/SharedMechSystem.cs index 892249b9a2..86059711bf 100644 --- a/Content.Shared/Mech/EntitySystems/SharedMechSystem.cs +++ b/Content.Shared/Mech/EntitySystems/SharedMechSystem.cs @@ -485,7 +485,7 @@ public abstract class SharedMechSystem : EntitySystem /// on both success and failure /// [Serializable, NetSerializable] -public sealed class RemoveBatteryEvent : SimpleDoAfterEvent +public sealed partial class RemoveBatteryEvent : SimpleDoAfterEvent { } @@ -494,7 +494,7 @@ public sealed class RemoveBatteryEvent : SimpleDoAfterEvent /// on both success and failure /// [Serializable, NetSerializable] -public sealed class MechExitEvent : SimpleDoAfterEvent +public sealed partial class MechExitEvent : SimpleDoAfterEvent { } @@ -502,6 +502,6 @@ public sealed class MechExitEvent : SimpleDoAfterEvent /// Event raised when a person enters a mech, on both success and failure /// [Serializable, NetSerializable] -public sealed class MechEntryEvent : SimpleDoAfterEvent +public sealed partial class MechEntryEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/Mech/Equipment/Components/MechEquipmentComponent.cs b/Content.Shared/Mech/Equipment/Components/MechEquipmentComponent.cs index 42c3543d56..3933f12284 100644 --- a/Content.Shared/Mech/Equipment/Components/MechEquipmentComponent.cs +++ b/Content.Shared/Mech/Equipment/Components/MechEquipmentComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Mech.Equipment.Components; /// A piece of equipment that can be installed into /// [RegisterComponent] -public sealed class MechEquipmentComponent : Component +public sealed partial class MechEquipmentComponent : Component { /// /// How long does it take to install this piece of equipment @@ -42,12 +42,12 @@ public sealed class MechEquipmentInstallCancelled : EntityEventArgs } [Serializable, NetSerializable] -public sealed class GrabberDoAfterEvent : SimpleDoAfterEvent +public sealed partial class GrabberDoAfterEvent : SimpleDoAfterEvent { } [Serializable, NetSerializable] -public sealed class InsertEquipmentEvent : SimpleDoAfterEvent +public sealed partial class InsertEquipmentEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/Mech/SharedMech.cs b/Content.Shared/Mech/SharedMech.cs index 19a0aa9313..94af4453d4 100644 --- a/Content.Shared/Mech/SharedMech.cs +++ b/Content.Shared/Mech/SharedMech.cs @@ -49,14 +49,14 @@ public record struct AttemptRemoveMechEquipmentEvent() public bool Cancelled = false; } -public sealed class MechToggleEquipmentEvent : InstantActionEvent +public sealed partial class MechToggleEquipmentEvent : InstantActionEvent { } -public sealed class MechOpenUiEvent : InstantActionEvent +public sealed partial class MechOpenUiEvent : InstantActionEvent { } -public sealed class MechEjectPilotEvent : InstantActionEvent +public sealed partial class MechEjectPilotEvent : InstantActionEvent { } diff --git a/Content.Shared/Medical/Cryogenics/ActiveCryoPodComponent.cs b/Content.Shared/Medical/Cryogenics/ActiveCryoPodComponent.cs index b48353fd77..21c000a289 100644 --- a/Content.Shared/Medical/Cryogenics/ActiveCryoPodComponent.cs +++ b/Content.Shared/Medical/Cryogenics/ActiveCryoPodComponent.cs @@ -4,6 +4,6 @@ /// Tracking component for an enabled cryo pod (which periodically tries to inject chemicals in the occupant, if one exists) /// [RegisterComponent] -public sealed class ActiveCryoPodComponent : Component +public sealed partial class ActiveCryoPodComponent : Component { } diff --git a/Content.Shared/Medical/Cryogenics/CryoPodComponent.cs b/Content.Shared/Medical/Cryogenics/CryoPodComponent.cs index d317d49546..a736a63cb2 100644 --- a/Content.Shared/Medical/Cryogenics/CryoPodComponent.cs +++ b/Content.Shared/Medical/Cryogenics/CryoPodComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Shared.Medical.Cryogenics; [RegisterComponent, NetworkedComponent] -public sealed class CryoPodComponent : Component +public sealed partial class CryoPodComponent : Component { /// /// Specifies the name of the atmospherics port to draw gas from. diff --git a/Content.Shared/Medical/Cryogenics/InsideCryoPodComponent.cs b/Content.Shared/Medical/Cryogenics/InsideCryoPodComponent.cs index 7926518344..03cc3edf13 100644 --- a/Content.Shared/Medical/Cryogenics/InsideCryoPodComponent.cs +++ b/Content.Shared/Medical/Cryogenics/InsideCryoPodComponent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Medical.Cryogenics; [RegisterComponent] [NetworkedComponent] -public sealed class InsideCryoPodComponent: Component +public sealed partial class InsideCryoPodComponent: Component { [ViewVariables] [DataField("previousOffset")] diff --git a/Content.Shared/Medical/Cryogenics/SharedCryoPodSystem.cs b/Content.Shared/Medical/Cryogenics/SharedCryoPodSystem.cs index 650e49e881..3d5df87e68 100644 --- a/Content.Shared/Medical/Cryogenics/SharedCryoPodSystem.cs +++ b/Content.Shared/Medical/Cryogenics/SharedCryoPodSystem.cs @@ -172,12 +172,12 @@ public abstract partial class SharedCryoPodSystem: EntitySystem } [Serializable, NetSerializable] - public sealed class CryoPodPryFinished : SimpleDoAfterEvent + public sealed partial class CryoPodPryFinished : SimpleDoAfterEvent { } [Serializable, NetSerializable] - public sealed class CryoPodDragFinished : SimpleDoAfterEvent + public sealed partial class CryoPodDragFinished : SimpleDoAfterEvent { } } diff --git a/Content.Shared/Medical/DefibrillatorComponent.cs b/Content.Shared/Medical/DefibrillatorComponent.cs index 983c63bc14..afd1e0cc96 100644 --- a/Content.Shared/Medical/DefibrillatorComponent.cs +++ b/Content.Shared/Medical/DefibrillatorComponent.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Medical; /// person back into the world of the living. /// [RegisterComponent, NetworkedComponent] -public sealed class DefibrillatorComponent : Component +public sealed partial class DefibrillatorComponent : Component { /// /// Whether or not it's turned on and able to be used. @@ -94,7 +94,7 @@ public enum DefibrillatorVisuals : byte } [Serializable, NetSerializable] -public sealed class DefibrillatorZapDoAfterEvent : SimpleDoAfterEvent +public sealed partial class DefibrillatorZapDoAfterEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/Medical/HealingDoAfterEvent.cs b/Content.Shared/Medical/HealingDoAfterEvent.cs index 11e064e66d..96f61a1d67 100644 --- a/Content.Shared/Medical/HealingDoAfterEvent.cs +++ b/Content.Shared/Medical/HealingDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Medical; [Serializable, NetSerializable] -public sealed class HealingDoAfterEvent : SimpleDoAfterEvent +public sealed partial class HealingDoAfterEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/Medical/ReclaimerDoAfterEvent.cs b/Content.Shared/Medical/ReclaimerDoAfterEvent.cs index b94ed1e844..87d96c7609 100644 --- a/Content.Shared/Medical/ReclaimerDoAfterEvent.cs +++ b/Content.Shared/Medical/ReclaimerDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Medical; [Serializable, NetSerializable] -public sealed class ReclaimerDoAfterEvent : SimpleDoAfterEvent +public sealed partial class ReclaimerDoAfterEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/Medical/StethoscopeDoAfterEvent.cs b/Content.Shared/Medical/StethoscopeDoAfterEvent.cs index a6d2a6605d..aeb1c133cf 100644 --- a/Content.Shared/Medical/StethoscopeDoAfterEvent.cs +++ b/Content.Shared/Medical/StethoscopeDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Medical; [Serializable, NetSerializable] -public sealed class StethoscopeDoAfterEvent : SimpleDoAfterEvent +public sealed partial class StethoscopeDoAfterEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/MedicalScanner/HealthAnalyzerDoAfterEvent.cs b/Content.Shared/MedicalScanner/HealthAnalyzerDoAfterEvent.cs index ca2fea68cc..cf5bd4f397 100644 --- a/Content.Shared/MedicalScanner/HealthAnalyzerDoAfterEvent.cs +++ b/Content.Shared/MedicalScanner/HealthAnalyzerDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.MedicalScanner; [Serializable, NetSerializable] -public sealed class HealthAnalyzerDoAfterEvent : SimpleDoAfterEvent +public sealed partial class HealthAnalyzerDoAfterEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/MedicalScanner/SharedMedicalScannerComponent.cs b/Content.Shared/MedicalScanner/SharedMedicalScannerComponent.cs index 848370c1d0..c3367556c0 100644 --- a/Content.Shared/MedicalScanner/SharedMedicalScannerComponent.cs +++ b/Content.Shared/MedicalScanner/SharedMedicalScannerComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.MedicalScanner { - public abstract class SharedMedicalScannerComponent : Component + public abstract partial class SharedMedicalScannerComponent : Component { [Serializable, NetSerializable] public enum MedicalScannerVisuals : byte diff --git a/Content.Shared/Mining/Components/OreVeinComponent.cs b/Content.Shared/Mining/Components/OreVeinComponent.cs index e4316a9d9f..03e6a976cb 100644 --- a/Content.Shared/Mining/Components/OreVeinComponent.cs +++ b/Content.Shared/Mining/Components/OreVeinComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Mining.Components; /// Defines an entity that will drop a random ore after being destroyed. /// [RegisterComponent] -public sealed class OreVeinComponent : Component +public sealed partial class OreVeinComponent : Component { /// /// How often an entity will be seeded with ore. Note: the amount of ore diff --git a/Content.Shared/Mining/OrePrototype.cs b/Content.Shared/Mining/OrePrototype.cs index 502a5499ab..ea15aead20 100644 --- a/Content.Shared/Mining/OrePrototype.cs +++ b/Content.Shared/Mining/OrePrototype.cs @@ -11,7 +11,7 @@ public sealed class OrePrototype : IPrototype { /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("oreEntity", customTypeSerializer: typeof(PrototypeIdSerializer))] public string? OreEntity; diff --git a/Content.Shared/Mobs/Components/MobStateActionsComponent.cs b/Content.Shared/Mobs/Components/MobStateActionsComponent.cs index 7e9ef6f220..8faea0e248 100644 --- a/Content.Shared/Mobs/Components/MobStateActionsComponent.cs +++ b/Content.Shared/Mobs/Components/MobStateActionsComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Mobs.Components; /// /// [RegisterComponent] -public sealed class MobStateActionsComponent : Component +public sealed partial class MobStateActionsComponent : Component { /// /// Specifies a list of actions that should be available if a mob is in a given state. diff --git a/Content.Shared/Mobs/Components/MobStateComponent.cs b/Content.Shared/Mobs/Components/MobStateComponent.cs index 091c56f0eb..a2ff349e13 100644 --- a/Content.Shared/Mobs/Components/MobStateComponent.cs +++ b/Content.Shared/Mobs/Components/MobStateComponent.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Mobs.Components [RegisterComponent] [NetworkedComponent] [Access(typeof(MobStateSystem), typeof(MobThresholdSystem))] - public sealed class MobStateComponent : Component + public sealed partial class MobStateComponent : Component { //default mobstate is always the lowest state level [ViewVariables] public MobState CurrentState { get; set; } = MobState.Alive; diff --git a/Content.Shared/Mobs/Components/MobThresholdsComponent.cs b/Content.Shared/Mobs/Components/MobThresholdsComponent.cs index a3c503f2ea..49481787d4 100644 --- a/Content.Shared/Mobs/Components/MobThresholdsComponent.cs +++ b/Content.Shared/Mobs/Components/MobThresholdsComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Mobs.Components; [RegisterComponent, NetworkedComponent] [Access(typeof(MobThresholdSystem))] -public sealed class MobThresholdsComponent : Component +public sealed partial class MobThresholdsComponent : Component { [DataField("thresholds", required:true)] public SortedDictionary Thresholds = new(); diff --git a/Content.Shared/Morgue/Components/MorgueComponent.cs b/Content.Shared/Morgue/Components/MorgueComponent.cs index 1b21d174d6..d4761d1ce4 100644 --- a/Content.Shared/Morgue/Components/MorgueComponent.cs +++ b/Content.Shared/Morgue/Components/MorgueComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Morgue.Components; [RegisterComponent, NetworkedComponent] -public sealed class MorgueComponent : Component +public sealed partial class MorgueComponent : Component { /// /// Whether or not the morgue beeps if a living player is inside. diff --git a/Content.Shared/Movement/Components/ActiveJetpackComponent.cs b/Content.Shared/Movement/Components/ActiveJetpackComponent.cs index 5237205289..615dc3aee4 100644 --- a/Content.Shared/Movement/Components/ActiveJetpackComponent.cs +++ b/Content.Shared/Movement/Components/ActiveJetpackComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Movement.Components; /// Added to an enabled jetpack. Tracks gas usage on server / effect spawning on client. /// [RegisterComponent, NetworkedComponent] -public sealed class ActiveJetpackComponent : Component +public sealed partial class ActiveJetpackComponent : Component { public float EffectCooldown = 0.3f; public TimeSpan TargetTime = TimeSpan.Zero; diff --git a/Content.Shared/Movement/Components/AutoOrientComponent.cs b/Content.Shared/Movement/Components/AutoOrientComponent.cs index b9ccfa0210..4b89b0cbf4 100644 --- a/Content.Shared/Movement/Components/AutoOrientComponent.cs +++ b/Content.Shared/Movement/Components/AutoOrientComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Movement.Components; /// Automatically rotates eye upon grid traversals. /// [RegisterComponent, NetworkedComponent] -public sealed class AutoOrientComponent : Component +public sealed partial class AutoOrientComponent : Component { } diff --git a/Content.Shared/Movement/Components/FootstepModifierComponent.cs b/Content.Shared/Movement/Components/FootstepModifierComponent.cs index 8bd5b3d1ee..8856327633 100644 --- a/Content.Shared/Movement/Components/FootstepModifierComponent.cs +++ b/Content.Shared/Movement/Components/FootstepModifierComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Movement.Components /// Changes footstep sound /// [RegisterComponent, NetworkedComponent] - public sealed class FootstepModifierComponent : Component + public sealed partial class FootstepModifierComponent : Component { [DataField("footstepSoundCollection", required: true)] public SoundSpecifier Sound = default!; diff --git a/Content.Shared/Movement/Components/IgnoreKudzuComponent.cs b/Content.Shared/Movement/Components/IgnoreKudzuComponent.cs index adeed7c0e1..fd1ee31e41 100644 --- a/Content.Shared/Movement/Components/IgnoreKudzuComponent.cs +++ b/Content.Shared/Movement/Components/IgnoreKudzuComponent.cs @@ -6,6 +6,6 @@ namespace Content.Shared.Movement.Components; /// Special component to allow an entity to navigate kudzu without slowdown. /// [RegisterComponent, NetworkedComponent] -public sealed class IgnoreKudzuComponent : Component +public sealed partial class IgnoreKudzuComponent : Component { } diff --git a/Content.Shared/Movement/Components/InputMoverComponent.cs b/Content.Shared/Movement/Components/InputMoverComponent.cs index 65f507c1ea..1a987a9b29 100644 --- a/Content.Shared/Movement/Components/InputMoverComponent.cs +++ b/Content.Shared/Movement/Components/InputMoverComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Movement.Components { [RegisterComponent] [NetworkedComponent] - public sealed class InputMoverComponent : Component + public sealed partial class InputMoverComponent : Component { // This class has to be able to handle server TPS being lower than client FPS. // While still having perfectly responsive movement client side. diff --git a/Content.Shared/Movement/Components/JetpackComponent.cs b/Content.Shared/Movement/Components/JetpackComponent.cs index c4128a6572..8a3fb8931a 100644 --- a/Content.Shared/Movement/Components/JetpackComponent.cs +++ b/Content.Shared/Movement/Components/JetpackComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Movement.Components; [RegisterComponent, NetworkedComponent] -public sealed class JetpackComponent : Component +public sealed partial class JetpackComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("moleUsage")] public float MoleUsage = 0.012f; diff --git a/Content.Shared/Movement/Components/JetpackUserComponent.cs b/Content.Shared/Movement/Components/JetpackUserComponent.cs index d7001095f4..b59b677b62 100644 --- a/Content.Shared/Movement/Components/JetpackUserComponent.cs +++ b/Content.Shared/Movement/Components/JetpackUserComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Movement.Components; /// Added to someone using a jetpack for movement purposes /// [RegisterComponent, NetworkedComponent] -public sealed class JetpackUserComponent : Component +public sealed partial class JetpackUserComponent : Component { public EntityUid Jetpack; } diff --git a/Content.Shared/Movement/Components/MobMoverComponent.cs b/Content.Shared/Movement/Components/MobMoverComponent.cs index 1d7f407989..e833f2d4b7 100644 --- a/Content.Shared/Movement/Components/MobMoverComponent.cs +++ b/Content.Shared/Movement/Components/MobMoverComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Movement.Components /// [RegisterComponent] [NetworkedComponent()] - public sealed class MobMoverComponent : Component + public sealed partial class MobMoverComponent : Component { private float _stepSoundDistance; [DataField("grabRange")] public float GrabRange = 1.0f; diff --git a/Content.Shared/Movement/Components/MovementAlwaysTouchingComponent.cs b/Content.Shared/Movement/Components/MovementAlwaysTouchingComponent.cs index 97470c19de..7043843bea 100644 --- a/Content.Shared/Movement/Components/MovementAlwaysTouchingComponent.cs +++ b/Content.Shared/Movement/Components/MovementAlwaysTouchingComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Movement.Components; /// i.e. when weightless they're floaty but still have free movement. /// [RegisterComponent, NetworkedComponent] -public sealed class MovementAlwaysTouchingComponent : Component +public sealed partial class MovementAlwaysTouchingComponent : Component { } diff --git a/Content.Shared/Movement/Components/MovementBodyPartComponent.cs b/Content.Shared/Movement/Components/MovementBodyPartComponent.cs index f4d20033f7..83407859e4 100644 --- a/Content.Shared/Movement/Components/MovementBodyPartComponent.cs +++ b/Content.Shared/Movement/Components/MovementBodyPartComponent.cs @@ -3,13 +3,13 @@ using Robust.Shared.GameStates; namespace Content.Shared.Movement.Components; [RegisterComponent, NetworkedComponent] -public sealed class MovementBodyPartComponent : Component +public sealed partial class MovementBodyPartComponent : Component { [DataField("walkSpeed")] - public readonly float WalkSpeed = MovementSpeedModifierComponent.DefaultBaseWalkSpeed; + public float WalkSpeed = MovementSpeedModifierComponent.DefaultBaseWalkSpeed; [DataField("sprintSpeed")] - public readonly float SprintSpeed = MovementSpeedModifierComponent.DefaultBaseSprintSpeed; + public float SprintSpeed = MovementSpeedModifierComponent.DefaultBaseSprintSpeed; [DataField("acceleration")] public float Acceleration = MovementSpeedModifierComponent.DefaultAcceleration; diff --git a/Content.Shared/Movement/Components/MovementIgnoreGravityComponent.cs b/Content.Shared/Movement/Components/MovementIgnoreGravityComponent.cs index c3bfc54500..bade6287e8 100644 --- a/Content.Shared/Movement/Components/MovementIgnoreGravityComponent.cs +++ b/Content.Shared/Movement/Components/MovementIgnoreGravityComponent.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Movement.Components /// Ignores gravity entirely. /// [RegisterComponent, NetworkedComponent] - public sealed class MovementIgnoreGravityComponent : Component + public sealed partial class MovementIgnoreGravityComponent : Component { /// /// Whether or not gravity is on or off for this object. diff --git a/Content.Shared/Movement/Components/MovementSpeedModifierComponent.cs b/Content.Shared/Movement/Components/MovementSpeedModifierComponent.cs index e55c45bba5..33270c2034 100644 --- a/Content.Shared/Movement/Components/MovementSpeedModifierComponent.cs +++ b/Content.Shared/Movement/Components/MovementSpeedModifierComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Movement.Components /// [RegisterComponent] [NetworkedComponent, Access(typeof(MovementSpeedModifierSystem))] - public sealed class MovementSpeedModifierComponent : Component + public sealed partial class MovementSpeedModifierComponent : Component { // Weightless public const float DefaultMinimumFrictionSpeed = 0.005f; diff --git a/Content.Shared/Movement/Components/SlowedByContactComponent.cs b/Content.Shared/Movement/Components/SlowedByContactComponent.cs index d2065a9b41..eafefefee1 100644 --- a/Content.Shared/Movement/Components/SlowedByContactComponent.cs +++ b/Content.Shared/Movement/Components/SlowedByContactComponent.cs @@ -7,6 +7,6 @@ namespace Content.Shared.Movement.Components; /// Exists just to listen to a single event. What a life. /// [NetworkedComponent, RegisterComponent] // must be networked to properly predict adding & removal -public sealed class SlowedByContactComponent : Component +public sealed partial class SlowedByContactComponent : Component { } diff --git a/Content.Shared/Movement/Events/ToggleJetpackEvent.cs b/Content.Shared/Movement/Events/ToggleJetpackEvent.cs index d344c7a9c3..9a622f3cad 100644 --- a/Content.Shared/Movement/Events/ToggleJetpackEvent.cs +++ b/Content.Shared/Movement/Events/ToggleJetpackEvent.cs @@ -5,4 +5,4 @@ namespace Content.Shared.Movement.Events; /// /// Raised on a jetpack whenever it is toggled. /// -public sealed class ToggleJetpackEvent : InstantActionEvent {} +public sealed partial class ToggleJetpackEvent : InstantActionEvent {} diff --git a/Content.Shared/NPC/SharedNPCComponent.cs b/Content.Shared/NPC/SharedNPCComponent.cs index 93dd64b4f8..8d2dc96a21 100644 --- a/Content.Shared/NPC/SharedNPCComponent.cs +++ b/Content.Shared/NPC/SharedNPCComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.NPC; [NetworkedComponent] -public abstract class SharedNPCComponent : Component +public abstract partial class SharedNPCComponent : Component { } diff --git a/Content.Shared/NameIdentifier/NameIdentifierGroupPrototype.cs b/Content.Shared/NameIdentifier/NameIdentifierGroupPrototype.cs index dd9a4e91ff..82dce0cf3b 100644 --- a/Content.Shared/NameIdentifier/NameIdentifierGroupPrototype.cs +++ b/Content.Shared/NameIdentifier/NameIdentifierGroupPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.NameIdentifier; public sealed class NameIdentifierGroupPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Should the identifier become the full name, or just append? diff --git a/Content.Shared/Nuke/NukeDiskComponent.cs b/Content.Shared/Nuke/NukeDiskComponent.cs index 6a42998f7d..2f99d68918 100644 --- a/Content.Shared/Nuke/NukeDiskComponent.cs +++ b/Content.Shared/Nuke/NukeDiskComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Nuke; /// Used for tracking the nuke disk - isn't a tag for pinpointer purposes. /// [RegisterComponent, NetworkedComponent] -public sealed class NukeDiskComponent : Component +public sealed partial class NukeDiskComponent : Component { } diff --git a/Content.Shared/Nuke/NukeUiMessages.cs b/Content.Shared/Nuke/NukeUiMessages.cs index d368def774..1c35cac7b0 100644 --- a/Content.Shared/Nuke/NukeUiMessages.cs +++ b/Content.Shared/Nuke/NukeUiMessages.cs @@ -2,7 +2,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Nuke { - public abstract class SharedNukeComponent : Component + public abstract partial class SharedNukeComponent : Component { public const string NukeDiskSlotId = "Nuke"; } diff --git a/Content.Shared/Nuke/SharedNuke.cs b/Content.Shared/Nuke/SharedNuke.cs index 9ed6faafb0..1c471e11c6 100644 --- a/Content.Shared/Nuke/SharedNuke.cs +++ b/Content.Shared/Nuke/SharedNuke.cs @@ -32,7 +32,7 @@ namespace Content.Shared.Nuke } [Serializable, NetSerializable] - public sealed class NukeDisarmDoAfterEvent : SimpleDoAfterEvent + public sealed partial class NukeDisarmDoAfterEvent : SimpleDoAfterEvent { } } diff --git a/Content.Shared/Nutrition/AnimalHusbandry/InfantComponent.cs b/Content.Shared/Nutrition/AnimalHusbandry/InfantComponent.cs index 93567580d4..c6406a0866 100644 --- a/Content.Shared/Nutrition/AnimalHusbandry/InfantComponent.cs +++ b/Content.Shared/Nutrition/AnimalHusbandry/InfantComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Nutrition.AnimalHusbandry; /// Infants have half the size, visually, and cannot breed. /// [RegisterComponent, NetworkedComponent] -public sealed class InfantComponent : Component +public sealed partial class InfantComponent : Component { /// /// How long the entity remains an infant. diff --git a/Content.Shared/Nutrition/AnimalHusbandry/ReproductiveComponent.cs b/Content.Shared/Nutrition/AnimalHusbandry/ReproductiveComponent.cs index 4db22da246..c3f1fc69f5 100644 --- a/Content.Shared/Nutrition/AnimalHusbandry/ReproductiveComponent.cs +++ b/Content.Shared/Nutrition/AnimalHusbandry/ReproductiveComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Nutrition.AnimalHusbandry; /// can create several "child" entities. /// [RegisterComponent] -public sealed class ReproductiveComponent : Component +public sealed partial class ReproductiveComponent : Component { /// /// The next time when breeding will be attempted. diff --git a/Content.Shared/Nutrition/AnimalHusbandry/ReproductivePartnerComponent.cs b/Content.Shared/Nutrition/AnimalHusbandry/ReproductivePartnerComponent.cs index e18646b065..ec1d62012d 100644 --- a/Content.Shared/Nutrition/AnimalHusbandry/ReproductivePartnerComponent.cs +++ b/Content.Shared/Nutrition/AnimalHusbandry/ReproductivePartnerComponent.cs @@ -6,7 +6,7 @@ /// This functions outside of the whitelist. /// [RegisterComponent] -public sealed class ReproductivePartnerComponent : Component +public sealed partial class ReproductivePartnerComponent : Component { } diff --git a/Content.Shared/Nutrition/Components/ButcherableComponent.cs b/Content.Shared/Nutrition/Components/ButcherableComponent.cs index ab8e40b4d4..4fce45422a 100644 --- a/Content.Shared/Nutrition/Components/ButcherableComponent.cs +++ b/Content.Shared/Nutrition/Components/ButcherableComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Nutrition.Components /// Indicates that the entity can be thrown on a kitchen spike for butchering. /// [RegisterComponent, NetworkedComponent] - public sealed class ButcherableComponent : Component + public sealed partial class ButcherableComponent : Component { [DataField("spawned", required: true)] public List SpawnedEntities = new(); diff --git a/Content.Shared/Nutrition/Components/CreamPieComponent.cs b/Content.Shared/Nutrition/Components/CreamPieComponent.cs index f209593964..b6bd124084 100644 --- a/Content.Shared/Nutrition/Components/CreamPieComponent.cs +++ b/Content.Shared/Nutrition/Components/CreamPieComponent.cs @@ -5,13 +5,13 @@ namespace Content.Shared.Nutrition.Components { [Access(typeof(SharedCreamPieSystem))] [RegisterComponent] - public sealed class CreamPieComponent : Component + public sealed partial class CreamPieComponent : Component { [DataField("paralyzeTime")] - public float ParalyzeTime { get; } = 1f; + public float ParalyzeTime { get; private set; } = 1f; [DataField("sound")] - public SoundSpecifier Sound { get; } = new SoundCollectionSpecifier("desecration"); + public SoundSpecifier Sound { get; private set; } = new SoundCollectionSpecifier("desecration"); [ViewVariables] public bool Splatted { get; set; } = false; diff --git a/Content.Shared/Nutrition/Components/CreamPiedComponent.cs b/Content.Shared/Nutrition/Components/CreamPiedComponent.cs index 3a07485f28..6779fe3666 100644 --- a/Content.Shared/Nutrition/Components/CreamPiedComponent.cs +++ b/Content.Shared/Nutrition/Components/CreamPiedComponent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Nutrition.Components { [Access(typeof(SharedCreamPieSystem))] [RegisterComponent] - public sealed class CreamPiedComponent : Component + public sealed partial class CreamPiedComponent : Component { [ViewVariables] public bool CreamPied { get; set; } = false; diff --git a/Content.Shared/Nutrition/Components/HungerComponent.cs b/Content.Shared/Nutrition/Components/HungerComponent.cs index baca5928a4..25d1e5e0a2 100644 --- a/Content.Shared/Nutrition/Components/HungerComponent.cs +++ b/Content.Shared/Nutrition/Components/HungerComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Generic; namespace Content.Shared.Nutrition.Components; [RegisterComponent, NetworkedComponent, Access(typeof(HungerSystem))] -public sealed class HungerComponent : Component +public sealed partial class HungerComponent : Component { /// /// The current hunger amount of the entity diff --git a/Content.Shared/Nutrition/Components/SmokableComponent.cs b/Content.Shared/Nutrition/Components/SmokableComponent.cs index e2dbff9204..320b3dd31f 100644 --- a/Content.Shared/Nutrition/Components/SmokableComponent.cs +++ b/Content.Shared/Nutrition/Components/SmokableComponent.cs @@ -5,16 +5,16 @@ using Robust.Shared.GameStates; namespace Content.Shared.Nutrition.Components { [RegisterComponent, NetworkedComponent] - public sealed class SmokableComponent : Component + public sealed partial class SmokableComponent : Component { [DataField("solution")] - public string Solution { get; } = "smokable"; + public string Solution { get; private set; } = "smokable"; /// /// Solution inhale amount per second. /// [DataField("inhaleAmount")] - public FixedPoint2 InhaleAmount { get; } = FixedPoint2.New(0.05f); + public FixedPoint2 InhaleAmount { get; private set; } = FixedPoint2.New(0.05f); [DataField("state")] public SmokableState State { get; set; } = SmokableState.Unlit; diff --git a/Content.Shared/Nutrition/Events.cs b/Content.Shared/Nutrition/Events.cs index bf4acfafa2..97d96e7bff 100644 --- a/Content.Shared/Nutrition/Events.cs +++ b/Content.Shared/Nutrition/Events.cs @@ -8,13 +8,13 @@ namespace Content.Shared.Nutrition; /// Do after even for food and drink. /// [Serializable, NetSerializable] -public sealed class ConsumeDoAfterEvent : DoAfterEvent +public sealed partial class ConsumeDoAfterEvent : DoAfterEvent { [DataField("solution", required: true)] - public readonly string Solution = default!; + public string Solution = default!; [DataField("flavorMessage", required: true)] - public readonly string FlavorMessage = default!; + public string FlavorMessage = default!; private ConsumeDoAfterEvent() { @@ -33,13 +33,13 @@ public sealed class ConsumeDoAfterEvent : DoAfterEvent /// Do after event for vape. /// [Serializable, NetSerializable] -public sealed class VapeDoAfterEvent : DoAfterEvent +public sealed partial class VapeDoAfterEvent : DoAfterEvent { [DataField("solution", required: true)] - public readonly Solution Solution = default!; + public Solution Solution = default!; [DataField("forced", required: true)] - public readonly bool Forced = default!; + public bool Forced = default!; private VapeDoAfterEvent() { diff --git a/Content.Shared/Nutrition/Flavor.cs b/Content.Shared/Nutrition/Flavor.cs index 475b4e2e66..051836a557 100644 --- a/Content.Shared/Nutrition/Flavor.cs +++ b/Content.Shared/Nutrition/Flavor.cs @@ -6,13 +6,13 @@ namespace Content.Shared.Nutrition; public sealed class FlavorPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("flavorType")] - public FlavorType FlavorType { get; } = FlavorType.Base; + public FlavorType FlavorType { get; private set; } = FlavorType.Base; [DataField("description")] - public string FlavorDescription { get; } = default!; + public string FlavorDescription { get; private set; } = default!; } public enum FlavorType : byte diff --git a/Content.Shared/Overlays/ShowSecurityIconsComponent.cs b/Content.Shared/Overlays/ShowSecurityIconsComponent.cs index bade256d6f..2127408afb 100644 --- a/Content.Shared/Overlays/ShowSecurityIconsComponent.cs +++ b/Content.Shared/Overlays/ShowSecurityIconsComponent.cs @@ -6,5 +6,5 @@ namespace Content.Shared.Overlays /// This component allows you to see job icons above mobs. /// [RegisterComponent, NetworkedComponent] - public sealed class ShowSecurityIconsComponent : Component { } + public sealed partial class ShowSecurityIconsComponent : Component { } } diff --git a/Content.Shared/PAI/PAIComponent.cs b/Content.Shared/PAI/PAIComponent.cs index b95fc0692c..ec0569865e 100644 --- a/Content.Shared/PAI/PAIComponent.cs +++ b/Content.Shared/PAI/PAIComponent.cs @@ -14,7 +14,7 @@ namespace Content.Shared.PAI /// All logic in PAISystem. /// [RegisterComponent, NetworkedComponent] - public sealed class PAIComponent : Component + public sealed partial class PAIComponent : Component { /// /// The last person who activated this PAI. diff --git a/Content.Shared/PDA/PdaComponent.cs b/Content.Shared/PDA/PdaComponent.cs index dbaf614eb5..46c85ee39e 100644 --- a/Content.Shared/PDA/PdaComponent.cs +++ b/Content.Shared/PDA/PdaComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.PDA { [RegisterComponent, NetworkedComponent] - public sealed class PdaComponent : Component + public sealed partial class PdaComponent : Component { public const string PdaIdSlotId = "PDA-id"; public const string PdaPenSlotId = "PDA-pen"; diff --git a/Content.Shared/Paper/SharedPaperComponent.cs b/Content.Shared/Paper/SharedPaperComponent.cs index 329c95c8f8..1e654cc68a 100644 --- a/Content.Shared/Paper/SharedPaperComponent.cs +++ b/Content.Shared/Paper/SharedPaperComponent.cs @@ -2,7 +2,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Paper; -public abstract class SharedPaperComponent : Component +public abstract partial class SharedPaperComponent : Component { [Serializable, NetSerializable] public sealed class PaperBoundUserInterfaceState : BoundUserInterfaceState diff --git a/Content.Shared/Paper/StampComponent.cs b/Content.Shared/Paper/StampComponent.cs index 2fd2fd3ad7..790aa1d60a 100644 --- a/Content.Shared/Paper/StampComponent.cs +++ b/Content.Shared/Paper/StampComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Paper; /// equivalent in the component. /// [DataDefinition, Serializable, NetSerializable] -public struct StampDisplayInfo +public partial struct StampDisplayInfo { StampDisplayInfo(string s) { @@ -25,7 +25,7 @@ public struct StampDisplayInfo }; [RegisterComponent] -public sealed class StampComponent : Component +public sealed partial class StampComponent : Component { /// /// The loc string name that will be stamped to the piece of paper on examine. diff --git a/Content.Shared/Parallax/Biomes/BiomeComponent.cs b/Content.Shared/Parallax/Biomes/BiomeComponent.cs index 19b0e85744..7e373db6e0 100644 --- a/Content.Shared/Parallax/Biomes/BiomeComponent.cs +++ b/Content.Shared/Parallax/Biomes/BiomeComponent.cs @@ -54,7 +54,7 @@ public sealed partial class BiomeComponent : Component /// Currently active chunks /// [DataField("loadedChunks")] - public readonly HashSet LoadedChunks = new(); + public HashSet LoadedChunks = new(); #region Markers @@ -68,7 +68,7 @@ public sealed partial class BiomeComponent : Component /// Track what markers we've loaded already to avoid double-loading. /// [DataField("loadedMarkers", customTypeSerializer:typeof(PrototypeIdDictionarySerializer, BiomeMarkerLayerPrototype>))] - public readonly Dictionary> LoadedMarkers = new(); + public Dictionary> LoadedMarkers = new(); [DataField("markerLayers", customTypeSerializer: typeof(PrototypeIdListSerializer))] public List MarkerLayers = new(); diff --git a/Content.Shared/Parallax/Biomes/Layers/BiomeDecalLayer.cs b/Content.Shared/Parallax/Biomes/Layers/BiomeDecalLayer.cs index 07e674c802..5e31e513a9 100644 --- a/Content.Shared/Parallax/Biomes/Layers/BiomeDecalLayer.cs +++ b/Content.Shared/Parallax/Biomes/Layers/BiomeDecalLayer.cs @@ -7,11 +7,11 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Parallax.Biomes.Layers; [Serializable, NetSerializable] -public sealed class BiomeDecalLayer : IBiomeWorldLayer +public sealed partial class BiomeDecalLayer : IBiomeWorldLayer { /// [DataField("allowedTiles", customTypeSerializer:typeof(PrototypeIdListSerializer))] - public List AllowedTiles { get; } = new(); + public List AllowedTiles { get; private set; } = new(); /// /// Divide each tile up by this amount. @@ -20,14 +20,14 @@ public sealed class BiomeDecalLayer : IBiomeWorldLayer public float Divisions = 1f; [DataField("noise")] - public FastNoiseLite Noise { get; } = new(0); + public FastNoiseLite Noise { get; private set; } = new(0); /// [DataField("threshold")] - public float Threshold { get; } = 0.8f; + public float Threshold { get; private set; } = 0.8f; /// - [DataField("invert")] public bool Invert { get; } = false; + [DataField("invert")] public bool Invert { get; private set; } = false; [DataField("decals", required: true, customTypeSerializer:typeof(PrototypeIdListSerializer))] public List Decals = new(); diff --git a/Content.Shared/Parallax/Biomes/Layers/BiomeDummyLayer.cs b/Content.Shared/Parallax/Biomes/Layers/BiomeDummyLayer.cs index 5395ebf754..2beeba6e03 100644 --- a/Content.Shared/Parallax/Biomes/Layers/BiomeDummyLayer.cs +++ b/Content.Shared/Parallax/Biomes/Layers/BiomeDummyLayer.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Parallax.Biomes.Layers; /// For example if they wish to add their own layers at specific points across different templates. /// [Serializable, NetSerializable] -public sealed class BiomeDummyLayer : IBiomeLayer +public sealed partial class BiomeDummyLayer : IBiomeLayer { [DataField("id", required: true)] public string ID = string.Empty; diff --git a/Content.Shared/Parallax/Biomes/Layers/BiomeEntityLayer.cs b/Content.Shared/Parallax/Biomes/Layers/BiomeEntityLayer.cs index caf2fef991..21ffdd96e5 100644 --- a/Content.Shared/Parallax/Biomes/Layers/BiomeEntityLayer.cs +++ b/Content.Shared/Parallax/Biomes/Layers/BiomeEntityLayer.cs @@ -7,20 +7,20 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Parallax.Biomes.Layers; [Serializable, NetSerializable] -public sealed class BiomeEntityLayer : IBiomeWorldLayer +public sealed partial class BiomeEntityLayer : IBiomeWorldLayer { /// [DataField("allowedTiles", customTypeSerializer:typeof(PrototypeIdListSerializer))] - public List AllowedTiles { get; } = new(); + public List AllowedTiles { get; private set; } = new(); - [DataField("noise")] public FastNoiseLite Noise { get; } = new(0); + [DataField("noise")] public FastNoiseLite Noise { get; private set; } = new(0); /// [DataField("threshold")] - public float Threshold { get; } = 0.5f; + public float Threshold { get; private set; } = 0.5f; /// - [DataField("invert")] public bool Invert { get; } = false; + [DataField("invert")] public bool Invert { get; private set; } = false; [DataField("entities", required: true, customTypeSerializer: typeof(PrototypeIdListSerializer))] public List Entities = new(); diff --git a/Content.Shared/Parallax/Biomes/Layers/BiomeMetaLayer.cs b/Content.Shared/Parallax/Biomes/Layers/BiomeMetaLayer.cs index a33d6c522d..51231405a8 100644 --- a/Content.Shared/Parallax/Biomes/Layers/BiomeMetaLayer.cs +++ b/Content.Shared/Parallax/Biomes/Layers/BiomeMetaLayer.cs @@ -9,18 +9,18 @@ namespace Content.Shared.Parallax.Biomes.Layers; /// Can be used for sub-biomes. /// [Serializable, NetSerializable] -public sealed class BiomeMetaLayer : IBiomeLayer +public sealed partial class BiomeMetaLayer : IBiomeLayer { [DataField("noise")] - public FastNoiseLite Noise { get; } = new(0); + public FastNoiseLite Noise { get; private set; } = new(0); /// [DataField("threshold")] - public float Threshold { get; } = -1f; + public float Threshold { get; private set; } = -1f; /// [DataField("invert")] - public bool Invert { get; } + public bool Invert { get; private set; } [DataField("template", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] public string Template = string.Empty; diff --git a/Content.Shared/Parallax/Biomes/Layers/BiomeTileLayer.cs b/Content.Shared/Parallax/Biomes/Layers/BiomeTileLayer.cs index 7b8aa815a4..0ac9f1894c 100644 --- a/Content.Shared/Parallax/Biomes/Layers/BiomeTileLayer.cs +++ b/Content.Shared/Parallax/Biomes/Layers/BiomeTileLayer.cs @@ -6,16 +6,16 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Parallax.Biomes.Layers; [Serializable, NetSerializable] -public sealed class BiomeTileLayer : IBiomeLayer +public sealed partial class BiomeTileLayer : IBiomeLayer { - [DataField("noise")] public FastNoiseLite Noise { get; } = new(0); + [DataField("noise")] public FastNoiseLite Noise { get; private set; } = new(0); /// [DataField("threshold")] - public float Threshold { get; } = 0.5f; + public float Threshold { get; private set; } = 0.5f; /// - [DataField("invert")] public bool Invert { get; } = false; + [DataField("invert")] public bool Invert { get; private set; } = false; /// /// Which tile variants to use for this layer. Uses all of the tile's variants if none specified diff --git a/Content.Shared/Parallax/Biomes/Layers/IBiomeLayer.cs b/Content.Shared/Parallax/Biomes/Layers/IBiomeLayer.cs index 3f81b5598f..3b1ad5c76c 100644 --- a/Content.Shared/Parallax/Biomes/Layers/IBiomeLayer.cs +++ b/Content.Shared/Parallax/Biomes/Layers/IBiomeLayer.cs @@ -3,7 +3,7 @@ using Robust.Shared.Noise; namespace Content.Shared.Parallax.Biomes.Layers; [ImplicitDataDefinitionForInheritors] -public interface IBiomeLayer +public partial interface IBiomeLayer { /// /// Seed is used an offset from the relevant BiomeComponent's seed. @@ -19,4 +19,4 @@ public interface IBiomeLayer /// Is the thresold inverted so we need to be lower than it. /// public bool Invert { get; } -} \ No newline at end of file +} diff --git a/Content.Shared/Parallax/Biomes/Layers/IBiomeWorldLayer.cs b/Content.Shared/Parallax/Biomes/Layers/IBiomeWorldLayer.cs index 92632e24ed..e04db913b7 100644 --- a/Content.Shared/Parallax/Biomes/Layers/IBiomeWorldLayer.cs +++ b/Content.Shared/Parallax/Biomes/Layers/IBiomeWorldLayer.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Parallax.Biomes.Layers; /// /// Handles actual objects such as decals and entities. /// -public interface IBiomeWorldLayer : IBiomeLayer +public partial interface IBiomeWorldLayer : IBiomeLayer { /// /// What tiles we're allowed to spawn on, real or biome. diff --git a/Content.Shared/Parallax/Biomes/Markers/BiomeMarkerLayerPrototype.cs b/Content.Shared/Parallax/Biomes/Markers/BiomeMarkerLayerPrototype.cs index 4ac68364ba..b2f55f46ed 100644 --- a/Content.Shared/Parallax/Biomes/Markers/BiomeMarkerLayerPrototype.cs +++ b/Content.Shared/Parallax/Biomes/Markers/BiomeMarkerLayerPrototype.cs @@ -12,13 +12,13 @@ public sealed class BiomeMarkerLayerPrototype : IBiomeMarkerLayer [IdDataField] public string ID { get; } = default!; [DataField("proto", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] - public string Prototype { get; } = string.Empty; + public string Prototype { get; private set; } = string.Empty; /// /// Checks for the relevant entity for the tile before spawning. Useful for substituting walls with ore veins for example. /// [DataField("entityMask", customTypeSerializer:typeof(PrototypeIdSerializer))] - public string? EntityMask { get; } + public string? EntityMask { get; private set; } /// /// Minimum radius between 2 points @@ -40,5 +40,5 @@ public sealed class BiomeMarkerLayerPrototype : IBiomeMarkerLayer /// [DataField("size")] - public int Size { get; } = 128; + public int Size { get; private set; } = 128; } diff --git a/Content.Shared/Payload/Components/ChemicalPayloadComponent.cs b/Content.Shared/Payload/Components/ChemicalPayloadComponent.cs index 99d0356aaa..d00382ee84 100644 --- a/Content.Shared/Payload/Components/ChemicalPayloadComponent.cs +++ b/Content.Shared/Payload/Components/ChemicalPayloadComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Payload.Components; /// Chemical payload that mixes the solutions of two drain-able solution containers when triggered. /// [RegisterComponent] -public sealed class ChemicalPayloadComponent : Component +public sealed partial class ChemicalPayloadComponent : Component { [DataField("beakerSlotA", required: true)] public ItemSlot BeakerSlotA = new(); diff --git a/Content.Shared/Payload/Components/PayloadCaseComponent.cs b/Content.Shared/Payload/Components/PayloadCaseComponent.cs index a942dbb01b..f85faba5b1 100644 --- a/Content.Shared/Payload/Components/PayloadCaseComponent.cs +++ b/Content.Shared/Payload/Components/PayloadCaseComponent.cs @@ -9,4 +9,4 @@ namespace Content.Shared.Payload.Components; /// triggered, it will forward the trigger onto any contained payload entity. /// [RegisterComponent] -public sealed class PayloadCaseComponent : Component { } +public sealed partial class PayloadCaseComponent : Component { } diff --git a/Content.Shared/Payload/Components/PayloadTriggerComponent.cs b/Content.Shared/Payload/Components/PayloadTriggerComponent.cs index e611a0d102..6d3df41ac9 100644 --- a/Content.Shared/Payload/Components/PayloadTriggerComponent.cs +++ b/Content.Shared/Payload/Components/PayloadTriggerComponent.cs @@ -18,7 +18,7 @@ namespace Content.Shared.Payload.Components; /// network message), the trigger will be forwarded to the device that this entity is installed in (if any). /// [RegisterComponent, NetworkedComponent] -public sealed class PayloadTriggerComponent : Component +public sealed partial class PayloadTriggerComponent : Component { /// /// If true, triggering this entity will also cause the parent of this entity to be triggered. @@ -29,7 +29,7 @@ public sealed class PayloadTriggerComponent : Component /// List of components to add or remove from an entity when this trigger is (un)installed. /// [DataField("components", serverOnly:true, readOnly: true)] - public readonly ComponentRegistry? Components = null; + public ComponentRegistry? Components = null; /// /// Keeps track of what components this trigger has granted to the payload case. @@ -41,5 +41,5 @@ public sealed class PayloadTriggerComponent : Component /// responsible for adding. /// [DataField("grantedComponents", serverOnly: true)] - public readonly HashSet GrantedComponents = new(); + public HashSet GrantedComponents = new(); } diff --git a/Content.Shared/Physics/PreventCollideComponent.cs b/Content.Shared/Physics/PreventCollideComponent.cs index 6f11929caa..73c4c2e48a 100644 --- a/Content.Shared/Physics/PreventCollideComponent.cs +++ b/Content.Shared/Physics/PreventCollideComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Physics; /// Use this to allow a specific UID to prevent collides /// [RegisterComponent, NetworkedComponent] -public sealed class PreventCollideComponent : Component +public sealed partial class PreventCollideComponent : Component { public EntityUid Uid; } diff --git a/Content.Shared/Pinpointer/NavMapComponent.cs b/Content.Shared/Pinpointer/NavMapComponent.cs index 67b118c7ce..3291114b5d 100644 --- a/Content.Shared/Pinpointer/NavMapComponent.cs +++ b/Content.Shared/Pinpointer/NavMapComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Pinpointer; /// Used to store grid poly data to be used for UIs. /// [RegisterComponent, NetworkedComponent] -public sealed class NavMapComponent : Component +public sealed partial class NavMapComponent : Component { [ViewVariables] public readonly Dictionary Chunks = new(); diff --git a/Content.Shared/Placeable/PlaceableSurfaceComponent.cs b/Content.Shared/Placeable/PlaceableSurfaceComponent.cs index bd08a2b480..b30bcedcdb 100644 --- a/Content.Shared/Placeable/PlaceableSurfaceComponent.cs +++ b/Content.Shared/Placeable/PlaceableSurfaceComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Placeable { [RegisterComponent, NetworkedComponent] [Access(typeof(PlaceableSurfaceSystem))] - public sealed class PlaceableSurfaceComponent : Component + public sealed partial class PlaceableSurfaceComponent : Component { [DataField("isPlaceable")] public bool IsPlaceable { get; set; } = true; diff --git a/Content.Shared/PneumaticCannon/PneumaticCannonComponent.cs b/Content.Shared/PneumaticCannon/PneumaticCannonComponent.cs index b5956561b3..8c760abe58 100644 --- a/Content.Shared/PneumaticCannon/PneumaticCannonComponent.cs +++ b/Content.Shared/PneumaticCannon/PneumaticCannonComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.PneumaticCannon; /// Handles gas powered guns--cancels shooting if no gas is available, and takes gas from the given container slot. /// [RegisterComponent, NetworkedComponent] -public sealed class PneumaticCannonComponent : Component +public sealed partial class PneumaticCannonComponent : Component { public const string TankSlotId = "gas_tank"; diff --git a/Content.Shared/Pointing/Components/SharedPointingArrowComponent.cs b/Content.Shared/Pointing/Components/SharedPointingArrowComponent.cs index 09b5157aa5..07613c7746 100644 --- a/Content.Shared/Pointing/Components/SharedPointingArrowComponent.cs +++ b/Content.Shared/Pointing/Components/SharedPointingArrowComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Pointing.Components; [NetworkedComponent] -public abstract class SharedPointingArrowComponent : Component +public abstract partial class SharedPointingArrowComponent : Component { /// /// When the pointing arrow ends diff --git a/Content.Shared/Pointing/Components/SharedRoguePointingArrowComponent.cs b/Content.Shared/Pointing/Components/SharedRoguePointingArrowComponent.cs index 4d6de3a90d..72579caa35 100644 --- a/Content.Shared/Pointing/Components/SharedRoguePointingArrowComponent.cs +++ b/Content.Shared/Pointing/Components/SharedRoguePointingArrowComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Pointing.Components { [NetworkedComponent] - public abstract class SharedRoguePointingArrowComponent : Component + public abstract partial class SharedRoguePointingArrowComponent : Component { } diff --git a/Content.Shared/Polymorph/PolymorphPrototype.cs b/Content.Shared/Polymorph/PolymorphPrototype.cs index 7663e960b8..75c6d58d24 100644 --- a/Content.Shared/Polymorph/PolymorphPrototype.cs +++ b/Content.Shared/Polymorph/PolymorphPrototype.cs @@ -9,14 +9,14 @@ namespace Content.Shared.Polymorph /// [Prototype("polymorph")] [DataDefinition] - public sealed class PolymorphPrototype : IPrototype, IInheritingPrototype + public sealed partial class PolymorphPrototype : IPrototype, IInheritingPrototype { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("name")] - public string Name { get; } = string.Empty; + public string Name { get; private set; } = string.Empty; [ParentDataField(typeof(AbstractPrototypeIdArraySerializer))] public string[]? Parents { get; private set; } diff --git a/Content.Shared/Power/ApcToolFinishedEvent.cs b/Content.Shared/Power/ApcToolFinishedEvent.cs index 3178b24dc9..fcf3940171 100644 --- a/Content.Shared/Power/ApcToolFinishedEvent.cs +++ b/Content.Shared/Power/ApcToolFinishedEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Power; [Serializable, NetSerializable] -public sealed class ApcToolFinishedEvent : SimpleDoAfterEvent +public sealed partial class ApcToolFinishedEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/Power/Generator/FuelGeneratorComponent.cs b/Content.Shared/Power/Generator/FuelGeneratorComponent.cs index 0f98d16abf..7516c34914 100644 --- a/Content.Shared/Power/Generator/FuelGeneratorComponent.cs +++ b/Content.Shared/Power/Generator/FuelGeneratorComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Power.Generator; /// This is used for generators that run off some kind of fuel. /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedGeneratorSystem))] -public sealed class FuelGeneratorComponent : Component +public sealed partial class FuelGeneratorComponent : Component { /// /// The amount of fuel left in the generator. diff --git a/Content.Shared/PowerCell/Components/PowerCellComponent.cs b/Content.Shared/PowerCell/Components/PowerCellComponent.cs index 52e89fed02..3d4f0472f8 100644 --- a/Content.Shared/PowerCell/Components/PowerCellComponent.cs +++ b/Content.Shared/PowerCell/Components/PowerCellComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.PowerCell; /// [NetworkedComponent] [RegisterComponent] -public sealed class PowerCellComponent : Component +public sealed partial class PowerCellComponent : Component { public const int PowerCellVisualsLevels = 2; } diff --git a/Content.Shared/PowerCell/Components/PowerCellSlotComponent.cs b/Content.Shared/PowerCell/Components/PowerCellSlotComponent.cs index 990a4ec128..5f21b397a7 100644 --- a/Content.Shared/PowerCell/Components/PowerCellSlotComponent.cs +++ b/Content.Shared/PowerCell/Components/PowerCellSlotComponent.cs @@ -3,7 +3,7 @@ using Content.Shared.Containers.ItemSlots; namespace Content.Shared.PowerCell.Components; [RegisterComponent] -public sealed class PowerCellSlotComponent : Component +public sealed partial class PowerCellSlotComponent : Component { /// /// The actual item-slot that contains the cell. Allows all the interaction logic to be handled by . diff --git a/Content.Shared/Prayer/PrayableComponent.cs b/Content.Shared/Prayer/PrayableComponent.cs index 04ded16f79..71251af810 100644 --- a/Content.Shared/Prayer/PrayableComponent.cs +++ b/Content.Shared/Prayer/PrayableComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Prayer; /// Allows an entity to be prayed on in the context menu /// [RegisterComponent, NetworkedComponent] -public sealed class PrayableComponent : Component +public sealed partial class PrayableComponent : Component { /// /// If bible users are only allowed to use this prayable entity @@ -43,4 +43,4 @@ public sealed class PrayableComponent : Component [DataField("verbImage")] [ViewVariables(VVAccess.ReadOnly)] public SpriteSpecifier? VerbImage = new SpriteSpecifier.Texture(new ("/Textures/Interface/pray.svg.png")); -} \ No newline at end of file +} diff --git a/Content.Shared/Preferences/HumanoidCharacterProfile.cs b/Content.Shared/Preferences/HumanoidCharacterProfile.cs index 7bcdfaf6c7..a736984433 100644 --- a/Content.Shared/Preferences/HumanoidCharacterProfile.cs +++ b/Content.Shared/Preferences/HumanoidCharacterProfile.cs @@ -22,7 +22,7 @@ namespace Content.Shared.Preferences /// [DataDefinition] [Serializable, NetSerializable] - public sealed class HumanoidCharacterProfile : ICharacterProfile + public sealed partial class HumanoidCharacterProfile : ICharacterProfile { public const int MaxNameLength = 32; public const int MaxDescLength = 512; diff --git a/Content.Shared/Procedural/DungeonConfigPrototype.cs b/Content.Shared/Procedural/DungeonConfigPrototype.cs index 50de39c197..02f2aad1d4 100644 --- a/Content.Shared/Procedural/DungeonConfigPrototype.cs +++ b/Content.Shared/Procedural/DungeonConfigPrototype.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Procedural; public sealed class DungeonConfigPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("generator", required: true)] public IDunGen Generator = default!; diff --git a/Content.Shared/Procedural/DungeonGenerators/IDunGen.cs b/Content.Shared/Procedural/DungeonGenerators/IDunGen.cs index 268402f746..5aa82f1596 100644 --- a/Content.Shared/Procedural/DungeonGenerators/IDunGen.cs +++ b/Content.Shared/Procedural/DungeonGenerators/IDunGen.cs @@ -1,7 +1,7 @@ namespace Content.Shared.Procedural.DungeonGenerators; [ImplicitDataDefinitionForInheritors] -public interface IDunGen +public partial interface IDunGen { } diff --git a/Content.Shared/Procedural/DungeonGenerators/PrefabDunGen.cs b/Content.Shared/Procedural/DungeonGenerators/PrefabDunGen.cs index c0355fae43..ef61fff4b0 100644 --- a/Content.Shared/Procedural/DungeonGenerators/PrefabDunGen.cs +++ b/Content.Shared/Procedural/DungeonGenerators/PrefabDunGen.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Procedural.DungeonGenerators; /// /// Places rooms in pre-selected pack layouts. Chooses rooms from the specified whitelist. /// -public sealed class PrefabDunGen : IDunGen +public sealed partial class PrefabDunGen : IDunGen { /// /// Rooms need to match any of these tags diff --git a/Content.Shared/Procedural/DungeonRoomPackPrototype.cs b/Content.Shared/Procedural/DungeonRoomPackPrototype.cs index fd2fe3ee41..20332271e3 100644 --- a/Content.Shared/Procedural/DungeonRoomPackPrototype.cs +++ b/Content.Shared/Procedural/DungeonRoomPackPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Procedural; public sealed class DungeonRoomPackPrototype : IPrototype { [IdDataField] - public string ID { get; } = string.Empty; + public string ID { get; private set; } = string.Empty; /// /// Used to associate the room pack with other room packs with the same dimensions. diff --git a/Content.Shared/Procedural/Loot/BiomeMarkerLoot.cs b/Content.Shared/Procedural/Loot/BiomeMarkerLoot.cs index fad8674f07..600685cab5 100644 --- a/Content.Shared/Procedural/Loot/BiomeMarkerLoot.cs +++ b/Content.Shared/Procedural/Loot/BiomeMarkerLoot.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Procedural.Loot; /// /// Adds a biome marker layer for dungeon loot. /// -public sealed class BiomeMarkerLoot : IDungeonLoot +public sealed partial class BiomeMarkerLoot : IDungeonLoot { [DataField("proto", required: true, customTypeSerializer: typeof(PrototypeIdValueDictionarySerializer))] diff --git a/Content.Shared/Procedural/Loot/BiomeTemplateLoot.cs b/Content.Shared/Procedural/Loot/BiomeTemplateLoot.cs index b4972e525d..1947779768 100644 --- a/Content.Shared/Procedural/Loot/BiomeTemplateLoot.cs +++ b/Content.Shared/Procedural/Loot/BiomeTemplateLoot.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Procedural.Loot; /// /// Adds a biome template layer for dungeon loot. /// -public sealed class BiomeTemplateLoot : IDungeonLoot +public sealed partial class BiomeTemplateLoot : IDungeonLoot { [DataField("proto", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Prototype = string.Empty; diff --git a/Content.Shared/Procedural/Loot/IDungeonLoot.cs b/Content.Shared/Procedural/Loot/IDungeonLoot.cs index 6b9cd32cd2..5605ffbb1a 100644 --- a/Content.Shared/Procedural/Loot/IDungeonLoot.cs +++ b/Content.Shared/Procedural/Loot/IDungeonLoot.cs @@ -1,6 +1,6 @@ namespace Content.Shared.Procedural.Loot; [ImplicitDataDefinitionForInheritors] -public interface IDungeonLoot +public partial interface IDungeonLoot { } diff --git a/Content.Shared/Procedural/PostGeneration/AutoCablingPostGen.cs b/Content.Shared/Procedural/PostGeneration/AutoCablingPostGen.cs index dccaa8ab18..384d641a35 100644 --- a/Content.Shared/Procedural/PostGeneration/AutoCablingPostGen.cs +++ b/Content.Shared/Procedural/PostGeneration/AutoCablingPostGen.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Procedural.PostGeneration; /// /// Runs cables throughout the dungeon. /// -public sealed class AutoCablingPostGen : IPostDunGen +public sealed partial class AutoCablingPostGen : IPostDunGen { - + } diff --git a/Content.Shared/Procedural/PostGeneration/BoundaryWallPostGen.cs b/Content.Shared/Procedural/PostGeneration/BoundaryWallPostGen.cs index 18c9d69ca4..56d314089e 100644 --- a/Content.Shared/Procedural/PostGeneration/BoundaryWallPostGen.cs +++ b/Content.Shared/Procedural/PostGeneration/BoundaryWallPostGen.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Procedural.PostGeneration; /// /// Iterates room edges and places the relevant tiles and walls on any free indices. /// -public sealed class BoundaryWallPostGen : IPostDunGen +public sealed partial class BoundaryWallPostGen : IPostDunGen { [DataField("tile", customTypeSerializer:typeof(PrototypeIdSerializer))] public string Tile = "FloorSteel"; diff --git a/Content.Shared/Procedural/PostGeneration/CornerClutterPostGen.cs b/Content.Shared/Procedural/PostGeneration/CornerClutterPostGen.cs index 7cb28a1f27..22889d2b38 100644 --- a/Content.Shared/Procedural/PostGeneration/CornerClutterPostGen.cs +++ b/Content.Shared/Procedural/PostGeneration/CornerClutterPostGen.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Procedural.PostGeneration; /// /// Spawns entities inside corners. /// -public sealed class CornerClutterPostGen : IPostDunGen +public sealed partial class CornerClutterPostGen : IPostDunGen { [DataField("chance")] public float Chance = 0.50f; diff --git a/Content.Shared/Procedural/PostGeneration/CorridorDecalSkirtingPostGen.cs b/Content.Shared/Procedural/PostGeneration/CorridorDecalSkirtingPostGen.cs index 7615c85281..4b139a8be6 100644 --- a/Content.Shared/Procedural/PostGeneration/CorridorDecalSkirtingPostGen.cs +++ b/Content.Shared/Procedural/PostGeneration/CorridorDecalSkirtingPostGen.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Procedural.PostGeneration; /// /// Applies decal skirting to corridors. /// -public sealed class CorridorDecalSkirtingPostGen : IPostDunGen +public sealed partial class CorridorDecalSkirtingPostGen : IPostDunGen { /// /// Color to apply to decals. diff --git a/Content.Shared/Procedural/PostGeneration/CorridorPostGen.cs b/Content.Shared/Procedural/PostGeneration/CorridorPostGen.cs index 27e8cdbad8..12e06c7131 100644 --- a/Content.Shared/Procedural/PostGeneration/CorridorPostGen.cs +++ b/Content.Shared/Procedural/PostGeneration/CorridorPostGen.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Procedural.PostGeneration; /// /// Connects room entrances via corridor segments. /// -public sealed class CorridorPostGen : IPostDunGen +public sealed partial class CorridorPostGen : IPostDunGen { /// /// How far we're allowed to generate a corridor before calling it. diff --git a/Content.Shared/Procedural/PostGeneration/DungeonEntrancePostGen.cs b/Content.Shared/Procedural/PostGeneration/DungeonEntrancePostGen.cs index 360179404d..3398b51317 100644 --- a/Content.Shared/Procedural/PostGeneration/DungeonEntrancePostGen.cs +++ b/Content.Shared/Procedural/PostGeneration/DungeonEntrancePostGen.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Procedural.PostGeneration; /// /// Selects [count] rooms and places external doors to them. /// -public sealed class DungeonEntrancePostGen : IPostDunGen +public sealed partial class DungeonEntrancePostGen : IPostDunGen { /// /// How many rooms we place doors on. diff --git a/Content.Shared/Procedural/PostGeneration/EntranceFlankPostGen.cs b/Content.Shared/Procedural/PostGeneration/EntranceFlankPostGen.cs index b16cae5e9d..96e9bd5d6d 100644 --- a/Content.Shared/Procedural/PostGeneration/EntranceFlankPostGen.cs +++ b/Content.Shared/Procedural/PostGeneration/EntranceFlankPostGen.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Procedural.PostGeneration; /// /// Spawns entities on either side of an entrance. /// -public sealed class EntranceFlankPostGen : IPostDunGen +public sealed partial class EntranceFlankPostGen : IPostDunGen { [DataField("tile", customTypeSerializer:typeof(PrototypeIdSerializer))] public string Tile = "FloorSteel"; diff --git a/Content.Shared/Procedural/PostGeneration/ExternalWindowPostGen.cs b/Content.Shared/Procedural/PostGeneration/ExternalWindowPostGen.cs index 3ecdd55f5a..d5580baeaa 100644 --- a/Content.Shared/Procedural/PostGeneration/ExternalWindowPostGen.cs +++ b/Content.Shared/Procedural/PostGeneration/ExternalWindowPostGen.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Procedural.PostGeneration; /// /// If external areas are found will try to generate windows. /// -public sealed class ExternalWindowPostGen : IPostDunGen +public sealed partial class ExternalWindowPostGen : IPostDunGen { [DataField("entities", customTypeSerializer: typeof(PrototypeIdListSerializer))] public List Entities = new() diff --git a/Content.Shared/Procedural/PostGeneration/IPostDunGen.cs b/Content.Shared/Procedural/PostGeneration/IPostDunGen.cs index 29db37d240..b55cab8e63 100644 --- a/Content.Shared/Procedural/PostGeneration/IPostDunGen.cs +++ b/Content.Shared/Procedural/PostGeneration/IPostDunGen.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Procedural.PostGeneration; /// Ran after generating dungeon rooms. Can be used for additional loot, contents, etc. /// [ImplicitDataDefinitionForInheritors] -public interface IPostDunGen +public partial interface IPostDunGen { } diff --git a/Content.Shared/Procedural/PostGeneration/InternalWindowPostGen.cs b/Content.Shared/Procedural/PostGeneration/InternalWindowPostGen.cs index 5142d007b1..4c6223eb92 100644 --- a/Content.Shared/Procedural/PostGeneration/InternalWindowPostGen.cs +++ b/Content.Shared/Procedural/PostGeneration/InternalWindowPostGen.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Procedural.PostGeneration; /// /// If internal areas are found will try to generate windows. /// -public sealed class InternalWindowPostGen : IPostDunGen +public sealed partial class InternalWindowPostGen : IPostDunGen { [DataField("entities", customTypeSerializer: typeof(PrototypeIdListSerializer))] public List Entities = new() diff --git a/Content.Shared/Procedural/PostGeneration/JunctionPostGen.cs b/Content.Shared/Procedural/PostGeneration/JunctionPostGen.cs index 360dc4d3ab..5c4cf43b7f 100644 --- a/Content.Shared/Procedural/PostGeneration/JunctionPostGen.cs +++ b/Content.Shared/Procedural/PostGeneration/JunctionPostGen.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Procedural.PostGeneration; /// /// Places the specified entities at junction areas. /// -public sealed class JunctionPostGen : IPostDunGen +public sealed partial class JunctionPostGen : IPostDunGen { /// /// Width to check for junctions. diff --git a/Content.Shared/Procedural/PostGeneration/MiddleConnectionPostGen.cs b/Content.Shared/Procedural/PostGeneration/MiddleConnectionPostGen.cs index 5cb0618a79..d29a65434c 100644 --- a/Content.Shared/Procedural/PostGeneration/MiddleConnectionPostGen.cs +++ b/Content.Shared/Procedural/PostGeneration/MiddleConnectionPostGen.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Procedural.PostGeneration; /// /// Places the specified entities on the middle connections between rooms /// -public sealed class MiddleConnectionPostGen : IPostDunGen +public sealed partial class MiddleConnectionPostGen : IPostDunGen { /// /// How much overlap there needs to be between 2 rooms exactly. diff --git a/Content.Shared/Procedural/PostGeneration/RoomEntrancePostGen.cs b/Content.Shared/Procedural/PostGeneration/RoomEntrancePostGen.cs index 6db729cb8c..5fd78b0540 100644 --- a/Content.Shared/Procedural/PostGeneration/RoomEntrancePostGen.cs +++ b/Content.Shared/Procedural/PostGeneration/RoomEntrancePostGen.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Procedural.PostGeneration; /// /// Places tiles / entities onto room entrances. /// -public sealed class RoomEntrancePostGen : IPostDunGen +public sealed partial class RoomEntrancePostGen : IPostDunGen { [DataField("entities", customTypeSerializer: typeof(PrototypeIdListSerializer))] public List Entities = new() diff --git a/Content.Shared/Procedural/PostGeneration/WallMountPostGen.cs b/Content.Shared/Procedural/PostGeneration/WallMountPostGen.cs index 1205cb3e70..1fbdedf561 100644 --- a/Content.Shared/Procedural/PostGeneration/WallMountPostGen.cs +++ b/Content.Shared/Procedural/PostGeneration/WallMountPostGen.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Procedural.PostGeneration; /// /// Spawns on the boundary tiles of rooms. /// -public sealed class WallMountPostGen : IPostDunGen +public sealed partial class WallMountPostGen : IPostDunGen { [DataField("tile", customTypeSerializer:typeof(PrototypeIdSerializer))] public string Tile = "FloorSteel"; diff --git a/Content.Shared/Projectiles/SharedProjectileSystem.cs b/Content.Shared/Projectiles/SharedProjectileSystem.cs index 9365956601..020288ad86 100644 --- a/Content.Shared/Projectiles/SharedProjectileSystem.cs +++ b/Content.Shared/Projectiles/SharedProjectileSystem.cs @@ -16,7 +16,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Projectiles; -public abstract class SharedProjectileSystem : EntitySystem +public abstract partial class SharedProjectileSystem : EntitySystem { public const string ProjectileFixture = "projectile"; @@ -132,7 +132,7 @@ public abstract class SharedProjectileSystem : EntitySystem } [Serializable, NetSerializable] - private sealed class RemoveEmbeddedProjectileEvent : DoAfterEvent + private sealed partial class RemoveEmbeddedProjectileEvent : DoAfterEvent { public override DoAfterEvent Clone() => this; } diff --git a/Content.Shared/Pulling/Components/PullableComponent.cs b/Content.Shared/Pulling/Components/PullableComponent.cs index 802e77eeb6..4ed369af0c 100644 --- a/Content.Shared/Pulling/Components/PullableComponent.cs +++ b/Content.Shared/Pulling/Components/PullableComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Pulling.Components [NetworkedComponent()] [Access(typeof(SharedPullingStateManagementSystem))] [RegisterComponent] - public sealed class SharedPullableComponent : Component + public sealed partial class SharedPullableComponent : Component { /// /// The current entity pulling this component. diff --git a/Content.Shared/Pulling/Components/SharedPullerComponent.cs b/Content.Shared/Pulling/Components/SharedPullerComponent.cs index 88fe6464e4..4ee8b3d129 100644 --- a/Content.Shared/Pulling/Components/SharedPullerComponent.cs +++ b/Content.Shared/Pulling/Components/SharedPullerComponent.cs @@ -2,7 +2,7 @@ { [RegisterComponent] [Access(typeof(SharedPullingStateManagementSystem))] - public sealed class SharedPullerComponent : Component + public sealed partial class SharedPullerComponent : Component { // Before changing how this is updated, please see SharedPullerSystem.RefreshMovementSpeed public float WalkSpeedModifier => Pulling == default ? 1.0f : 0.95f; diff --git a/Content.Shared/Puppet/PuppetDummyComponent.cs b/Content.Shared/Puppet/PuppetDummyComponent.cs index 203c1dfd2f..87dbf69109 100644 --- a/Content.Shared/Puppet/PuppetDummyComponent.cs +++ b/Content.Shared/Puppet/PuppetDummyComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Puppet { [RegisterComponent, NetworkedComponent] - public sealed class PuppetDummyComponent : Component + public sealed partial class PuppetDummyComponent : Component { [DataField("enabled")] public bool Enabled = false; diff --git a/Content.Shared/RCD/Systems/RCDSystem.cs b/Content.Shared/RCD/Systems/RCDSystem.cs index 2e923ec985..784c9ef3ee 100644 --- a/Content.Shared/RCD/Systems/RCDSystem.cs +++ b/Content.Shared/RCD/Systems/RCDSystem.cs @@ -313,13 +313,13 @@ public sealed class RCDSystem : EntitySystem } [Serializable, NetSerializable] -public sealed class RCDDoAfterEvent : DoAfterEvent +public sealed partial class RCDDoAfterEvent : DoAfterEvent { [DataField("location", required: true)] - public readonly EntityCoordinates Location = default!; + public EntityCoordinates Location = default!; [DataField("startingMode", required: true)] - public readonly RcdMode StartingMode = default!; + public RcdMode StartingMode = default!; private RCDDoAfterEvent() { diff --git a/Content.Shared/Radiation/Components/GeigerComponent.cs b/Content.Shared/Radiation/Components/GeigerComponent.cs index 2acd39c42c..8d5c67a591 100644 --- a/Content.Shared/Radiation/Components/GeigerComponent.cs +++ b/Content.Shared/Radiation/Components/GeigerComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Radiation.Components; /// [RegisterComponent, NetworkedComponent] [Access(typeof(SharedGeigerSystem))] -public sealed class GeigerComponent : Component +public sealed partial class GeigerComponent : Component { /// /// If true it will be active only when player equipped it. diff --git a/Content.Shared/Radiation/Components/RadiationPulseComponent.cs b/Content.Shared/Radiation/Components/RadiationPulseComponent.cs index 08f2685993..a1cfa566bc 100644 --- a/Content.Shared/Radiation/Components/RadiationPulseComponent.cs +++ b/Content.Shared/Radiation/Components/RadiationPulseComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Radiation.Components; /// [RegisterComponent] [Access(typeof(RadiationPulseSystem))] -public sealed class RadiationPulseComponent : Component +public sealed partial class RadiationPulseComponent : Component { /// /// Timestamp when component was assigned to this entity. diff --git a/Content.Shared/Radiation/Components/RadiationSourceComponent.cs b/Content.Shared/Radiation/Components/RadiationSourceComponent.cs index 968d7c0341..9d2106f993 100644 --- a/Content.Shared/Radiation/Components/RadiationSourceComponent.cs +++ b/Content.Shared/Radiation/Components/RadiationSourceComponent.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Radiation.Components; /// Irradiate all objects in range. /// [RegisterComponent] -public sealed class RadiationSourceComponent : Component +public sealed partial class RadiationSourceComponent : Component { /// /// Radiation intensity in center of the source in rads per second. diff --git a/Content.Shared/Radio/Components/EncryptionKeyComponent.cs b/Content.Shared/Radio/Components/EncryptionKeyComponent.cs index 5a7a54eb55..b7558d9825 100644 --- a/Content.Shared/Radio/Components/EncryptionKeyComponent.cs +++ b/Content.Shared/Radio/Components/EncryptionKeyComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Radio.Components; /// It should be used for intercoms and other radios in future. /// [RegisterComponent] -public sealed class EncryptionKeyComponent : Component +public sealed partial class EncryptionKeyComponent : Component { [DataField("channels", customTypeSerializer: typeof(PrototypeIdHashSetSerializer))] public HashSet Channels = new(); @@ -18,5 +18,5 @@ public sealed class EncryptionKeyComponent : Component /// This is the channel that will be used when using the default/department prefix (). /// [DataField("defaultChannel", customTypeSerializer: typeof(PrototypeIdSerializer))] - public readonly string? DefaultChannel; + public string? DefaultChannel; } diff --git a/Content.Shared/Radio/Components/EncryptionKeyHolderComponent.cs b/Content.Shared/Radio/Components/EncryptionKeyHolderComponent.cs index ca5d1f647a..bd49acf909 100644 --- a/Content.Shared/Radio/Components/EncryptionKeyHolderComponent.cs +++ b/Content.Shared/Radio/Components/EncryptionKeyHolderComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Radio.Components; /// This component is by entities that can contain encryption keys /// [RegisterComponent] -public sealed class EncryptionKeyHolderComponent : Component +public sealed partial class EncryptionKeyHolderComponent : Component { /// /// Whether or not encryption keys can be removed from the headset. diff --git a/Content.Shared/Radio/Components/HeadsetComponent.cs b/Content.Shared/Radio/Components/HeadsetComponent.cs index 4d3b0fd4aa..66a0ae8027 100644 --- a/Content.Shared/Radio/Components/HeadsetComponent.cs +++ b/Content.Shared/Radio/Components/HeadsetComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Radio.Components; /// This component relays radio messages to the parent entity's chat when equipped. /// [RegisterComponent] -public sealed class HeadsetComponent : Component +public sealed partial class HeadsetComponent : Component { [DataField("enabled")] public bool Enabled = true; diff --git a/Content.Shared/Radio/Components/IntercomComponent.cs b/Content.Shared/Radio/Components/IntercomComponent.cs index d68a80e174..be2734ff16 100644 --- a/Content.Shared/Radio/Components/IntercomComponent.cs +++ b/Content.Shared/Radio/Components/IntercomComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Radio.Components; /// Handles intercom ui and is authoritative on the channels an intercom can access. /// [RegisterComponent, NetworkedComponent] -public sealed class IntercomComponent : Component +public sealed partial class IntercomComponent : Component { /// /// Does this intercom require popwer to function diff --git a/Content.Shared/Radio/Components/TelecomServerComponent.cs b/Content.Shared/Radio/Components/TelecomServerComponent.cs index d87bc2be1a..e3f3025311 100644 --- a/Content.Shared/Radio/Components/TelecomServerComponent.cs +++ b/Content.Shared/Radio/Components/TelecomServerComponent.cs @@ -1,12 +1,12 @@ namespace Content.Shared.Radio.Components; /// -/// Entities with are needed to transmit messages using headsets. +/// Entities with are needed to transmit messages using headsets. /// They also need to be powered by /// have and filled with encryption keys /// of channels in order for them to work on the same map as server. /// [RegisterComponent] -public sealed class TelecomServerComponent : Component +public sealed partial class TelecomServerComponent : Component { } diff --git a/Content.Shared/Radio/EntitySystems/EncryptionKeySystem.cs b/Content.Shared/Radio/EntitySystems/EncryptionKeySystem.cs index 31f7933099..3d2ce2fd00 100644 --- a/Content.Shared/Radio/EntitySystems/EncryptionKeySystem.cs +++ b/Content.Shared/Radio/EntitySystems/EncryptionKeySystem.cs @@ -20,7 +20,7 @@ namespace Content.Shared.Radio.EntitySystems; /// /// This system manages encryption keys & key holders for use with radio channels. /// -public sealed class EncryptionKeySystem : EntitySystem +public sealed partial class EncryptionKeySystem : EntitySystem { [Dependency] private readonly IPrototypeManager _protoManager = default!; [Dependency] private readonly IGameTiming _timing = default!; @@ -245,7 +245,7 @@ public sealed class EncryptionKeySystem : EntitySystem } [Serializable, NetSerializable] - public sealed class EncryptionRemovalFinishedEvent : SimpleDoAfterEvent + public sealed partial class EncryptionRemovalFinishedEvent : SimpleDoAfterEvent { } } diff --git a/Content.Shared/Random/RandomFillSolution.cs b/Content.Shared/Random/RandomFillSolution.cs index acbd97db87..e3b9b7c862 100644 --- a/Content.Shared/Random/RandomFillSolution.cs +++ b/Content.Shared/Random/RandomFillSolution.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Random; /// [Serializable, NetSerializable] [DataDefinition] -public sealed class RandomFillSolution +public sealed partial class RandomFillSolution { /// /// Quantity of listed reagents. diff --git a/Content.Shared/Random/RulesPrototype.cs b/Content.Shared/Random/RulesPrototype.cs index 0541d503d8..3d1e1ab1a1 100644 --- a/Content.Shared/Random/RulesPrototype.cs +++ b/Content.Shared/Random/RulesPrototype.cs @@ -21,7 +21,7 @@ public sealed class RulesPrototype : IPrototype } [ImplicitDataDefinitionForInheritors] -public abstract class RulesRule +public abstract partial class RulesRule { } @@ -29,7 +29,7 @@ public abstract class RulesRule /// /// Returns true if the attached entity is in space. /// -public sealed class InSpaceRule : RulesRule +public sealed partial class InSpaceRule : RulesRule { } @@ -38,7 +38,7 @@ public sealed class InSpaceRule : RulesRule /// Checks for entities matching the whitelist in range. /// This is more expensive than so prefer that! /// -public sealed class NearbyEntitiesRule : RulesRule +public sealed partial class NearbyEntitiesRule : RulesRule { /// /// How many of the entity need to be nearby. @@ -53,7 +53,7 @@ public sealed class NearbyEntitiesRule : RulesRule public float Range = 10f; } -public sealed class NearbyTilesPercentRule : RulesRule +public sealed partial class NearbyTilesPercentRule : RulesRule { /// /// If there are anchored entities on the tile do we ignore the tile. @@ -73,7 +73,7 @@ public sealed class NearbyTilesPercentRule : RulesRule /// /// Always returns true. Used for fallbacks. /// -public sealed class AlwaysTrueRule : RulesRule +public sealed partial class AlwaysTrueRule : RulesRule { } @@ -81,7 +81,7 @@ public sealed class AlwaysTrueRule : RulesRule /// /// Returns true if on a grid or in range of one. /// -public sealed class GridInRangeRule : RulesRule +public sealed partial class GridInRangeRule : RulesRule { [DataField("range")] public float Range = 10f; @@ -93,7 +93,7 @@ public sealed class GridInRangeRule : RulesRule /// /// Returns true if griduid and mapuid match (AKA on 'planet'). /// -public sealed class OnMapGridRule : RulesRule +public sealed partial class OnMapGridRule : RulesRule { } @@ -101,7 +101,7 @@ public sealed class OnMapGridRule : RulesRule /// /// Checks for an entity nearby with the specified access. /// -public sealed class NearbyAccessRule : RulesRule +public sealed partial class NearbyAccessRule : RulesRule { // This exists because of doorelectronics contained inside doors. /// @@ -123,7 +123,7 @@ public sealed class NearbyAccessRule : RulesRule public float Range = 10f; } -public sealed class NearbyComponentsRule : RulesRule +public sealed partial class NearbyComponentsRule : RulesRule { /// /// Does the entity need to be anchored. diff --git a/Content.Shared/Random/WeightedRandomEntityPrototype.cs b/Content.Shared/Random/WeightedRandomEntityPrototype.cs index c0cf8f1165..c88f88bbdc 100644 --- a/Content.Shared/Random/WeightedRandomEntityPrototype.cs +++ b/Content.Shared/Random/WeightedRandomEntityPrototype.cs @@ -10,8 +10,8 @@ namespace Content.Shared.Random; public sealed class WeightedRandomEntityPrototype : IWeightedRandomPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("weights", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] - public Dictionary Weights { get; } = new(); + public Dictionary Weights { get; private set; } = new(); } diff --git a/Content.Shared/Random/WeightedRandomOrePrototype.cs b/Content.Shared/Random/WeightedRandomOrePrototype.cs index bc1f52ce2a..f79bb244df 100644 --- a/Content.Shared/Random/WeightedRandomOrePrototype.cs +++ b/Content.Shared/Random/WeightedRandomOrePrototype.cs @@ -11,8 +11,8 @@ namespace Content.Shared.Random; public sealed class WeightedRandomOrePrototype : IWeightedRandomPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("weights", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] - public Dictionary Weights { get; } = new(); + public Dictionary Weights { get; private set; } = new(); } diff --git a/Content.Shared/Random/WeightedRandomPrototype.cs b/Content.Shared/Random/WeightedRandomPrototype.cs index 7c44dbdf77..6b9e28c416 100644 --- a/Content.Shared/Random/WeightedRandomPrototype.cs +++ b/Content.Shared/Random/WeightedRandomPrototype.cs @@ -9,8 +9,8 @@ namespace Content.Shared.Random; public sealed class WeightedRandomPrototype : IWeightedRandomPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("weights")] - public Dictionary Weights { get; } = new(); + public Dictionary Weights { get; private set; } = new(); } diff --git a/Content.Shared/Random/WeightedRandomSpeciesPrototype.cs b/Content.Shared/Random/WeightedRandomSpeciesPrototype.cs index 2b867eed98..4e7ef84227 100644 --- a/Content.Shared/Random/WeightedRandomSpeciesPrototype.cs +++ b/Content.Shared/Random/WeightedRandomSpeciesPrototype.cs @@ -11,8 +11,8 @@ namespace Content.Shared.Random; public sealed class WeightedRandomSpeciesPrototype : IWeightedRandomPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("weights", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] - public Dictionary Weights { get; } = new(); + public Dictionary Weights { get; private set; } = new(); } diff --git a/Content.Shared/Repairable/SharedRepairableSystem.cs b/Content.Shared/Repairable/SharedRepairableSystem.cs index ec59a60a8f..2b0cb670e6 100644 --- a/Content.Shared/Repairable/SharedRepairableSystem.cs +++ b/Content.Shared/Repairable/SharedRepairableSystem.cs @@ -3,10 +3,10 @@ using Robust.Shared.Serialization; namespace Content.Shared.Repairable; -public abstract class SharedRepairableSystem : EntitySystem +public abstract partial class SharedRepairableSystem : EntitySystem { [Serializable, NetSerializable] - protected sealed class RepairFinishedEvent : SimpleDoAfterEvent + protected sealed partial class RepairFinishedEvent : SimpleDoAfterEvent { } } diff --git a/Content.Shared/Research/Components/ResearchClientComponent.cs b/Content.Shared/Research/Components/ResearchClientComponent.cs index 477fb8f600..7ab47ad260 100644 --- a/Content.Shared/Research/Components/ResearchClientComponent.cs +++ b/Content.Shared/Research/Components/ResearchClientComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Research.Components /// This is an entity that is able to connect to a /// [RegisterComponent] - public sealed class ResearchClientComponent : Component + public sealed partial class ResearchClientComponent : Component { public bool ConnectedToServer => Server != null; diff --git a/Content.Shared/Research/Components/ResearchServerComponent.cs b/Content.Shared/Research/Components/ResearchServerComponent.cs index 763b5d9059..3663e760f1 100644 --- a/Content.Shared/Research/Components/ResearchServerComponent.cs +++ b/Content.Shared/Research/Components/ResearchServerComponent.cs @@ -41,7 +41,7 @@ public sealed partial class ResearchServerComponent : Component public TimeSpan NextUpdateTime = TimeSpan.Zero; [DataField("researchConsoleUpdateTime"), ViewVariables(VVAccess.ReadWrite)] - public readonly TimeSpan ResearchConsoleUpdateTime = TimeSpan.FromSeconds(1); + public TimeSpan ResearchConsoleUpdateTime = TimeSpan.FromSeconds(1); } /// diff --git a/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs b/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs index fa3d13a9e2..8dafad3dc5 100644 --- a/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs +++ b/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Research.Prototypes { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("name")] private string _name = string.Empty; diff --git a/Content.Shared/Research/Prototypes/TechDisciplinePrototype.cs b/Content.Shared/Research/Prototypes/TechDisciplinePrototype.cs index d5c7ad89af..76eb8092ad 100644 --- a/Content.Shared/Research/Prototypes/TechDisciplinePrototype.cs +++ b/Content.Shared/Research/Prototypes/TechDisciplinePrototype.cs @@ -12,37 +12,37 @@ public sealed class TechDisciplinePrototype : IPrototype { /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Player-facing name. /// Supports locale strings. /// [DataField("name", required: true)] - public readonly string Name = string.Empty; + public string Name = string.Empty; /// /// A color used for UI /// [DataField("color", required: true)] - public readonly Color Color; + public Color Color; /// /// An icon used to visually represent the discipline in UI. /// [DataField("icon")] - public readonly SpriteSpecifier Icon = default!; + public SpriteSpecifier Icon = default!; /// /// For each tier a discipline supports, what percentage /// of the previous tier must be unlocked for it to become available /// [DataField("tierPrerequisites", required: true)] - public readonly Dictionary TierPrerequisites = new(); + public Dictionary TierPrerequisites = new(); /// /// Purchasing this tier of technology causes a server to become "locked" to this discipline. /// [DataField("lockoutTier")] - public readonly int LockoutTier = 3; + public int LockoutTier = 3; } diff --git a/Content.Shared/Research/Prototypes/TechnologyPrototype.cs b/Content.Shared/Research/Prototypes/TechnologyPrototype.cs index 8b04be7209..ec1ca029c7 100644 --- a/Content.Shared/Research/Prototypes/TechnologyPrototype.cs +++ b/Content.Shared/Research/Prototypes/TechnologyPrototype.cs @@ -13,26 +13,26 @@ public sealed class TechnologyPrototype : IPrototype { /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// The name of the technology. /// Supports locale strings /// [DataField("name", required: true)] - public readonly string Name = string.Empty; + public string Name = string.Empty; /// /// An icon used to visually represent the technology in UI. /// [DataField("icon", required: true)] - public readonly SpriteSpecifier Icon = default!; + public SpriteSpecifier Icon = default!; /// /// What research discipline this technology belongs to. /// [DataField("discipline", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] - public readonly string Discipline = default!; + public string Discipline = default!; /// /// What tier research is this? @@ -40,53 +40,53 @@ public sealed class TechnologyPrototype : IPrototype /// needs to be unlocked before this one. /// [DataField("tier", required: true)] - public readonly int Tier; + public int Tier; /// /// Hidden tech is not ever available at the research console. /// [DataField("hidden")] - public readonly bool Hidden; + public bool Hidden; /// /// How much research is needed to unlock. /// [DataField("cost")] - public readonly int Cost = 10000; + public int Cost = 10000; /// /// A list of s that need to be unlocked in order to unlock this technology. /// [DataField("technologyPrerequisites", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public readonly IReadOnlyList TechnologyPrerequisites = new List(); + public IReadOnlyList TechnologyPrerequisites = new List(); /// /// A list of s that are unlocked by this technology /// [DataField("recipeUnlocks", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public readonly IReadOnlyList RecipeUnlocks = new List(); + public IReadOnlyList RecipeUnlocks = new List(); /// /// A list of non-standard effects that are done when this technology is unlocked. /// [DataField("genericUnlocks")] - public readonly IReadOnlyList GenericUnlocks = new List(); + public IReadOnlyList GenericUnlocks = new List(); } [DataDefinition] -public record struct GenericUnlock() +public partial record struct GenericUnlock() { /// /// What event is raised when this is unlocked? /// Used for doing non-standard logic. /// [DataField("purchaseEvent")] - public readonly object? PurchaseEvent = null; + public object? PurchaseEvent = null; /// /// A player facing tooltip for what the unlock does. /// Supports locale strings. /// [DataField("unlockDescription")] - public readonly string UnlockDescription = string.Empty; + public string UnlockDescription = string.Empty; } diff --git a/Content.Shared/Resist/EscapeInventoryEvent.cs b/Content.Shared/Resist/EscapeInventoryEvent.cs index 27e5346ead..c77545fcb0 100644 --- a/Content.Shared/Resist/EscapeInventoryEvent.cs +++ b/Content.Shared/Resist/EscapeInventoryEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Resist; [Serializable, NetSerializable] -public sealed class EscapeInventoryEvent : SimpleDoAfterEvent +public sealed partial class EscapeInventoryEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/Resist/ResistLockerDoAfterEvent.cs b/Content.Shared/Resist/ResistLockerDoAfterEvent.cs index 4f31dc0330..2acf160b80 100644 --- a/Content.Shared/Resist/ResistLockerDoAfterEvent.cs +++ b/Content.Shared/Resist/ResistLockerDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Resist; [Serializable, NetSerializable] -public sealed class ResistLockerDoAfterEvent : SimpleDoAfterEvent +public sealed partial class ResistLockerDoAfterEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/Respawn/SpecialRespawnComponent.cs b/Content.Shared/Respawn/SpecialRespawnComponent.cs index 739fa4b50a..a452f77f19 100644 --- a/Content.Shared/Respawn/SpecialRespawnComponent.cs +++ b/Content.Shared/Respawn/SpecialRespawnComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Respawn; /// Items like the nuke disk. /// [RegisterComponent, NetworkedComponent] -public sealed class SpecialRespawnComponent: Component +public sealed partial class SpecialRespawnComponent: Component { [ViewVariables] [DataField("stationMap")] diff --git a/Content.Shared/Revenant/Components/CorporealComponent.cs b/Content.Shared/Revenant/Components/CorporealComponent.cs index 174d267cc9..ee9c4924e9 100644 --- a/Content.Shared/Revenant/Components/CorporealComponent.cs +++ b/Content.Shared/Revenant/Components/CorporealComponent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Revenant.Components; /// Meant to be used in conjunction with statusEffectSystem /// [RegisterComponent] -public sealed class CorporealComponent : Component +public sealed partial class CorporealComponent : Component { /// /// The debuff applied when the component is present. diff --git a/Content.Shared/Revenant/Components/RevenantComponent.cs b/Content.Shared/Revenant/Components/RevenantComponent.cs index 5f1b3802e6..7b146e4236 100644 --- a/Content.Shared/Revenant/Components/RevenantComponent.cs +++ b/Content.Shared/Revenant/Components/RevenantComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Revenant.Components; [RegisterComponent, NetworkedComponent] -public sealed class RevenantComponent : Component +public sealed partial class RevenantComponent : Component { /// /// The total amount of Essence the revenant has. Functions diff --git a/Content.Shared/Revenant/Components/RevenantOverloadedLightsComponent.cs b/Content.Shared/Revenant/Components/RevenantOverloadedLightsComponent.cs index b383f2640c..d01242bf5f 100644 --- a/Content.Shared/Revenant/Components/RevenantOverloadedLightsComponent.cs +++ b/Content.Shared/Revenant/Components/RevenantOverloadedLightsComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Revenant.Components; /// and are about to zap a player. /// [RegisterComponent, NetworkedComponent] -public sealed class RevenantOverloadedLightsComponent : Component +public sealed partial class RevenantOverloadedLightsComponent : Component { [ViewVariables] public EntityUid? Target; diff --git a/Content.Shared/Revenant/SharedRevenant.cs b/Content.Shared/Revenant/SharedRevenant.cs index 15289ad1d7..c44e4408aa 100644 --- a/Content.Shared/Revenant/SharedRevenant.cs +++ b/Content.Shared/Revenant/SharedRevenant.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Revenant; [Serializable, NetSerializable] -public sealed class SoulEvent : SimpleDoAfterEvent +public sealed partial class SoulEvent : SimpleDoAfterEvent { } @@ -24,7 +24,7 @@ public sealed class SoulSearchDoAfterCancelled : EntityEventArgs } [Serializable, NetSerializable] -public sealed class HarvestEvent : SimpleDoAfterEvent +public sealed partial class HarvestEvent : SimpleDoAfterEvent { } @@ -42,23 +42,23 @@ public sealed class HarvestDoAfterCancelled : EntityEventArgs { } -public sealed class RevenantShopActionEvent : InstantActionEvent +public sealed partial class RevenantShopActionEvent : InstantActionEvent { } -public sealed class RevenantDefileActionEvent : InstantActionEvent +public sealed partial class RevenantDefileActionEvent : InstantActionEvent { } -public sealed class RevenantOverloadLightsActionEvent : InstantActionEvent +public sealed partial class RevenantOverloadLightsActionEvent : InstantActionEvent { } -public sealed class RevenantBlightActionEvent : InstantActionEvent +public sealed partial class RevenantBlightActionEvent : InstantActionEvent { } -public sealed class RevenantMalfunctionActionEvent : InstantActionEvent +public sealed partial class RevenantMalfunctionActionEvent : InstantActionEvent { } diff --git a/Content.Shared/Roles/AntagPrototype.cs b/Content.Shared/Roles/AntagPrototype.cs index d9841f993a..24c5218145 100644 --- a/Content.Shared/Roles/AntagPrototype.cs +++ b/Content.Shared/Roles/AntagPrototype.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Roles [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// The name of this antag as displayed to players. diff --git a/Content.Shared/Roles/JobPrototype.cs b/Content.Shared/Roles/JobPrototype.cs index cc8a7a6ae9..b4733d0679 100644 --- a/Content.Shared/Roles/JobPrototype.cs +++ b/Content.Shared/Roles/JobPrototype.cs @@ -15,19 +15,19 @@ namespace Content.Shared.Roles { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("playTimeTracker", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] - public string PlayTimeTracker { get; } = string.Empty; + public string PlayTimeTracker { get; private set; } = string.Empty; [DataField("supervisors")] - public string Supervisors { get; } = "nobody"; + public string Supervisors { get; private set; } = "nobody"; /// /// The name of this job as displayed to players. /// [DataField("name")] - public string Name { get; } = string.Empty; + public string Name { get; private set; } = string.Empty; [ViewVariables(VVAccess.ReadOnly)] public string LocalizedName => Loc.GetString(Name); @@ -36,7 +36,7 @@ namespace Content.Shared.Roles /// The name of this job as displayed to players. /// [DataField("description")] - public string? Description { get; } + public string? Description { get; private set; } [ViewVariables(VVAccess.ReadOnly)] public string? LocalizedDescription => Description is null ? null : Loc.GetString(Description); @@ -45,16 +45,16 @@ namespace Content.Shared.Roles public HashSet? Requirements; [DataField("joinNotifyCrew")] - public bool JoinNotifyCrew { get; } = false; + public bool JoinNotifyCrew { get; private set; } = false; [DataField("requireAdminNotify")] - public bool RequireAdminNotify { get; } = false; + public bool RequireAdminNotify { get; private set; } = false; [DataField("setPreference")] - public bool SetPreference { get; } = true; + public bool SetPreference { get; private set; } = true; [DataField("canBeAntag")] - public bool CanBeAntag { get; } = true; + public bool CanBeAntag { get; private set; } = true; /// /// Whether this job is a head. @@ -82,21 +82,21 @@ namespace Content.Shared.Roles public string? JobEntity = null; [DataField("icon", customTypeSerializer: typeof(PrototypeIdSerializer))] - public string Icon { get; } = "JobIconUnknown"; + public string Icon { get; private set; } = "JobIconUnknown"; [DataField("special", serverOnly: true)] public JobSpecial[] Special { get; private set; } = Array.Empty(); [DataField("access", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public IReadOnlyCollection Access { get; } = Array.Empty(); + public IReadOnlyCollection Access { get; private set; } = Array.Empty(); [DataField("accessGroups", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public IReadOnlyCollection AccessGroups { get; } = Array.Empty(); + public IReadOnlyCollection AccessGroups { get; private set; } = Array.Empty(); [DataField("extendedAccess", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public IReadOnlyCollection ExtendedAccess { get; } = Array.Empty(); + public IReadOnlyCollection ExtendedAccess { get; private set; } = Array.Empty(); [DataField("extendedAccessGroups", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public IReadOnlyCollection ExtendedAccessGroups { get; } = Array.Empty(); + public IReadOnlyCollection ExtendedAccessGroups { get; private set; } = Array.Empty(); } } diff --git a/Content.Shared/Roles/JobRequirements.cs b/Content.Shared/Roles/JobRequirements.cs index 74d8afa03a..7e0c1a98aa 100644 --- a/Content.Shared/Roles/JobRequirements.cs +++ b/Content.Shared/Roles/JobRequirements.cs @@ -10,10 +10,10 @@ namespace Content.Shared.Roles /// Abstract class for playtime and other requirements for role gates. /// [ImplicitDataDefinitionForInheritors] - public abstract class JobRequirement{} + public abstract partial class JobRequirement{} [UsedImplicitly] - public sealed class DepartmentTimeRequirement : JobRequirement + public sealed partial class DepartmentTimeRequirement : JobRequirement { /// /// Which department needs the required amount of time. @@ -37,7 +37,7 @@ namespace Content.Shared.Roles } [UsedImplicitly] - public sealed class RoleTimeRequirement : JobRequirement + public sealed partial class RoleTimeRequirement : JobRequirement { /// /// What particular role they need the time requirement with. @@ -53,7 +53,7 @@ namespace Content.Shared.Roles } [UsedImplicitly] - public sealed class OverallPlaytimeRequirement : JobRequirement + public sealed partial class OverallPlaytimeRequirement : JobRequirement { /// [DataField("time")] public TimeSpan Time; diff --git a/Content.Shared/Roles/JobSpecial.cs b/Content.Shared/Roles/JobSpecial.cs index 0a3d223728..468e939836 100644 --- a/Content.Shared/Roles/JobSpecial.cs +++ b/Content.Shared/Roles/JobSpecial.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Roles /// Provides special hooks for when jobs get spawned in/equipped. /// [ImplicitDataDefinitionForInheritors] - public abstract class JobSpecial + public abstract partial class JobSpecial { public abstract void AfterEquip(EntityUid mob); } diff --git a/Content.Shared/Roles/StartingGearPrototype.cs b/Content.Shared/Roles/StartingGearPrototype.cs index 7dc75ece98..533cfc0675 100644 --- a/Content.Shared/Roles/StartingGearPrototype.cs +++ b/Content.Shared/Roles/StartingGearPrototype.cs @@ -32,7 +32,7 @@ namespace Content.Shared.Roles [ViewVariables] [IdDataField] - public string ID { get; } = string.Empty; + public string ID { get; private set; } = string.Empty; public string GetGear(string slot, HumanoidCharacterProfile? profile) { diff --git a/Content.Shared/Rotatable/RotatableComponent.cs b/Content.Shared/Rotatable/RotatableComponent.cs index 7bf09d557b..b008c28160 100644 --- a/Content.Shared/Rotatable/RotatableComponent.cs +++ b/Content.Shared/Rotatable/RotatableComponent.cs @@ -1,7 +1,7 @@ namespace Content.Shared.Rotatable { [RegisterComponent] - public sealed class RotatableComponent : Component + public sealed partial class RotatableComponent : Component { /// /// If true, this entity can be rotated even while anchored. diff --git a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageAirMod.cs b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageAirMod.cs index 11ab80b14e..aee79fdf02 100644 --- a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageAirMod.cs +++ b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageAirMod.cs @@ -13,19 +13,19 @@ namespace Content.Shared.Salvage.Expeditions.Modifiers; public sealed class SalvageAirMod : IPrototype, IBiomeSpecificMod { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// [DataField("desc")] - public string Description { get; } = string.Empty; + public string Description { get; private set; } = string.Empty; /// [DataField("cost")] - public float Cost { get; } = 0f; + public float Cost { get; private set; } = 0f; /// [DataField("biomes", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public List? Biomes { get; } = null; + public List? Biomes { get; private set; } = null; /// /// Set to true if this planet will have no atmosphere. diff --git a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageBiomeMod.cs b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageBiomeMod.cs index a5887b0c9f..fc6ce7e9de 100644 --- a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageBiomeMod.cs +++ b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageBiomeMod.cs @@ -12,13 +12,13 @@ public sealed class SalvageBiomeMod : IPrototype, ISalvageMod { [IdDataField] public string ID { get; } = default!; - [DataField("desc")] public string Description { get; } = string.Empty; + [DataField("desc")] public string Description { get; private set; } = string.Empty; /// /// Cost for difficulty modifiers. /// [DataField("cost")] - public float Cost { get; } = 0f; + public float Cost { get; private set; } = 0f; /// /// Is weather allowed to apply to this biome. diff --git a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageDungeonMod.cs b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageDungeonMod.cs index 06d2c6d4b1..335a127081 100644 --- a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageDungeonMod.cs +++ b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageDungeonMod.cs @@ -10,15 +10,15 @@ public sealed class SalvageDungeonMod : IPrototype, IBiomeSpecificMod { [IdDataField] public string ID { get; } = default!; - [DataField("desc")] public string Description { get; } = string.Empty; + [DataField("desc")] public string Description { get; private set; } = string.Empty; /// [DataField("cost")] - public float Cost { get; } = 0f; + public float Cost { get; private set; } = 0f; /// [DataField("biomes", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public List? Biomes { get; } = null; + public List? Biomes { get; private set; } = null; /// /// The config to use for spawning the dungeon. diff --git a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageLightMod.cs b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageLightMod.cs index 315125d3aa..e738c98a3a 100644 --- a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageLightMod.cs +++ b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageLightMod.cs @@ -8,15 +8,15 @@ public sealed class SalvageLightMod : IPrototype, IBiomeSpecificMod { [IdDataField] public string ID { get; } = default!; - [DataField("desc")] public string Description { get; } = string.Empty; + [DataField("desc")] public string Description { get; private set; } = string.Empty; /// [DataField("cost")] - public float Cost { get; } = 0f; + public float Cost { get; private set; } = 0f; /// [DataField("biomes", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public List? Biomes { get; } = null; + public List? Biomes { get; private set; } = null; [DataField("color", required: true)] public Color? Color; } diff --git a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageMod.cs b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageMod.cs index d353fac571..07c07b75c3 100644 --- a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageMod.cs +++ b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageMod.cs @@ -10,11 +10,11 @@ public sealed class SalvageMod : IPrototype, ISalvageMod { [IdDataField] public string ID { get; } = default!; - [DataField("desc")] public string Description { get; } = string.Empty; + [DataField("desc")] public string Description { get; private set; } = string.Empty; /// /// Cost for difficulty modifiers. /// [DataField("cost")] - public float Cost { get; } = 0f; + public float Cost { get; private set; } = 0f; } diff --git a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageTemperatureMod.cs b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageTemperatureMod.cs index 58e9553739..c52b2010e4 100644 --- a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageTemperatureMod.cs +++ b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageTemperatureMod.cs @@ -9,15 +9,15 @@ public sealed class SalvageTemperatureMod : IPrototype, IBiomeSpecificMod { [IdDataField] public string ID { get; } = default!; - [DataField("desc")] public string Description { get; } = string.Empty; + [DataField("desc")] public string Description { get; private set; } = string.Empty; /// [DataField("cost")] - public float Cost { get; } = 0f; + public float Cost { get; private set; } = 0f; /// [DataField("biomes", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public List? Biomes { get; } = null; + public List? Biomes { get; private set; } = null; /// /// Temperature in the planets air mix. diff --git a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageTimeMod.cs b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageTimeMod.cs index 9359e97971..6cc3507538 100644 --- a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageTimeMod.cs +++ b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageTimeMod.cs @@ -7,13 +7,13 @@ public sealed class SalvageTimeMod : IPrototype, ISalvageMod { [IdDataField] public string ID { get; } = default!; - [DataField("desc")] public string Description { get; } = string.Empty; + [DataField("desc")] public string Description { get; private set; } = string.Empty; /// /// Cost for difficulty modifiers. /// [DataField("cost")] - public float Cost { get; } + public float Cost { get; private set; } [DataField("minDuration")] public int MinDuration = 630; diff --git a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageWeatherMod.cs b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageWeatherMod.cs index 7bf6be4913..caa89afeb4 100644 --- a/Content.Shared/Salvage/Expeditions/Modifiers/SalvageWeatherMod.cs +++ b/Content.Shared/Salvage/Expeditions/Modifiers/SalvageWeatherMod.cs @@ -10,15 +10,15 @@ public sealed class SalvageWeatherMod : IPrototype, IBiomeSpecificMod { [IdDataField] public string ID { get; } = default!; - [DataField("desc")] public string Description { get; } = string.Empty; + [DataField("desc")] public string Description { get; private set; } = string.Empty; /// [DataField("cost")] - public float Cost { get; } = 0f; + public float Cost { get; private set; } = 0f; /// [DataField("biomes", customTypeSerializer: typeof(PrototypeIdListSerializer))] - public List? Biomes { get; } = null; + public List? Biomes { get; private set; } = null; /// /// Weather prototype to use on the planet. diff --git a/Content.Shared/Salvage/Expeditions/SalvageExpeditions.cs b/Content.Shared/Salvage/Expeditions/SalvageExpeditions.cs index a32b25506e..075149c1cb 100644 --- a/Content.Shared/Salvage/Expeditions/SalvageExpeditions.cs +++ b/Content.Shared/Salvage/Expeditions/SalvageExpeditions.cs @@ -28,7 +28,7 @@ public sealed class SalvageExpeditionConsoleState : BoundUserInterfaceState /// Used to interact with salvage expeditions and claim them. /// [RegisterComponent, NetworkedComponent] -public sealed class SalvageExpeditionConsoleComponent : Component +public sealed partial class SalvageExpeditionConsoleComponent : Component { } @@ -43,7 +43,7 @@ public sealed class ClaimSalvageMessage : BoundUserInterfaceMessage /// Added per station to store data on their available salvage missions. /// [RegisterComponent] -public sealed class SalvageExpeditionDataComponent : Component +public sealed partial class SalvageExpeditionDataComponent : Component { /// /// Is there an active salvage expedition. diff --git a/Content.Shared/Salvage/Expeditions/SalvageFactionPrototype.cs b/Content.Shared/Salvage/Expeditions/SalvageFactionPrototype.cs index 5852838285..cead062431 100644 --- a/Content.Shared/Salvage/Expeditions/SalvageFactionPrototype.cs +++ b/Content.Shared/Salvage/Expeditions/SalvageFactionPrototype.cs @@ -9,13 +9,13 @@ public sealed class SalvageFactionPrototype : IPrototype, ISalvageMod { [IdDataField] public string ID { get; } = default!; - [DataField("desc")] public string Description { get; } = string.Empty; + [DataField("desc")] public string Description { get; private set; } = string.Empty; /// /// Cost for difficulty modifiers. /// [DataField("cost")] - public float Cost { get; } = 0f; + public float Cost { get; private set; } = 0f; [ViewVariables(VVAccess.ReadWrite), DataField("groups", required: true)] public List MobGroups = default!; diff --git a/Content.Shared/Salvage/Expeditions/SalvageMobGroup.cs b/Content.Shared/Salvage/Expeditions/SalvageMobGroup.cs index da728e44f0..df1917acdc 100644 --- a/Content.Shared/Salvage/Expeditions/SalvageMobGroup.cs +++ b/Content.Shared/Salvage/Expeditions/SalvageMobGroup.cs @@ -3,7 +3,7 @@ using Content.Shared.Storage; namespace Content.Shared.Salvage.Expeditions; [DataDefinition] -public record struct SalvageMobGroup() +public partial record struct SalvageMobGroup() { // A mob may be cheap but rare or expensive but frequent. diff --git a/Content.Shared/Salvage/Expeditions/SharedSalvageExpeditionComponent.cs b/Content.Shared/Salvage/Expeditions/SharedSalvageExpeditionComponent.cs index 5fa7fe05e9..a1b0e63240 100644 --- a/Content.Shared/Salvage/Expeditions/SharedSalvageExpeditionComponent.cs +++ b/Content.Shared/Salvage/Expeditions/SharedSalvageExpeditionComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Salvage.Expeditions; [NetworkedComponent] -public abstract class SharedSalvageExpeditionComponent : Component +public abstract partial class SharedSalvageExpeditionComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("stage")] public ExpeditionStage Stage = ExpeditionStage.Added; diff --git a/Content.Shared/Salvage/SharedSalvageMagnetComponent.cs b/Content.Shared/Salvage/SharedSalvageMagnetComponent.cs index c0dd76d133..56942b875d 100644 --- a/Content.Shared/Salvage/SharedSalvageMagnetComponent.cs +++ b/Content.Shared/Salvage/SharedSalvageMagnetComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Salvage; -public abstract class SharedSalvageMagnetComponent : Component +public abstract partial class SharedSalvageMagnetComponent : Component { /// /// The machine part that affects the attaching and cooldown times diff --git a/Content.Shared/Sericulture/SericultureEvents.cs b/Content.Shared/Sericulture/SericultureEvents.cs index cf8e1063f6..203114a4b4 100644 --- a/Content.Shared/Sericulture/SericultureEvents.cs +++ b/Content.Shared/Sericulture/SericultureEvents.cs @@ -4,4 +4,4 @@ using Robust.Shared.Serialization; namespace Content.Shared.Sericulture; [Serializable, NetSerializable] -public sealed class SericultureDoAfterEvent : SimpleDoAfterEvent { } +public sealed partial class SericultureDoAfterEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/Shuttles/Components/IFFComponent.cs b/Content.Shared/Shuttles/Components/IFFComponent.cs index 959af4f97e..dc834aebf2 100644 --- a/Content.Shared/Shuttles/Components/IFFComponent.cs +++ b/Content.Shared/Shuttles/Components/IFFComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Shuttles.Components; /// Handles what a grid should look like on radar. /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedShuttleSystem))] -public sealed class IFFComponent : Component +public sealed partial class IFFComponent : Component { /// /// Should we show IFF by default? diff --git a/Content.Shared/Shuttles/Components/PilotComponent.cs b/Content.Shared/Shuttles/Components/PilotComponent.cs index ad176bb301..e561aebca7 100644 --- a/Content.Shared/Shuttles/Components/PilotComponent.cs +++ b/Content.Shared/Shuttles/Components/PilotComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Shuttles.Components /// [RegisterComponent] [NetworkedComponent] - public sealed class PilotComponent : Component + public sealed partial class PilotComponent : Component { [ViewVariables] public EntityUid? Console { get; set; } diff --git a/Content.Shared/Shuttles/Components/PreventPilotComponent.cs b/Content.Shared/Shuttles/Components/PreventPilotComponent.cs index 76bff898a0..0299485ff4 100644 --- a/Content.Shared/Shuttles/Components/PreventPilotComponent.cs +++ b/Content.Shared/Shuttles/Components/PreventPilotComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Shuttles.Components; /// Add to grids that you do not want manually piloted under any circumstances. /// [RegisterComponent, NetworkedComponent] -public sealed class PreventPilotComponent : Component +public sealed partial class PreventPilotComponent : Component { } diff --git a/Content.Shared/Shuttles/Components/RadarConsoleComponent.cs b/Content.Shared/Shuttles/Components/RadarConsoleComponent.cs index 718c5204c1..952f479822 100644 --- a/Content.Shared/Shuttles/Components/RadarConsoleComponent.cs +++ b/Content.Shared/Shuttles/Components/RadarConsoleComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Shuttles.Components; [RegisterComponent, NetworkedComponent, Access(typeof(SharedRadarConsoleSystem))] -public sealed class RadarConsoleComponent : Component +public sealed partial class RadarConsoleComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public float RangeVV diff --git a/Content.Shared/Shuttles/Components/SharedDockingComponent.cs b/Content.Shared/Shuttles/Components/SharedDockingComponent.cs index 5c829e969c..501132f804 100644 --- a/Content.Shared/Shuttles/Components/SharedDockingComponent.cs +++ b/Content.Shared/Shuttles/Components/SharedDockingComponent.cs @@ -1,6 +1,6 @@ namespace Content.Shared.Shuttles.Components { - public abstract class SharedDockingComponent : Component + public abstract partial class SharedDockingComponent : Component { // Yes I left this in for now because there's no overhead and we'll need a client one later anyway // and I was too lazy to delete it. diff --git a/Content.Shared/Shuttles/Components/SharedShuttleConsoleComponent.cs b/Content.Shared/Shuttles/Components/SharedShuttleConsoleComponent.cs index 88583b87fc..436c830d20 100644 --- a/Content.Shared/Shuttles/Components/SharedShuttleConsoleComponent.cs +++ b/Content.Shared/Shuttles/Components/SharedShuttleConsoleComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Shuttles.Components /// Interact with to start piloting a shuttle. /// [NetworkedComponent] - public abstract class SharedShuttleConsoleComponent : Component + public abstract partial class SharedShuttleConsoleComponent : Component { } diff --git a/Content.Shared/Silicons/Borgs/Components/BorgBrainComponent.cs b/Content.Shared/Silicons/Borgs/Components/BorgBrainComponent.cs index 2ca62b6433..adbd57cab7 100644 --- a/Content.Shared/Silicons/Borgs/Components/BorgBrainComponent.cs +++ b/Content.Shared/Silicons/Borgs/Components/BorgBrainComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Silicons.Borgs.Components; /// that can be inserted into a borg to transfer a mind. /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedBorgSystem))] -public sealed class BorgBrainComponent : Component +public sealed partial class BorgBrainComponent : Component { } diff --git a/Content.Shared/Silicons/Borgs/Components/BorgModuleComponent.cs b/Content.Shared/Silicons/Borgs/Components/BorgModuleComponent.cs index f994f60e49..a7523c1ce7 100644 --- a/Content.Shared/Silicons/Borgs/Components/BorgModuleComponent.cs +++ b/Content.Shared/Silicons/Borgs/Components/BorgModuleComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Silicons.Borgs.Components; /// to give them unique abilities and attributes. /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedBorgSystem))] -public sealed class BorgModuleComponent : Component +public sealed partial class BorgModuleComponent : Component { /// /// The entity this module is installed into diff --git a/Content.Shared/Silicons/Borgs/Components/ItemBorgModuleComponent.cs b/Content.Shared/Silicons/Borgs/Components/ItemBorgModuleComponent.cs index 28a34aa2ee..75835d0cf0 100644 --- a/Content.Shared/Silicons/Borgs/Components/ItemBorgModuleComponent.cs +++ b/Content.Shared/Silicons/Borgs/Components/ItemBorgModuleComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Silicons.Borgs.Components; /// This is used for a that provides items to the entity it's installed into. /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedBorgSystem))] -public sealed class ItemBorgModuleComponent : Component +public sealed partial class ItemBorgModuleComponent : Component { /// /// The items that are provided. diff --git a/Content.Shared/Silicons/Borgs/Components/MMIComponent.cs b/Content.Shared/Silicons/Borgs/Components/MMIComponent.cs index 114353a5d0..3ded725efc 100644 --- a/Content.Shared/Silicons/Borgs/Components/MMIComponent.cs +++ b/Content.Shared/Silicons/Borgs/Components/MMIComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Silicons.Borgs.Components; /// Used for borg stuff. /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedBorgSystem))] -public sealed class MMIComponent : Component +public sealed partial class MMIComponent : Component { /// /// The ID of the itemslot that holds the brain. diff --git a/Content.Shared/Silicons/Borgs/Components/SelectableBorgModuleComponent.cs b/Content.Shared/Silicons/Borgs/Components/SelectableBorgModuleComponent.cs index e90f6bc118..5b1f9491b7 100644 --- a/Content.Shared/Silicons/Borgs/Components/SelectableBorgModuleComponent.cs +++ b/Content.Shared/Silicons/Borgs/Components/SelectableBorgModuleComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Silicons.Borgs.Components; /// This is used for s that can be "swapped" to, as opposed to having passive effects. /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedBorgSystem))] -public sealed class SelectableBorgModuleComponent : Component +public sealed partial class SelectableBorgModuleComponent : Component { /// /// The sidebar action for swapping to this module. @@ -24,7 +24,7 @@ public sealed class SelectableBorgModuleComponent : Component }; } -public sealed class BorgModuleActionSelectedEvent : InstantActionEvent +public sealed partial class BorgModuleActionSelectedEvent : InstantActionEvent { } diff --git a/Content.Shared/Silicons/Bots/MedibotComponent.cs b/Content.Shared/Silicons/Bots/MedibotComponent.cs index b20674a23c..74d074ffd8 100644 --- a/Content.Shared/Silicons/Bots/MedibotComponent.cs +++ b/Content.Shared/Silicons/Bots/MedibotComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Silicons.Bots; /// [RegisterComponent] [Access(typeof(MedibotSystem))] -public sealed class MedibotComponent : Component +public sealed partial class MedibotComponent : Component { /// /// Med the bot will inject when UNDER the standard med damage threshold. diff --git a/Content.Shared/Silicons/Laws/Components/EmagSiliconLawComponent.cs b/Content.Shared/Silicons/Laws/Components/EmagSiliconLawComponent.cs index 68f652b029..953282c219 100644 --- a/Content.Shared/Silicons/Laws/Components/EmagSiliconLawComponent.cs +++ b/Content.Shared/Silicons/Laws/Components/EmagSiliconLawComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Silicons.Laws.Components; /// This is used for an entity that grants a special "obey" law when emagge.d /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedSiliconLawSystem))] -public sealed class EmagSiliconLawComponent : Component +public sealed partial class EmagSiliconLawComponent : Component { /// /// The name of the person who emagged this law provider. diff --git a/Content.Shared/Silicons/Laws/Components/SiliconLawBoundComponent.cs b/Content.Shared/Silicons/Laws/Components/SiliconLawBoundComponent.cs index 71760dd136..50a3c36efc 100644 --- a/Content.Shared/Silicons/Laws/Components/SiliconLawBoundComponent.cs +++ b/Content.Shared/Silicons/Laws/Components/SiliconLawBoundComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Silicons.Laws.Components; /// This is used for entities which are bound to silicon laws and can view them. /// [RegisterComponent, Access(typeof(SharedSiliconLawSystem))] -public sealed class SiliconLawBoundComponent : Component +public sealed partial class SiliconLawBoundComponent : Component { /// /// The sidebar action that toggles the laws screen. @@ -48,7 +48,7 @@ public record struct GetSiliconLawsEvent(EntityUid Entity) public bool Handled = false; } -public sealed class ToggleLawsScreenEvent : InstantActionEvent +public sealed partial class ToggleLawsScreenEvent : InstantActionEvent { } diff --git a/Content.Shared/Silicons/Laws/Components/SiliconLawProviderComponent.cs b/Content.Shared/Silicons/Laws/Components/SiliconLawProviderComponent.cs index 1411869636..e3302dc620 100644 --- a/Content.Shared/Silicons/Laws/Components/SiliconLawProviderComponent.cs +++ b/Content.Shared/Silicons/Laws/Components/SiliconLawProviderComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Silicons.Laws.Components; /// This is used for an entity which grants laws to a /// [RegisterComponent, Access(typeof(SharedSiliconLawSystem))] -public sealed class SiliconLawProviderComponent : Component +public sealed partial class SiliconLawProviderComponent : Component { /// /// The laws that are provided. diff --git a/Content.Shared/Silicons/Laws/SiliconLawPrototype.cs b/Content.Shared/Silicons/Laws/SiliconLawPrototype.cs index 07d5967b3f..86bea20fa0 100644 --- a/Content.Shared/Silicons/Laws/SiliconLawPrototype.cs +++ b/Content.Shared/Silicons/Laws/SiliconLawPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Silicons.Laws; [Virtual, DataDefinition] [Serializable, NetSerializable] -public class SiliconLaw : IComparable +public partial class SiliconLaw : IComparable { /// /// A locale string which is the actual text of the law. @@ -49,7 +49,7 @@ public sealed class SiliconLawPrototype : SiliconLaw, IPrototype { /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; } diff --git a/Content.Shared/Singularity/Components/ContainmentFieldComponent.cs b/Content.Shared/Singularity/Components/ContainmentFieldComponent.cs index 9e2409e890..43163a0c5c 100644 --- a/Content.Shared/Singularity/Components/ContainmentFieldComponent.cs +++ b/Content.Shared/Singularity/Components/ContainmentFieldComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Singularity.Components; [RegisterComponent, NetworkedComponent] -public sealed class ContainmentFieldComponent : Component +public sealed partial class ContainmentFieldComponent : Component { /// /// The throw force for the field if an entity collides with it diff --git a/Content.Shared/Singularity/Components/ContainmentFieldGeneratorComponent.cs b/Content.Shared/Singularity/Components/ContainmentFieldGeneratorComponent.cs index 0e2ba6da02..b8f5d1a189 100644 --- a/Content.Shared/Singularity/Components/ContainmentFieldGeneratorComponent.cs +++ b/Content.Shared/Singularity/Components/ContainmentFieldGeneratorComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Singularity.Components; [RegisterComponent, NetworkedComponent] -public sealed class ContainmentFieldGeneratorComponent : Component +public sealed partial class ContainmentFieldGeneratorComponent : Component { private int _powerBuffer; diff --git a/Content.Shared/Singularity/Components/EventHorizonComponent.cs b/Content.Shared/Singularity/Components/EventHorizonComponent.cs index d0febda789..890b223117 100644 --- a/Content.Shared/Singularity/Components/EventHorizonComponent.cs +++ b/Content.Shared/Singularity/Components/EventHorizonComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Singularity.Components; /// [Access(friends: typeof(SharedEventHorizonSystem))] [RegisterComponent, NetworkedComponent] -public sealed class EventHorizonComponent : Component +public sealed partial class EventHorizonComponent : Component { /// /// The radius of the event horizon within which it will destroy all entities and tiles. diff --git a/Content.Shared/Singularity/Components/SharedEmitterComponent.cs b/Content.Shared/Singularity/Components/SharedEmitterComponent.cs index b27e9967ff..426b991a75 100644 --- a/Content.Shared/Singularity/Components/SharedEmitterComponent.cs +++ b/Content.Shared/Singularity/Components/SharedEmitterComponent.cs @@ -11,7 +11,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Singularity.Components; [RegisterComponent, NetworkedComponent] -public sealed class EmitterComponent : Component +public sealed partial class EmitterComponent : Component { public CancellationTokenSource? TimerCancel; diff --git a/Content.Shared/Singularity/Components/SingularityComponent.cs b/Content.Shared/Singularity/Components/SingularityComponent.cs index bef848b7d8..fe5cd0377f 100644 --- a/Content.Shared/Singularity/Components/SingularityComponent.cs +++ b/Content.Shared/Singularity/Components/SingularityComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Singularity.Components; /// Energy management is server-side. /// [RegisterComponent, NetworkedComponent] -public sealed class SingularityComponent : Component +public sealed partial class SingularityComponent : Component { /// /// The current level of the singularity. diff --git a/Content.Shared/Slippery/NoSlipComponent.cs b/Content.Shared/Slippery/NoSlipComponent.cs index 1003c1deab..186861a5a9 100644 --- a/Content.Shared/Slippery/NoSlipComponent.cs +++ b/Content.Shared/Slippery/NoSlipComponent.cs @@ -1,7 +1,7 @@ namespace Content.Shared.Slippery { [RegisterComponent] - public sealed class NoSlipComponent : Component + public sealed partial class NoSlipComponent : Component { } } diff --git a/Content.Shared/Slippery/SlipperyComponent.cs b/Content.Shared/Slippery/SlipperyComponent.cs index 1bf8fde3bf..ff395176ed 100644 --- a/Content.Shared/Slippery/SlipperyComponent.cs +++ b/Content.Shared/Slippery/SlipperyComponent.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Slippery /// [RegisterComponent] [NetworkedComponent] - public sealed class SlipperyComponent : Component + public sealed partial class SlipperyComponent : Component { /// /// Path to the sound to be played when a mob slips. diff --git a/Content.Shared/Sound/Components/BaseEmitSoundComponent.cs b/Content.Shared/Sound/Components/BaseEmitSoundComponent.cs index 27a2a67b88..f997621907 100644 --- a/Content.Shared/Sound/Components/BaseEmitSoundComponent.cs +++ b/Content.Shared/Sound/Components/BaseEmitSoundComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Sound.Components /// Base sound emitter which defines most of the data fields. /// Accepts both single sounds and sound collections. /// - public abstract class BaseEmitSoundComponent : Component + public abstract partial class BaseEmitSoundComponent : Component { public static readonly AudioParams DefaultParams = AudioParams.Default.WithVolume(-2f); diff --git a/Content.Shared/Sound/Components/EmitSoundOnActivateComponent.cs b/Content.Shared/Sound/Components/EmitSoundOnActivateComponent.cs index 5b5330a6d3..810f132d83 100644 --- a/Content.Shared/Sound/Components/EmitSoundOnActivateComponent.cs +++ b/Content.Shared/Sound/Components/EmitSoundOnActivateComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Sound.Components; /// Simple sound emitter that emits sound on ActivateInWorld /// [RegisterComponent, NetworkedComponent] -public sealed class EmitSoundOnActivateComponent : BaseEmitSoundComponent +public sealed partial class EmitSoundOnActivateComponent : BaseEmitSoundComponent { /// /// Whether or not to mark an interaction as handled after playing the sound. Useful if this component is diff --git a/Content.Shared/Sound/Components/EmitSoundOnCollideComponent.cs b/Content.Shared/Sound/Components/EmitSoundOnCollideComponent.cs index cc9896d4da..f2c71ad120 100644 --- a/Content.Shared/Sound/Components/EmitSoundOnCollideComponent.cs +++ b/Content.Shared/Sound/Components/EmitSoundOnCollideComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Shared.Sound.Components; [RegisterComponent, NetworkedComponent] -public sealed class EmitSoundOnCollideComponent : BaseEmitSoundComponent +public sealed partial class EmitSoundOnCollideComponent : BaseEmitSoundComponent { public static readonly TimeSpan CollideCooldown = TimeSpan.FromSeconds(0.2); diff --git a/Content.Shared/Sound/Components/EmitSoundOnDropComponent.cs b/Content.Shared/Sound/Components/EmitSoundOnDropComponent.cs index d3c4206e91..5e04295607 100644 --- a/Content.Shared/Sound/Components/EmitSoundOnDropComponent.cs +++ b/Content.Shared/Sound/Components/EmitSoundOnDropComponent.cs @@ -6,6 +6,6 @@ namespace Content.Shared.Sound.Components; /// Simple sound emitter that emits sound on entity drop /// [RegisterComponent, NetworkedComponent] -public sealed class EmitSoundOnDropComponent : BaseEmitSoundComponent +public sealed partial class EmitSoundOnDropComponent : BaseEmitSoundComponent { } diff --git a/Content.Shared/Sound/Components/EmitSoundOnLandComponent.cs b/Content.Shared/Sound/Components/EmitSoundOnLandComponent.cs index 5bf3416bbe..2d33a7f5f2 100644 --- a/Content.Shared/Sound/Components/EmitSoundOnLandComponent.cs +++ b/Content.Shared/Sound/Components/EmitSoundOnLandComponent.cs @@ -6,6 +6,6 @@ namespace Content.Shared.Sound.Components; /// Simple sound emitter that emits sound on LandEvent /// [RegisterComponent, NetworkedComponent] -public sealed class EmitSoundOnLandComponent : BaseEmitSoundComponent +public sealed partial class EmitSoundOnLandComponent : BaseEmitSoundComponent { } diff --git a/Content.Shared/Sound/Components/EmitSoundOnPickupComponent.cs b/Content.Shared/Sound/Components/EmitSoundOnPickupComponent.cs index 2b9cd96d05..ee4b4b1688 100644 --- a/Content.Shared/Sound/Components/EmitSoundOnPickupComponent.cs +++ b/Content.Shared/Sound/Components/EmitSoundOnPickupComponent.cs @@ -6,6 +6,6 @@ namespace Content.Shared.Sound.Components; /// Simple sound emitter that emits sound on entity pickup /// [RegisterComponent, NetworkedComponent] -public sealed class EmitSoundOnPickupComponent : BaseEmitSoundComponent +public sealed partial class EmitSoundOnPickupComponent : BaseEmitSoundComponent { } diff --git a/Content.Shared/Sound/Components/EmitSoundOnSpawnComponent.cs b/Content.Shared/Sound/Components/EmitSoundOnSpawnComponent.cs index 3d7a11f6ef..49d40ce185 100644 --- a/Content.Shared/Sound/Components/EmitSoundOnSpawnComponent.cs +++ b/Content.Shared/Sound/Components/EmitSoundOnSpawnComponent.cs @@ -6,6 +6,6 @@ namespace Content.Shared.Sound.Components; /// Simple sound emitter that emits sound on entity spawn. /// [RegisterComponent, NetworkedComponent] -public sealed class EmitSoundOnSpawnComponent : BaseEmitSoundComponent +public sealed partial class EmitSoundOnSpawnComponent : BaseEmitSoundComponent { } diff --git a/Content.Shared/Sound/Components/EmitSoundOnThrowComponent.cs b/Content.Shared/Sound/Components/EmitSoundOnThrowComponent.cs index 0b76e3305e..5e3650a4a3 100644 --- a/Content.Shared/Sound/Components/EmitSoundOnThrowComponent.cs +++ b/Content.Shared/Sound/Components/EmitSoundOnThrowComponent.cs @@ -6,6 +6,6 @@ namespace Content.Shared.Sound.Components; /// Simple sound emitter that emits sound on ThrowEvent /// [RegisterComponent, NetworkedComponent] -public sealed class EmitSoundOnThrowComponent : BaseEmitSoundComponent +public sealed partial class EmitSoundOnThrowComponent : BaseEmitSoundComponent { } diff --git a/Content.Shared/Sound/Components/EmitSoundOnUseComponent.cs b/Content.Shared/Sound/Components/EmitSoundOnUseComponent.cs index 5bb95a5c11..a99a01cec4 100644 --- a/Content.Shared/Sound/Components/EmitSoundOnUseComponent.cs +++ b/Content.Shared/Sound/Components/EmitSoundOnUseComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Sound.Components; /// Simple sound emitter that emits sound on UseInHand /// [RegisterComponent] -public sealed class EmitSoundOnUseComponent : BaseEmitSoundComponent +public sealed partial class EmitSoundOnUseComponent : BaseEmitSoundComponent { /// /// Whether or not to mark an interaction as handled after playing the sound. Useful if this component is diff --git a/Content.Shared/Spawners/Components/TimedDespawnComponent.cs b/Content.Shared/Spawners/Components/TimedDespawnComponent.cs index 6a851e1756..209e371c46 100644 --- a/Content.Shared/Spawners/Components/TimedDespawnComponent.cs +++ b/Content.Shared/Spawners/Components/TimedDespawnComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Spawners.Components; /// Put this component on something you would like to despawn after a certain amount of time /// [RegisterComponent, NetworkedComponent] -public sealed class TimedDespawnComponent : Component +public sealed partial class TimedDespawnComponent : Component { /// /// How long the entity will exist before despawning diff --git a/Content.Shared/Speech/Components/RatvarianLanguageComponent.cs b/Content.Shared/Speech/Components/RatvarianLanguageComponent.cs index 161abd760e..36739b28a6 100644 --- a/Content.Shared/Speech/Components/RatvarianLanguageComponent.cs +++ b/Content.Shared/Speech/Components/RatvarianLanguageComponent.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Speech.Components; [RegisterComponent, NetworkedComponent] -public sealed class RatvarianLanguageComponent : Component +public sealed partial class RatvarianLanguageComponent : Component { } diff --git a/Content.Shared/Speech/SpeechComponent.cs b/Content.Shared/Speech/SpeechComponent.cs index bb5b13f66c..ef8e1d1874 100644 --- a/Content.Shared/Speech/SpeechComponent.cs +++ b/Content.Shared/Speech/SpeechComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Speech /// Contains the option to let entities make noise when speaking, change speech verbs, datafields for the sounds in question, and relevant AudioParams. /// [RegisterComponent, NetworkedComponent] - public sealed class SpeechComponent : Component + public sealed partial class SpeechComponent : Component { [DataField("enabled"), Access(typeof(SpeechSystem), Friend = AccessPermissions.ReadWrite, diff --git a/Content.Shared/Speech/SpeechSoundsPrototype.cs b/Content.Shared/Speech/SpeechSoundsPrototype.cs index cd2cbcb177..4103e4dcb6 100644 --- a/Content.Shared/Speech/SpeechSoundsPrototype.cs +++ b/Content.Shared/Speech/SpeechSoundsPrototype.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Speech { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; //Variation is here instead of in SharedSpeechComponent since some sets of //sounds may require more fine tuned pitch variation than others. diff --git a/Content.Shared/Spider/IgnoreSpiderWebComponent.cs b/Content.Shared/Spider/IgnoreSpiderWebComponent.cs index 8b412df690..55eb1aa50f 100644 --- a/Content.Shared/Spider/IgnoreSpiderWebComponent.cs +++ b/Content.Shared/Spider/IgnoreSpiderWebComponent.cs @@ -1,7 +1,7 @@ namespace Content.Shared.Spider; [RegisterComponent] -public sealed class IgnoreSpiderWebComponent : Component +public sealed partial class IgnoreSpiderWebComponent : Component { } diff --git a/Content.Shared/Spider/SpiderComponent.cs b/Content.Shared/Spider/SpiderComponent.cs index 0a6229afdd..90f19f97a6 100644 --- a/Content.Shared/Spider/SpiderComponent.cs +++ b/Content.Shared/Spider/SpiderComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Spider; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedSpiderSystem))] -public sealed class SpiderComponent : Component +public sealed partial class SpiderComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("webPrototype", customTypeSerializer: typeof(PrototypeIdSerializer))] @@ -19,4 +19,4 @@ public sealed class SpiderComponent : Component public string WebActionName = "SpiderWebAction"; } -public sealed class SpiderWebActionEvent : InstantActionEvent { } +public sealed partial class SpiderWebActionEvent : InstantActionEvent { } diff --git a/Content.Shared/Spider/SpiderWebObjectComponent.cs b/Content.Shared/Spider/SpiderWebObjectComponent.cs index ad9f5b9f39..3f05888083 100644 --- a/Content.Shared/Spider/SpiderWebObjectComponent.cs +++ b/Content.Shared/Spider/SpiderWebObjectComponent.cs @@ -4,6 +4,6 @@ namespace Content.Shared.Spider; [RegisterComponent, NetworkedComponent] [Access(typeof(SharedSpiderSystem))] -public sealed class SpiderWebObjectComponent : Component +public sealed partial class SpiderWebObjectComponent : Component { } diff --git a/Content.Shared/Spillable/SpillDoAfterEvent.cs b/Content.Shared/Spillable/SpillDoAfterEvent.cs index 8a24935cf6..ff01801617 100644 --- a/Content.Shared/Spillable/SpillDoAfterEvent.cs +++ b/Content.Shared/Spillable/SpillDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Spillable; [Serializable, NetSerializable] -public sealed class SpillDoAfterEvent : SimpleDoAfterEvent +public sealed partial class SpillDoAfterEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/SprayPainter/Components/PaintableAirlockComponent.cs b/Content.Shared/SprayPainter/Components/PaintableAirlockComponent.cs index 78707a4090..10fd72434e 100644 --- a/Content.Shared/SprayPainter/Components/PaintableAirlockComponent.cs +++ b/Content.Shared/SprayPainter/Components/PaintableAirlockComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.SprayPainter; [RegisterComponent] -public sealed class PaintableAirlockComponent : Component +public sealed partial class PaintableAirlockComponent : Component { [DataField("group", customTypeSerializer:typeof(PrototypeIdSerializer))] public string Group = default!; diff --git a/Content.Shared/SprayPainter/Prototypes/AirlockGroupPrototype.cs b/Content.Shared/SprayPainter/Prototypes/AirlockGroupPrototype.cs index 81691ae83f..06cde83f90 100644 --- a/Content.Shared/SprayPainter/Prototypes/AirlockGroupPrototype.cs +++ b/Content.Shared/SprayPainter/Prototypes/AirlockGroupPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.SprayPainter.Prototypes; public sealed class AirlockGroupPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("stylePaths")] public Dictionary StylePaths = default!; diff --git a/Content.Shared/SprayPainter/SprayPainterEvents.cs b/Content.Shared/SprayPainter/SprayPainterEvents.cs index 3c2c9b95ae..f0e0208610 100644 --- a/Content.Shared/SprayPainter/SprayPainterEvents.cs +++ b/Content.Shared/SprayPainter/SprayPainterEvents.cs @@ -47,13 +47,13 @@ public sealed class SprayPainterBoundUserInterfaceState : BoundUserInterfaceStat } [Serializable, NetSerializable] -public sealed class SprayPainterDoAfterEvent : DoAfterEvent +public sealed partial class SprayPainterDoAfterEvent : DoAfterEvent { [DataField("sprite")] - public readonly string? Sprite = null; + public string? Sprite = null; [DataField("color")] - public readonly Color? Color = null; + public Color? Color = null; private SprayPainterDoAfterEvent() { diff --git a/Content.Shared/Sprite/RandomSpriteComponent.cs b/Content.Shared/Sprite/RandomSpriteComponent.cs index 568ab6101c..4082771e93 100644 --- a/Content.Shared/Sprite/RandomSpriteComponent.cs +++ b/Content.Shared/Sprite/RandomSpriteComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Sprite; [RegisterComponent, NetworkedComponent] -public sealed class RandomSpriteComponent : Component +public sealed partial class RandomSpriteComponent : Component { /// /// Whether or not all groups from are used, diff --git a/Content.Shared/Sprite/SpriteFadeComponent.cs b/Content.Shared/Sprite/SpriteFadeComponent.cs index 3e390b4c1f..952b754f90 100644 --- a/Content.Shared/Sprite/SpriteFadeComponent.cs +++ b/Content.Shared/Sprite/SpriteFadeComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Sprite; /// If your client entity is behind this then the sprite's alpha will be lowered so your entity remains visible. /// [RegisterComponent, NetworkedComponent] -public sealed class SpriteFadeComponent : Component +public sealed partial class SpriteFadeComponent : Component { } diff --git a/Content.Shared/Stacks/StackComponent.cs b/Content.Shared/Stacks/StackComponent.cs index 29f81fde02..7137f8c0c2 100644 --- a/Content.Shared/Stacks/StackComponent.cs +++ b/Content.Shared/Stacks/StackComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Stacks { [RegisterComponent, NetworkedComponent] - public sealed class StackComponent : Component + public sealed partial class StackComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("stackType", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] diff --git a/Content.Shared/Stacks/StackPrototype.cs b/Content.Shared/Stacks/StackPrototype.cs index 1f963e0db1..5d60364e20 100644 --- a/Content.Shared/Stacks/StackPrototype.cs +++ b/Content.Shared/Stacks/StackPrototype.cs @@ -9,26 +9,26 @@ public sealed class StackPrototype : IPrototype { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Human-readable name for this stack type e.g. "Steel" /// /// This is a localization string ID. [DataField("name")] - public string Name { get; } = string.Empty; + public string Name { get; private set; } = string.Empty; /// /// An icon that will be used to represent this stack type. /// [DataField("icon")] - public SpriteSpecifier? Icon { get; } + public SpriteSpecifier? Icon { get; private set; } /// /// The entity id that will be spawned by default from this stack. /// [DataField("spawn", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] - public string Spawn { get; } = string.Empty; + public string Spawn { get; private set; } = string.Empty; /// /// The maximum amount of things that can be in a stack. @@ -36,7 +36,7 @@ public sealed class StackPrototype : IPrototype /// if null, simply has unlimited max count. /// [DataField("maxCount")] - public int? MaxCount { get; } + public int? MaxCount { get; private set; } /// /// The size of an individual unit of this stack. diff --git a/Content.Shared/Standing/StandingStateComponent.cs b/Content.Shared/Standing/StandingStateComponent.cs index da343645b0..583839fa10 100644 --- a/Content.Shared/Standing/StandingStateComponent.cs +++ b/Content.Shared/Standing/StandingStateComponent.cs @@ -5,11 +5,11 @@ namespace Content.Shared.Standing { [Access(typeof(StandingStateSystem))] [RegisterComponent, NetworkedComponent] - public sealed class StandingStateComponent : Component + public sealed partial class StandingStateComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("downSound")] - public SoundSpecifier DownSound { get; } = new SoundCollectionSpecifier("BodyFall"); + public SoundSpecifier DownSound { get; private set; } = new SoundCollectionSpecifier("BodyFall"); [DataField("standing")] public bool Standing { get; set; } = true; diff --git a/Content.Shared/StationRecords/StationRecordKeyStorageComponent.cs b/Content.Shared/StationRecords/StationRecordKeyStorageComponent.cs index 87f789364a..1b7fc89d64 100644 --- a/Content.Shared/StationRecords/StationRecordKeyStorageComponent.cs +++ b/Content.Shared/StationRecords/StationRecordKeyStorageComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.StationRecords; [RegisterComponent, NetworkedComponent] -public sealed class StationRecordKeyStorageComponent : Component +public sealed partial class StationRecordKeyStorageComponent : Component { /// /// The key stored in this component. diff --git a/Content.Shared/StatusEffect/StatusEffectPrototype.cs b/Content.Shared/StatusEffect/StatusEffectPrototype.cs index 493c7369ab..9e13f69d20 100644 --- a/Content.Shared/StatusEffect/StatusEffectPrototype.cs +++ b/Content.Shared/StatusEffect/StatusEffectPrototype.cs @@ -7,16 +7,16 @@ namespace Content.Shared.StatusEffect public sealed class StatusEffectPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("alert")] - public AlertType? Alert { get; } + public AlertType? Alert { get; private set; } /// /// Whether a status effect should be able to apply to any entity, /// regardless of whether it is in ALlowedEffects or not. /// [DataField("alwaysAllowed")] - public bool AlwaysAllowed { get; } + public bool AlwaysAllowed { get; private set; } } } diff --git a/Content.Shared/StatusEffect/StatusEffectsComponent.cs b/Content.Shared/StatusEffect/StatusEffectsComponent.cs index 0b852b6db8..d61af62537 100644 --- a/Content.Shared/StatusEffect/StatusEffectsComponent.cs +++ b/Content.Shared/StatusEffect/StatusEffectsComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.StatusEffect [RegisterComponent] [NetworkedComponent] [Access(typeof(StatusEffectsSystem))] - public sealed class StatusEffectsComponent : Component + public sealed partial class StatusEffectsComponent : Component { [ViewVariables] public Dictionary ActiveEffects = new(); @@ -19,7 +19,7 @@ namespace Content.Shared.StatusEffect } [RegisterComponent] - public sealed class ActiveStatusEffectsComponent : Component {} + public sealed partial class ActiveStatusEffectsComponent : Component {} /// /// Holds information about an active status effect. diff --git a/Content.Shared/StatusIcon/StatusIconPrototype.cs b/Content.Shared/StatusIcon/StatusIconPrototype.cs index afd9dc0ff2..1523ff4e0a 100644 --- a/Content.Shared/StatusIcon/StatusIconPrototype.cs +++ b/Content.Shared/StatusIcon/StatusIconPrototype.cs @@ -10,7 +10,7 @@ namespace Content.Shared.StatusIcon; /// information for status icons. /// [Virtual, DataDefinition] -public class StatusIconData : IComparable +public partial class StatusIconData : IComparable { /// /// The icon that's displayed on the entity. @@ -53,7 +53,7 @@ public sealed class StatusIconPrototype : StatusIconData, IPrototype, IInheritin /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; } [Serializable, NetSerializable] diff --git a/Content.Shared/Stealth/Components/StealthComponent.cs b/Content.Shared/Stealth/Components/StealthComponent.cs index 2b5ca0d5ec..58cf1cdde6 100644 --- a/Content.Shared/Stealth/Components/StealthComponent.cs +++ b/Content.Shared/Stealth/Components/StealthComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Stealth.Components; /// [RegisterComponent, NetworkedComponent] [Access(typeof(SharedStealthSystem))] -public sealed class StealthComponent : Component +public sealed partial class StealthComponent : Component { /// /// Whether or not the stealth effect should currently be applied. @@ -29,7 +29,7 @@ public sealed class StealthComponent : Component /// Minimum visibility before the entity becomes unexaminable (and thus no longer appears on context menus). /// [DataField("examineThreshold")] - public readonly float ExamineThreshold = 0.5f; + public float ExamineThreshold = 0.5f; /// /// Last set level of visibility. The visual effect ranges from 1 (fully visible) and -1 (fully hidden). Values @@ -53,13 +53,13 @@ public sealed class StealthComponent : Component /// Minimum visibility. Note that the visual effect caps out at -1, but this value is allowed to be larger or smaller. /// [DataField("minVisibility")] - public readonly float MinVisibility = -1f; + public float MinVisibility = -1f; /// /// Maximum visibility. Note that the visual effect caps out at +1, but this value is allowed to be larger or smaller. /// [DataField("maxVisibility")] - public readonly float MaxVisibility = 1.5f; + public float MaxVisibility = 1.5f; /// /// Localization string for how you'd like to describe this effect. diff --git a/Content.Shared/Stealth/Components/StealthOnMoveComponent.cs b/Content.Shared/Stealth/Components/StealthOnMoveComponent.cs index 8d289e7077..77c300759d 100644 --- a/Content.Shared/Stealth/Components/StealthOnMoveComponent.cs +++ b/Content.Shared/Stealth/Components/StealthOnMoveComponent.cs @@ -7,18 +7,18 @@ namespace Content.Shared.Stealth.Components /// based on the entity's (lack of) movement. /// [RegisterComponent, NetworkedComponent] - public sealed class StealthOnMoveComponent : Component + public sealed partial class StealthOnMoveComponent : Component { /// /// Rate that effects how fast an entity's visibility passively changes. /// [DataField("passiveVisibilityRate")] - public readonly float PassiveVisibilityRate = -0.15f; + public float PassiveVisibilityRate = -0.15f; /// /// Rate for movement induced visibility changes. Scales with distance moved. /// [DataField("movementVisibilityRate")] - public readonly float MovementVisibilityRate = 0.2f; + public float MovementVisibilityRate = 0.2f; } } diff --git a/Content.Shared/StepTrigger/Components/ShoesRequiredStepTriggerComponent.cs b/Content.Shared/StepTrigger/Components/ShoesRequiredStepTriggerComponent.cs index cde93ea355..dd95b94a7e 100644 --- a/Content.Shared/StepTrigger/Components/ShoesRequiredStepTriggerComponent.cs +++ b/Content.Shared/StepTrigger/Components/ShoesRequiredStepTriggerComponent.cs @@ -6,6 +6,6 @@ namespace Content.Shared.StepTrigger.Components; /// This is used for cancelling step trigger events if the user is wearing shoes, such as for glass shards. /// [RegisterComponent, NetworkedComponent] -public sealed class ShoesRequiredStepTriggerComponent : Component +public sealed partial class ShoesRequiredStepTriggerComponent : Component { } diff --git a/Content.Shared/StepTrigger/Components/StepTriggerComponent.cs b/Content.Shared/StepTrigger/Components/StepTriggerComponent.cs index 4fe4709379..5031a3decd 100644 --- a/Content.Shared/StepTrigger/Components/StepTriggerComponent.cs +++ b/Content.Shared/StepTrigger/Components/StepTriggerComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.StepTrigger.Components; [RegisterComponent] [NetworkedComponent] [Access(typeof(StepTriggerSystem))] -public sealed class StepTriggerComponent : Component +public sealed partial class StepTriggerComponent : Component { /// /// List of entities that are currently colliding with the entity. @@ -50,7 +50,7 @@ public sealed class StepTriggerComponent : Component [RegisterComponent] [Access(typeof(StepTriggerSystem))] -public sealed class StepTriggerActiveComponent : Component +public sealed partial class StepTriggerActiveComponent : Component { } diff --git a/Content.Shared/Sticky/Components/StickyVisualizerComponent.cs b/Content.Shared/Sticky/Components/StickyVisualizerComponent.cs index 9bb7e621ab..c32be646fc 100644 --- a/Content.Shared/Sticky/Components/StickyVisualizerComponent.cs +++ b/Content.Shared/Sticky/Components/StickyVisualizerComponent.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Sticky.Components; using DrawDepth; [RegisterComponent] -public sealed class StickyVisualizerComponent : Component +public sealed partial class StickyVisualizerComponent : Component { /// /// What sprite draw depth set when entity stuck. diff --git a/Content.Shared/Sticky/StickyDoAfterEvent.cs b/Content.Shared/Sticky/StickyDoAfterEvent.cs index e460efa40e..a2f003895e 100644 --- a/Content.Shared/Sticky/StickyDoAfterEvent.cs +++ b/Content.Shared/Sticky/StickyDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Sticky; [Serializable, NetSerializable] -public sealed class StickyDoAfterEvent : SimpleDoAfterEvent +public sealed partial class StickyDoAfterEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/Storage/Components/BinComponent.cs b/Content.Shared/Storage/Components/BinComponent.cs index 0dfb379275..13617a60a1 100644 --- a/Content.Shared/Storage/Components/BinComponent.cs +++ b/Content.Shared/Storage/Components/BinComponent.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Storage.Components; /// you can only take off of the top of the bin. /// [RegisterComponent, NetworkedComponent, Access(typeof(BinSystem))] -public sealed class BinComponent : Component +public sealed partial class BinComponent : Component { /// /// The containers that contain the items held in the bin diff --git a/Content.Shared/Storage/Components/DumpableComponent.cs b/Content.Shared/Storage/Components/DumpableComponent.cs index 10470fd2f3..f10a935fb9 100644 --- a/Content.Shared/Storage/Components/DumpableComponent.cs +++ b/Content.Shared/Storage/Components/DumpableComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Storage.Components; [Serializable, NetSerializable] -public sealed class DumpableDoAfterEvent : SimpleDoAfterEvent +public sealed partial class DumpableDoAfterEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/Storage/Components/InsideEntityStorageComponent.cs b/Content.Shared/Storage/Components/InsideEntityStorageComponent.cs index 802cf195c3..258ea07ec6 100644 --- a/Content.Shared/Storage/Components/InsideEntityStorageComponent.cs +++ b/Content.Shared/Storage/Components/InsideEntityStorageComponent.cs @@ -4,7 +4,7 @@ /// Added to entities contained within entity storage, for directed event purposes. /// [RegisterComponent] -public sealed class InsideEntityStorageComponent : Component +public sealed partial class InsideEntityStorageComponent : Component { public EntityUid Storage; } diff --git a/Content.Shared/Storage/Components/ItemCounterComponent.cs b/Content.Shared/Storage/Components/ItemCounterComponent.cs index 40151a502a..890bc84e72 100644 --- a/Content.Shared/Storage/Components/ItemCounterComponent.cs +++ b/Content.Shared/Storage/Components/ItemCounterComponent.cs @@ -17,14 +17,14 @@ namespace Content.Shared.Storage.Components /// [RegisterComponent] [Access(typeof(SharedItemCounterSystem))] - public sealed class ItemCounterComponent : Component + public sealed partial class ItemCounterComponent : Component { [DataField("count", required: true)] public EntityWhitelist Count { get; set; } = default!; [DataField("amount")] public int? MaxAmount { get; set; } - + /// /// Default IconLayer stack. /// diff --git a/Content.Shared/Storage/Components/ItemMapperComponent.cs b/Content.Shared/Storage/Components/ItemMapperComponent.cs index ba9bdfdbbe..4512503fde 100644 --- a/Content.Shared/Storage/Components/ItemMapperComponent.cs +++ b/Content.Shared/Storage/Components/ItemMapperComponent.cs @@ -54,9 +54,9 @@ namespace Content.Shared.Storage.Components /// [RegisterComponent] [Access(typeof(SharedItemMapperSystem))] - public sealed class ItemMapperComponent : Component + public sealed partial class ItemMapperComponent : Component { - [DataField("mapLayers")] public readonly Dictionary MapLayers = new(); + [DataField("mapLayers")] public Dictionary MapLayers = new(); [DataField("sprite")] public ResPath? RSIPath; diff --git a/Content.Shared/Storage/Components/SharedEntityStorageComponent.cs b/Content.Shared/Storage/Components/SharedEntityStorageComponent.cs index e3893da19a..a1a09c4d0c 100644 --- a/Content.Shared/Storage/Components/SharedEntityStorageComponent.cs +++ b/Content.Shared/Storage/Components/SharedEntityStorageComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Storage.Components; [NetworkedComponent] -public abstract class SharedEntityStorageComponent : Component +public abstract partial class SharedEntityStorageComponent : Component { public readonly float MaxSize = 1.0f; // maximum width or height of an entity allowed inside the storage. @@ -57,7 +57,7 @@ public abstract class SharedEntityStorageComponent : Component //The collision groups checked, so that items are depositied or grabbed from inside walls. [DataField("enteringOffsetCollisionFlags")] - public readonly CollisionGroup EnteringOffsetCollisionFlags = CollisionGroup.Impassable | CollisionGroup.MidImpassable; + public CollisionGroup EnteringOffsetCollisionFlags = CollisionGroup.Impassable | CollisionGroup.MidImpassable; /// /// How close you have to be to the "entering" spot to be able to enter diff --git a/Content.Shared/Storage/Components/SharedMapLayerData.cs b/Content.Shared/Storage/Components/SharedMapLayerData.cs index 741f832af7..6d2f4a7eaf 100644 --- a/Content.Shared/Storage/Components/SharedMapLayerData.cs +++ b/Content.Shared/Storage/Components/SharedMapLayerData.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Storage.Components [Serializable] [DataDefinition] - public sealed class SharedMapLayerData + public sealed partial class SharedMapLayerData { public string Layer = string.Empty; diff --git a/Content.Shared/Storage/Components/StorageFillVisualizerComponent.cs b/Content.Shared/Storage/Components/StorageFillVisualizerComponent.cs index 78d0092853..7c0d8c1ca9 100644 --- a/Content.Shared/Storage/Components/StorageFillVisualizerComponent.cs +++ b/Content.Shared/Storage/Components/StorageFillVisualizerComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Storage.Components; /// Change sprite depending on a storage fill percent. /// [RegisterComponent] -public sealed class StorageFillVisualizerComponent : Component +public sealed partial class StorageFillVisualizerComponent : Component { [DataField("maxFillLevels", required: true)] public int MaxFillLevels; diff --git a/Content.Shared/Storage/EntitySpawnEntry.cs b/Content.Shared/Storage/EntitySpawnEntry.cs index 8b58e9f0f0..a39c2015a9 100644 --- a/Content.Shared/Storage/EntitySpawnEntry.cs +++ b/Content.Shared/Storage/EntitySpawnEntry.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Storage; /// [Serializable] [DataDefinition] -public struct EntitySpawnEntry +public partial struct EntitySpawnEntry { [ViewVariables(VVAccess.ReadWrite)] [DataField("id", customTypeSerializer: typeof(PrototypeIdSerializer))] diff --git a/Content.Shared/Storage/EntitySystems/BluespaceLockerDoAfterEvent.cs b/Content.Shared/Storage/EntitySystems/BluespaceLockerDoAfterEvent.cs index 8a488ead77..2e58de4811 100644 --- a/Content.Shared/Storage/EntitySystems/BluespaceLockerDoAfterEvent.cs +++ b/Content.Shared/Storage/EntitySystems/BluespaceLockerDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Storage.EntitySystems; [Serializable, NetSerializable] -public sealed class BluespaceLockerDoAfterEvent : SimpleDoAfterEvent +public sealed partial class BluespaceLockerDoAfterEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/Storage/Events.cs b/Content.Shared/Storage/Events.cs index 4c241ff4ad..42defac7ff 100644 --- a/Content.Shared/Storage/Events.cs +++ b/Content.Shared/Storage/Events.cs @@ -4,10 +4,10 @@ using Robust.Shared.Serialization; namespace Content.Shared.Storage; [Serializable, NetSerializable] -public sealed class AreaPickupDoAfterEvent : DoAfterEvent +public sealed partial class AreaPickupDoAfterEvent : DoAfterEvent { [DataField("entities", required: true)] - public readonly IReadOnlyList Entities = default!; + public IReadOnlyList Entities = default!; private AreaPickupDoAfterEvent() { diff --git a/Content.Shared/Storage/SharedStorageComponent.cs b/Content.Shared/Storage/SharedStorageComponent.cs index 7034d1e138..b8694739d2 100644 --- a/Content.Shared/Storage/SharedStorageComponent.cs +++ b/Content.Shared/Storage/SharedStorageComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Storage { [NetworkedComponent()] - public abstract class SharedStorageComponent : Component + public abstract partial class SharedStorageComponent : Component { [Serializable, NetSerializable] public sealed class StorageBoundUserInterfaceState : BoundUserInterfaceState diff --git a/Content.Shared/Store/CurrencyPrototype.cs b/Content.Shared/Store/CurrencyPrototype.cs index 33de8dd9c2..5dafbfd91f 100644 --- a/Content.Shared/Store/CurrencyPrototype.cs +++ b/Content.Shared/Store/CurrencyPrototype.cs @@ -12,11 +12,11 @@ namespace Content.Shared.Store; /// [Prototype("currency")] [DataDefinition, Serializable, NetSerializable] -public sealed class CurrencyPrototype : IPrototype +public sealed partial class CurrencyPrototype : IPrototype { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// The Loc string used for displaying the currency in the store ui. @@ -24,17 +24,17 @@ public sealed class CurrencyPrototype : IPrototype /// that which is displayed to the user. /// [DataField("displayName")] - public string DisplayName { get; } = string.Empty; + public string DisplayName { get; private set; } = string.Empty; /// /// The physical entity of the currency /// [DataField("cash", customTypeSerializer: typeof(PrototypeIdValueDictionarySerializer))] - public Dictionary? Cash { get; } + public Dictionary? Cash { get; private set; } /// /// Whether or not this currency can be withdrawn from a shop by a player. Requires a valid entityId. /// [DataField("canWithdraw")] - public bool CanWithdraw { get; } = true; + public bool CanWithdraw { get; private set; } = true; } diff --git a/Content.Shared/Store/ListingCondition.cs b/Content.Shared/Store/ListingCondition.cs index 7b205bc160..be3947aadc 100644 --- a/Content.Shared/Store/ListingCondition.cs +++ b/Content.Shared/Store/ListingCondition.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Store; /// [ImplicitDataDefinitionForInheritors] [MeansImplicitUse] -public abstract class ListingCondition +public abstract partial class ListingCondition { /// /// Determines whether or not a certain entity can purchase a listing. diff --git a/Content.Shared/Store/ListingPrototype.cs b/Content.Shared/Store/ListingPrototype.cs index 325d7e62c7..7f678f6c49 100644 --- a/Content.Shared/Store/ListingPrototype.cs +++ b/Content.Shared/Store/ListingPrototype.cs @@ -17,7 +17,7 @@ namespace Content.Shared.Store; /// [Serializable, NetSerializable] [Virtual, DataDefinition] -public class ListingData : IEquatable, ICloneable +public partial class ListingData : IEquatable, ICloneable { /// /// The name of the listing. If empty, uses the entity's name (if present) @@ -148,9 +148,9 @@ public class ListingData : IEquatable, ICloneable [Prototype("listing")] [Serializable, NetSerializable] [DataDefinition] -public sealed class ListingPrototype : ListingData, IPrototype +public sealed partial class ListingPrototype : ListingData, IPrototype { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; } diff --git a/Content.Shared/Store/StoreCategoryPrototype.cs b/Content.Shared/Store/StoreCategoryPrototype.cs index 10c020ebc6..c13eaf5062 100644 --- a/Content.Shared/Store/StoreCategoryPrototype.cs +++ b/Content.Shared/Store/StoreCategoryPrototype.cs @@ -8,17 +8,17 @@ namespace Content.Shared.Store; /// [Prototype("storeCategory")] [Serializable, NetSerializable, DataDefinition] -public sealed class StoreCategoryPrototype : IPrototype +public sealed partial class StoreCategoryPrototype : IPrototype { private string _name = string.Empty; [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("name")] public string Name { get; private set; } = ""; [DataField("priority")] - public int Priority { get; } = 0; + public int Priority { get; private set; } = 0; } diff --git a/Content.Shared/Store/StorePresetPrototype.cs b/Content.Shared/Store/StorePresetPrototype.cs index 961f8cbf95..ce7f0312b6 100644 --- a/Content.Shared/Store/StorePresetPrototype.cs +++ b/Content.Shared/Store/StorePresetPrototype.cs @@ -10,32 +10,32 @@ namespace Content.Shared.Store; /// [Prototype("storePreset")] [DataDefinition] -public sealed class StorePresetPrototype : IPrototype +public sealed partial class StorePresetPrototype : IPrototype { - [ViewVariables] [IdDataField] public string ID { get; } = default!; + [ViewVariables] [IdDataField] public string ID { get; private set; } = default!; /// /// The name displayed at the top of the store window /// [DataField("storeName", required: true)] - public string StoreName { get; } = string.Empty; + public string StoreName { get; private set; } = string.Empty; /// /// The categories that this store can access /// [DataField("categories", customTypeSerializer: typeof(PrototypeIdHashSetSerializer))] - public HashSet Categories { get; } = new(); + public HashSet Categories { get; private set; } = new(); /// /// The inital balance that the store initializes with. /// [DataField("initialBalance", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] - public Dictionary? InitialBalance { get; } + public Dictionary? InitialBalance { get; private set; } /// /// The currencies that are accepted in the store /// [DataField("currencyWhitelist", customTypeSerializer: typeof(PrototypeIdHashSetSerializer))] - public HashSet CurrencyWhitelist { get; } = new(); + public HashSet CurrencyWhitelist { get; private set; } = new(); } diff --git a/Content.Shared/Strip/Components/StrippableComponent.cs b/Content.Shared/Strip/Components/StrippableComponent.cs index ba5c50fc0f..fbf99992e3 100644 --- a/Content.Shared/Strip/Components/StrippableComponent.cs +++ b/Content.Shared/Strip/Components/StrippableComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Strip.Components { [RegisterComponent, NetworkedComponent] - public sealed class StrippableComponent : Component + public sealed partial class StrippableComponent : Component { /// /// The strip delay for hands. diff --git a/Content.Shared/Strip/Components/StrippingComponent.cs b/Content.Shared/Strip/Components/StrippingComponent.cs index 6893e28d94..1432a00e28 100644 --- a/Content.Shared/Strip/Components/StrippingComponent.cs +++ b/Content.Shared/Strip/Components/StrippingComponent.cs @@ -6,5 +6,5 @@ namespace Content.Shared.Strip.Components /// Give to an entity to say they can strip another entity. /// [RegisterComponent, NetworkedComponent] - public sealed class StrippingComponent : Component {} + public sealed partial class StrippingComponent : Component {} } diff --git a/Content.Shared/Strip/Components/ThievingComponent.cs b/Content.Shared/Strip/Components/ThievingComponent.cs index 2ebf41f41f..83679f132c 100644 --- a/Content.Shared/Strip/Components/ThievingComponent.cs +++ b/Content.Shared/Strip/Components/ThievingComponent.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Strip.Components; /// Give this to an entity when you want to decrease stripping times /// [RegisterComponent] -public sealed class ThievingComponent : Component +public sealed partial class ThievingComponent : Component { /// /// How much the strip time should be shortened by diff --git a/Content.Shared/Stunnable/StunnedComponent.cs b/Content.Shared/Stunnable/StunnedComponent.cs index d083b16448..51a27ac90a 100644 --- a/Content.Shared/Stunnable/StunnedComponent.cs +++ b/Content.Shared/Stunnable/StunnedComponent.cs @@ -3,6 +3,6 @@ using Robust.Shared.GameStates; namespace Content.Shared.Stunnable; [RegisterComponent, NetworkedComponent, Access(typeof(SharedStunSystem))] -public sealed class StunnedComponent : Component +public sealed partial class StunnedComponent : Component { } diff --git a/Content.Shared/SubFloor/SubFloorHideComponent.cs b/Content.Shared/SubFloor/SubFloorHideComponent.cs index 415b2127e9..284a4b871f 100644 --- a/Content.Shared/SubFloor/SubFloorHideComponent.cs +++ b/Content.Shared/SubFloor/SubFloorHideComponent.cs @@ -13,7 +13,7 @@ namespace Content.Shared.SubFloor [NetworkedComponent] [RegisterComponent] [Access(typeof(SharedSubFloorHideSystem))] - public sealed class SubFloorHideComponent : Component + public sealed partial class SubFloorHideComponent : Component { /// /// Whether the entity's current position has a "Floor-type" tile above its current position. diff --git a/Content.Shared/SubFloor/TrayScannerComponent.cs b/Content.Shared/SubFloor/TrayScannerComponent.cs index 811d120a1d..98e43246a8 100644 --- a/Content.Shared/SubFloor/TrayScannerComponent.cs +++ b/Content.Shared/SubFloor/TrayScannerComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.SubFloor; [RegisterComponent, NetworkedComponent] -public sealed class TrayScannerComponent : Component +public sealed partial class TrayScannerComponent : Component { /// /// Whether the scanner is currently on. diff --git a/Content.Shared/Swab/SwabEvents.cs b/Content.Shared/Swab/SwabEvents.cs index 39567af993..3c9fcbef41 100644 --- a/Content.Shared/Swab/SwabEvents.cs +++ b/Content.Shared/Swab/SwabEvents.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Swab; [Serializable, NetSerializable] -public sealed class BotanySwabDoAfterEvent : SimpleDoAfterEvent +public sealed partial class BotanySwabDoAfterEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/Tabletop/Components/TabletopDraggableComponent.cs b/Content.Shared/Tabletop/Components/TabletopDraggableComponent.cs index 8bd3754bc7..e1aa281d17 100644 --- a/Content.Shared/Tabletop/Components/TabletopDraggableComponent.cs +++ b/Content.Shared/Tabletop/Components/TabletopDraggableComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Tabletop.Components; /// [NetworkedComponent] [RegisterComponent] -public sealed class TabletopDraggableComponent : Component +public sealed partial class TabletopDraggableComponent : Component { // The player dragging the piece [ViewVariables] diff --git a/Content.Shared/Tag/TagComponent.cs b/Content.Shared/Tag/TagComponent.cs index b2809e0fe6..abb79be762 100644 --- a/Content.Shared/Tag/TagComponent.cs +++ b/Content.Shared/Tag/TagComponent.cs @@ -3,10 +3,10 @@ namespace Content.Shared.Tag { [RegisterComponent, Access(typeof(TagSystem))] - public sealed class TagComponent : Component + public sealed partial class TagComponent : Component { [DataField("tags", customTypeSerializer: typeof(PrototypeIdHashSetSerializer))] [Access(typeof(TagSystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends - public readonly HashSet Tags = new(); + public HashSet Tags = new(); } } diff --git a/Content.Shared/Tag/TagPrototype.cs b/Content.Shared/Tag/TagPrototype.cs index f67a224eb9..b227cf82b5 100644 --- a/Content.Shared/Tag/TagPrototype.cs +++ b/Content.Shared/Tag/TagPrototype.cs @@ -12,6 +12,6 @@ namespace Content.Shared.Tag { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; } } diff --git a/Content.Shared/Teleportation/Components/HandTeleporterComponent.cs b/Content.Shared/Teleportation/Components/HandTeleporterComponent.cs index 89aab9766e..6abd4a7d21 100644 --- a/Content.Shared/Teleportation/Components/HandTeleporterComponent.cs +++ b/Content.Shared/Teleportation/Components/HandTeleporterComponent.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Teleportation.Components; /// Using it with both portals active deactivates both. /// [RegisterComponent, NetworkedComponent] -public sealed class HandTeleporterComponent : Component +public sealed partial class HandTeleporterComponent : Component { [ViewVariables, DataField("firstPortal")] public EntityUid? FirstPortal = null; @@ -43,6 +43,6 @@ public sealed class HandTeleporterComponent : Component } [Serializable, NetSerializable] -public sealed class TeleporterDoAfterEvent : SimpleDoAfterEvent +public sealed partial class TeleporterDoAfterEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/Teleportation/Components/LinkedEntityComponent.cs b/Content.Shared/Teleportation/Components/LinkedEntityComponent.cs index 40850ae6df..b4dddafea3 100644 --- a/Content.Shared/Teleportation/Components/LinkedEntityComponent.cs +++ b/Content.Shared/Teleportation/Components/LinkedEntityComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Teleportation.Components; /// thrown into to teleport an entity. /// [RegisterComponent, Access(typeof(LinkedEntitySystem)), NetworkedComponent] -public sealed class LinkedEntityComponent : Component +public sealed partial class LinkedEntityComponent : Component { /// /// The entities that this entity is linked to. diff --git a/Content.Shared/Teleportation/Components/PortalComponent.cs b/Content.Shared/Teleportation/Components/PortalComponent.cs index e663057f74..d14576cf20 100644 --- a/Content.Shared/Teleportation/Components/PortalComponent.cs +++ b/Content.Shared/Teleportation/Components/PortalComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Teleportation.Components; /// Relies on being set up. /// [RegisterComponent, NetworkedComponent] -public sealed class PortalComponent : Component +public sealed partial class PortalComponent : Component { /// /// Sound played on arriving to this portal, centered on the destination. diff --git a/Content.Shared/Teleportation/Components/PortalTimeoutComponent.cs b/Content.Shared/Teleportation/Components/PortalTimeoutComponent.cs index 96306198a6..7c4c078eb2 100644 --- a/Content.Shared/Teleportation/Components/PortalTimeoutComponent.cs +++ b/Content.Shared/Teleportation/Components/PortalTimeoutComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Teleportation.Components; /// at the end destination. /// [RegisterComponent, NetworkedComponent] -public sealed class PortalTimeoutComponent : Component +public sealed partial class PortalTimeoutComponent : Component { /// /// The portal that was entered. Null if coming from a hand teleporter, etc. diff --git a/Content.Shared/Throwing/ThrownItemComponent.cs b/Content.Shared/Throwing/ThrownItemComponent.cs index d95eda3feb..7a986d9b1d 100644 --- a/Content.Shared/Throwing/ThrownItemComponent.cs +++ b/Content.Shared/Throwing/ThrownItemComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Throwing { [RegisterComponent, NetworkedComponent] - public sealed class ThrownItemComponent : Component + public sealed partial class ThrownItemComponent : Component { public EntityUid? Thrower { get; set; } } diff --git a/Content.Shared/Tiles/FloorTileComponent.cs b/Content.Shared/Tiles/FloorTileComponent.cs index df4d529619..6d497c003d 100644 --- a/Content.Shared/Tiles/FloorTileComponent.cs +++ b/Content.Shared/Tiles/FloorTileComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Tiles /// A lot of materials use this too. Note that the AfterInteract will fail without a stack component on the item. /// [RegisterComponent, NetworkedComponent] - public sealed class FloorTileComponent : Component + public sealed partial class FloorTileComponent : Component { [DataField("outputs", customTypeSerializer: typeof(PrototypeIdListSerializer))] public List? OutputTiles; diff --git a/Content.Shared/Tiles/ProtectedGridComponent.cs b/Content.Shared/Tiles/ProtectedGridComponent.cs index 2848c1cee9..cf71edbe2b 100644 --- a/Content.Shared/Tiles/ProtectedGridComponent.cs +++ b/Content.Shared/Tiles/ProtectedGridComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Tiles; /// Prevents floor tile updates when attached to a grid. /// [RegisterComponent, NetworkedComponent] -public sealed class ProtectedGridComponent : Component +public sealed partial class ProtectedGridComponent : Component { } diff --git a/Content.Shared/Tiles/RequiresTileComponent.cs b/Content.Shared/Tiles/RequiresTileComponent.cs index 52e646ed2a..2ad70f635d 100644 --- a/Content.Shared/Tiles/RequiresTileComponent.cs +++ b/Content.Shared/Tiles/RequiresTileComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Tiles; /// Deletes the entity if the tile changes from under it. Used for visual effects. /// [RegisterComponent, NetworkedComponent] -public sealed class RequiresTileComponent : Component +public sealed partial class RequiresTileComponent : Component { } diff --git a/Content.Shared/Timing/UseDelayComponent.cs b/Content.Shared/Timing/UseDelayComponent.cs index 8960ad688c..aa12f04847 100644 --- a/Content.Shared/Timing/UseDelayComponent.cs +++ b/Content.Shared/Timing/UseDelayComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Timing /// [RegisterComponent] [NetworkedComponent] - public sealed class UseDelayComponent : Component + public sealed partial class UseDelayComponent : Component { public TimeSpan LastUseTime; diff --git a/Content.Shared/Toggleable/ToggleActionEvent.cs b/Content.Shared/Toggleable/ToggleActionEvent.cs index 7f6bac25dd..1283b6699b 100644 --- a/Content.Shared/Toggleable/ToggleActionEvent.cs +++ b/Content.Shared/Toggleable/ToggleActionEvent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Toggleable; /// /// Generic action-event for toggle-able components. /// -public sealed class ToggleActionEvent : InstantActionEvent { } +public sealed partial class ToggleActionEvent : InstantActionEvent { } /// /// Generic enum keys for toggle-visualizer appearance data & sprite layers. diff --git a/Content.Shared/Toilet/ToiletComponent.cs b/Content.Shared/Toilet/ToiletComponent.cs index b0486a54f0..161bf81c99 100644 --- a/Content.Shared/Toilet/ToiletComponent.cs +++ b/Content.Shared/Toilet/ToiletComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Toilet { [RegisterComponent] - public sealed class ToiletComponent : Component + public sealed partial class ToiletComponent : Component { [DataField("pryLidTime")] public float PryLidTime = 1f; @@ -26,7 +26,7 @@ namespace Content.Shared.Toilet } [Serializable, NetSerializable] - public sealed class ToiletPryDoAfterEvent : SimpleDoAfterEvent + public sealed partial class ToiletPryDoAfterEvent : SimpleDoAfterEvent { } } diff --git a/Content.Shared/Tools/Components/MultipleToolComponent.cs b/Content.Shared/Tools/Components/MultipleToolComponent.cs index b40afbc134..87fa4ad175 100644 --- a/Content.Shared/Tools/Components/MultipleToolComponent.cs +++ b/Content.Shared/Tools/Components/MultipleToolComponent.cs @@ -6,10 +6,10 @@ using Robust.Shared.Utility; namespace Content.Shared.Tools.Components { [RegisterComponent, NetworkedComponent] - public sealed class MultipleToolComponent : Component + public sealed partial class MultipleToolComponent : Component { [DataDefinition] - public sealed class ToolEntry + public sealed partial class ToolEntry { [DataField("behavior", required: true)] public PrototypeFlags Behavior = new(); @@ -25,7 +25,7 @@ namespace Content.Shared.Tools.Components } [DataField("entries", required: true)] - public ToolEntry[] Entries { get; } = Array.Empty(); + public ToolEntry[] Entries { get; private set; } = Array.Empty(); [ViewVariables] public uint CurrentEntry = 0; diff --git a/Content.Shared/Tools/Components/SharedHandheldGPSComponent.cs b/Content.Shared/Tools/Components/SharedHandheldGPSComponent.cs index 0535201792..3c30738857 100644 --- a/Content.Shared/Tools/Components/SharedHandheldGPSComponent.cs +++ b/Content.Shared/Tools/Components/SharedHandheldGPSComponent.cs @@ -1,7 +1,7 @@ namespace Content.Shared.GPS { - public abstract class SharedHandheldGPSComponent : Component + public abstract partial class SharedHandheldGPSComponent : Component { [DataField("updateRate")] public float UpdateRate = 1.5f; diff --git a/Content.Shared/Tools/Components/SharedWeldable.cs b/Content.Shared/Tools/Components/SharedWeldable.cs index b5bf0b6dd5..21056285a1 100644 --- a/Content.Shared/Tools/Components/SharedWeldable.cs +++ b/Content.Shared/Tools/Components/SharedWeldable.cs @@ -2,7 +2,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Tools.Components; -public abstract class SharedWeldableComponent : Component +public abstract partial class SharedWeldableComponent : Component { } diff --git a/Content.Shared/Tools/Components/SharedWelderComponent.cs b/Content.Shared/Tools/Components/SharedWelderComponent.cs index 29ff5fe99b..735aef88c1 100644 --- a/Content.Shared/Tools/Components/SharedWelderComponent.cs +++ b/Content.Shared/Tools/Components/SharedWelderComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Tools.Components { [NetworkedComponent] - public abstract class SharedWelderComponent : Component + public abstract partial class SharedWelderComponent : Component { public bool Lit { get; set; } } diff --git a/Content.Shared/Tools/Components/ToolComponent.cs b/Content.Shared/Tools/Components/ToolComponent.cs index 45fde79d4e..2f9d822f9a 100644 --- a/Content.Shared/Tools/Components/ToolComponent.cs +++ b/Content.Shared/Tools/Components/ToolComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Utility; namespace Content.Shared.Tools.Components { [RegisterComponent, NetworkedComponent] // TODO move tool system to shared, and make it a friend. - public sealed class ToolComponent : Component + public sealed partial class ToolComponent : Component { [DataField("qualities")] public PrototypeFlags Qualities { get; set; } = new(); diff --git a/Content.Shared/Tools/Components/ToolForcePoweredComponent.cs b/Content.Shared/Tools/Components/ToolForcePoweredComponent.cs index 2bb72d3e38..d38034c754 100644 --- a/Content.Shared/Tools/Components/ToolForcePoweredComponent.cs +++ b/Content.Shared/Tools/Components/ToolForcePoweredComponent.cs @@ -5,6 +5,6 @@ namespace Content.Shared.Tools.Components /// or not to work. /// [RegisterComponent] - public sealed class ToolForcePoweredComponent : Component + public sealed partial class ToolForcePoweredComponent : Component {} } diff --git a/Content.Shared/Tools/Systems/SharedToolSystem.cs b/Content.Shared/Tools/Systems/SharedToolSystem.cs index 2dfea24959..f892531850 100644 --- a/Content.Shared/Tools/Systems/SharedToolSystem.cs +++ b/Content.Shared/Tools/Systems/SharedToolSystem.cs @@ -197,16 +197,16 @@ public abstract partial class SharedToolSystem : EntitySystem #region DoAfterEvents [Serializable, NetSerializable] - protected sealed class ToolDoAfterEvent : DoAfterEvent + protected sealed partial class ToolDoAfterEvent : DoAfterEvent { /// /// Entity that the wrapped do after event will get directed at. If null, event will be broadcast. /// [DataField("target")] - public readonly EntityUid? OriginalTarget; + public EntityUid? OriginalTarget; [DataField("wrappedEvent")] - public readonly DoAfterEvent WrappedEvent = default!; + public DoAfterEvent WrappedEvent = default!; private ToolDoAfterEvent() { @@ -233,10 +233,10 @@ public abstract partial class SharedToolSystem : EntitySystem } [Serializable, NetSerializable] - protected sealed class LatticeCuttingCompleteEvent : DoAfterEvent + protected sealed partial class LatticeCuttingCompleteEvent : DoAfterEvent { [DataField("coordinates", required:true)] - public readonly EntityCoordinates Coordinates; + public EntityCoordinates Coordinates; private LatticeCuttingCompleteEvent() { @@ -251,10 +251,10 @@ public abstract partial class SharedToolSystem : EntitySystem } [Serializable, NetSerializable] - protected sealed class TilePryingDoAfterEvent : DoAfterEvent + protected sealed partial class TilePryingDoAfterEvent : DoAfterEvent { [DataField("coordinates", required:true)] - public readonly EntityCoordinates Coordinates; + public EntityCoordinates Coordinates; private TilePryingDoAfterEvent() { @@ -270,7 +270,7 @@ public abstract partial class SharedToolSystem : EntitySystem } [Serializable, NetSerializable] -public sealed class CableCuttingFinishedEvent : SimpleDoAfterEvent +public sealed partial class CableCuttingFinishedEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/Tools/Systems/WeldFinishedEvent.cs b/Content.Shared/Tools/Systems/WeldFinishedEvent.cs index 20dfae0584..4ece52835d 100644 --- a/Content.Shared/Tools/Systems/WeldFinishedEvent.cs +++ b/Content.Shared/Tools/Systems/WeldFinishedEvent.cs @@ -8,6 +8,6 @@ namespace Content.Shared.Tools.Systems; /// use to get updated status. /// [Serializable, NetSerializable] -public sealed class WeldFinishedEvent : SimpleDoAfterEvent +public sealed partial class WeldFinishedEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/Tools/ToolQualityPrototype.cs b/Content.Shared/Tools/ToolQualityPrototype.cs index 8e2bbee6cc..727a31738c 100644 --- a/Content.Shared/Tools/ToolQualityPrototype.cs +++ b/Content.Shared/Tools/ToolQualityPrototype.cs @@ -8,32 +8,32 @@ namespace Content.Shared.Tools public sealed class ToolQualityPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Human-readable name for this tool quality e.g. "Anchoring" /// /// This is a localization string ID. [DataField("name")] - public string Name { get; } = string.Empty; + public string Name { get; private set; } = string.Empty; /// /// Human-readable name for a tool of this type e.g. "Wrench" /// /// This is a localization string ID. [DataField("toolName")] - public string ToolName { get; } = string.Empty; + public string ToolName { get; private set; } = string.Empty; /// /// An icon that will be used to represent this tool type. /// [DataField("icon")] - public SpriteSpecifier? Icon { get; } = null; + public SpriteSpecifier? Icon { get; private set; } = null; /// /// The default entity prototype for this tool type. /// [DataField("spawn", required:true, customTypeSerializer:typeof(PrototypeIdSerializer))] - public string Spawn { get; } = string.Empty; + public string Spawn { get; private set; } = string.Empty; } } diff --git a/Content.Shared/Traits/Assorted/AccentlessComponent.cs b/Content.Shared/Traits/Assorted/AccentlessComponent.cs index 23f3f2f0f1..96ebf4d83f 100644 --- a/Content.Shared/Traits/Assorted/AccentlessComponent.cs +++ b/Content.Shared/Traits/Assorted/AccentlessComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Traits.Assorted; /// This is used for the accentless trait /// [RegisterComponent, NetworkedComponent] -public sealed class AccentlessComponent : Component +public sealed partial class AccentlessComponent : Component { /// /// The accents removed by the accentless trait. diff --git a/Content.Shared/Traits/Assorted/LegsParalyzedComponent.cs b/Content.Shared/Traits/Assorted/LegsParalyzedComponent.cs index a3cdb4ab33..7716749da1 100644 --- a/Content.Shared/Traits/Assorted/LegsParalyzedComponent.cs +++ b/Content.Shared/Traits/Assorted/LegsParalyzedComponent.cs @@ -7,6 +7,6 @@ namespace Content.Shared.Traits.Assorted; /// Used for Wheelchair bound trait. /// [RegisterComponent, NetworkedComponent, Access(typeof(LegsParalyzedSystem))] -public sealed class LegsParalyzedComponent : Component +public sealed partial class LegsParalyzedComponent : Component { } diff --git a/Content.Shared/Traits/Assorted/LightweightDrunkComponent.cs b/Content.Shared/Traits/Assorted/LightweightDrunkComponent.cs index fda1e3de4f..5d353ac963 100644 --- a/Content.Shared/Traits/Assorted/LightweightDrunkComponent.cs +++ b/Content.Shared/Traits/Assorted/LightweightDrunkComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Traits.Assorted; /// [RegisterComponent, NetworkedComponent] [Access(typeof(SharedDrunkSystem))] -public sealed class LightweightDrunkComponent : Component +public sealed partial class LightweightDrunkComponent : Component { [DataField("boozeStrengthMultiplier"), ViewVariables(VVAccess.ReadWrite)] public float BoozeStrengthMultiplier = 4f; diff --git a/Content.Shared/Traits/Assorted/PermanentBlindnessComponent.cs b/Content.Shared/Traits/Assorted/PermanentBlindnessComponent.cs index 2396ff3967..76ff3e1005 100644 --- a/Content.Shared/Traits/Assorted/PermanentBlindnessComponent.cs +++ b/Content.Shared/Traits/Assorted/PermanentBlindnessComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Traits.Assorted; /// This is used for making something blind forever. /// [RegisterComponent, NetworkedComponent] -public sealed class PermanentBlindnessComponent : Component +public sealed partial class PermanentBlindnessComponent : Component { } diff --git a/Content.Shared/Traits/TraitPrototype.cs b/Content.Shared/Traits/TraitPrototype.cs index 33f092338e..f7ae6f9c71 100644 --- a/Content.Shared/Traits/TraitPrototype.cs +++ b/Content.Shared/Traits/TraitPrototype.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Traits { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// The name of this trait. @@ -43,7 +43,7 @@ namespace Content.Shared.Traits /// The components that get added to the player, when they pick this trait. /// [DataField("components")] - public ComponentRegistry Components { get; } = default!; + public ComponentRegistry Components { get; private set; } = default!; /// /// Gear that is given to the player, when they pick this trait. diff --git a/Content.Shared/Udder/MilkingDoAfterEvent.cs b/Content.Shared/Udder/MilkingDoAfterEvent.cs index 03170b93f7..dd870c28a4 100644 --- a/Content.Shared/Udder/MilkingDoAfterEvent.cs +++ b/Content.Shared/Udder/MilkingDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Udder; [Serializable, NetSerializable] -public sealed class MilkingDoAfterEvent : SimpleDoAfterEvent +public sealed partial class MilkingDoAfterEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/Vehicle/Components/InVehicleComponent.cs b/Content.Shared/Vehicle/Components/InVehicleComponent.cs index a808393486..77229f1705 100644 --- a/Content.Shared/Vehicle/Components/InVehicleComponent.cs +++ b/Content.Shared/Vehicle/Components/InVehicleComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Vehicle.Components /// removing them. /// [RegisterComponent, NetworkedComponent] - public sealed class InVehicleComponent : Component + public sealed partial class InVehicleComponent : Component { /// /// The vehicle this rider is currently riding. diff --git a/Content.Shared/Vehicle/Components/RiderComponent.cs b/Content.Shared/Vehicle/Components/RiderComponent.cs index 76bbabe325..f006f9011e 100644 --- a/Content.Shared/Vehicle/Components/RiderComponent.cs +++ b/Content.Shared/Vehicle/Components/RiderComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Vehicle.Components; /// used mostly to keep track of them for entityquery. /// [RegisterComponent, NetworkedComponent] -public sealed class RiderComponent : Component +public sealed partial class RiderComponent : Component { /// /// The vehicle this rider is currently riding. diff --git a/Content.Shared/Vehicle/SharedVehicleSystem.cs b/Content.Shared/Vehicle/SharedVehicleSystem.cs index 00ab81a333..af7e7e7832 100644 --- a/Content.Shared/Vehicle/SharedVehicleSystem.cs +++ b/Content.Shared/Vehicle/SharedVehicleSystem.cs @@ -370,6 +370,6 @@ public enum VehicleVisuals : byte /// /// Raised when someone honks a vehicle horn /// -public sealed class HonkActionEvent : InstantActionEvent +public sealed partial class HonkActionEvent : InstantActionEvent { } diff --git a/Content.Shared/VendingMachines/VendingMachineComponent.cs b/Content.Shared/VendingMachines/VendingMachineComponent.cs index 7be06d1d1c..94ca115ccf 100644 --- a/Content.Shared/VendingMachines/VendingMachineComponent.cs +++ b/Content.Shared/VendingMachines/VendingMachineComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.VendingMachines { [RegisterComponent, NetworkedComponent] - public sealed class VendingMachineComponent : Component + public sealed partial class VendingMachineComponent : Component { /// /// PrototypeID for the vending machine's inventory, see @@ -246,7 +246,7 @@ namespace Content.Shared.VendingMachines StatusKey, } - public sealed class VendingMachineSelfDispenseEvent : InstantActionEvent + public sealed partial class VendingMachineSelfDispenseEvent : InstantActionEvent { }; diff --git a/Content.Shared/VendingMachines/VendingMachineInventoryPrototype.cs b/Content.Shared/VendingMachines/VendingMachineInventoryPrototype.cs index 2945374f87..4869eae6de 100644 --- a/Content.Shared/VendingMachines/VendingMachineInventoryPrototype.cs +++ b/Content.Shared/VendingMachines/VendingMachineInventoryPrototype.cs @@ -9,15 +9,15 @@ namespace Content.Shared.VendingMachines { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("startingInventory", customTypeSerializer:typeof(PrototypeIdDictionarySerializer))] - public Dictionary StartingInventory { get; } = new(); + public Dictionary StartingInventory { get; private set; } = new(); [DataField("emaggedInventory", customTypeSerializer:typeof(PrototypeIdDictionarySerializer))] - public Dictionary? EmaggedInventory { get; } + public Dictionary? EmaggedInventory { get; private set; } [DataField("contrabandInventory", customTypeSerializer:typeof(PrototypeIdDictionarySerializer))] - public Dictionary? ContrabandInventory { get; } + public Dictionary? ContrabandInventory { get; private set; } } } diff --git a/Content.Shared/VendingMachines/VendingMachineRestockComponent.cs b/Content.Shared/VendingMachines/VendingMachineRestockComponent.cs index e73d7eb077..1b5f07ae6a 100644 --- a/Content.Shared/VendingMachines/VendingMachineRestockComponent.cs +++ b/Content.Shared/VendingMachines/VendingMachineRestockComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.VendingMachines; [RegisterComponent, NetworkedComponent, Access(typeof(SharedVendingMachineSystem))] -public sealed class VendingMachineRestockComponent : Component +public sealed partial class VendingMachineRestockComponent : Component { /// /// The time (in seconds) that it takes to restock a machine. @@ -47,6 +47,6 @@ public sealed class VendingMachineRestockComponent : Component } [Serializable, NetSerializable] -public sealed class RestockDoAfterEvent : SimpleDoAfterEvent +public sealed partial class RestockDoAfterEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/Wall/WallMountComponent.cs b/Content.Shared/Wall/WallMountComponent.cs index a7c5383fc0..cbd266e3f8 100644 --- a/Content.Shared/Wall/WallMountComponent.cs +++ b/Content.Shared/Wall/WallMountComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Wall; /// in a limited arc, providing basic functionality for directional wall mounts. /// [RegisterComponent] -public sealed class WallMountComponent : Component +public sealed partial class WallMountComponent : Component { /// /// Range of angles for which the exemption applies. Bigger is more permissive. diff --git a/Content.Shared/Weapons/Marker/LeechOnMarkerComponent.cs b/Content.Shared/Weapons/Marker/LeechOnMarkerComponent.cs index aca15ce796..98798ae8ba 100644 --- a/Content.Shared/Weapons/Marker/LeechOnMarkerComponent.cs +++ b/Content.Shared/Weapons/Marker/LeechOnMarkerComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Weapons.Marker; /// Applies leech upon hitting a damage marker target. /// [RegisterComponent, NetworkedComponent] -public sealed class LeechOnMarkerComponent : Component +public sealed partial class LeechOnMarkerComponent : Component { // TODO: Can't network damagespecifiers yet last I checked. [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Shared/Weapons/Melee/Components/BonusMeleeAttackRateComponent.cs b/Content.Shared/Weapons/Melee/Components/BonusMeleeAttackRateComponent.cs index a47ed503bf..f2f9607757 100644 --- a/Content.Shared/Weapons/Melee/Components/BonusMeleeAttackRateComponent.cs +++ b/Content.Shared/Weapons/Melee/Components/BonusMeleeAttackRateComponent.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Weapons.Melee.Components; [RegisterComponent, NetworkedComponent, Access(typeof(SharedMeleeWeaponSystem))] -public sealed class BonusMeleeAttackRateComponent : Component +public sealed partial class BonusMeleeAttackRateComponent : Component { /// /// The value added onto the attack rate of a melee weapon diff --git a/Content.Shared/Weapons/Melee/Components/BonusMeleeDamageComponent.cs b/Content.Shared/Weapons/Melee/Components/BonusMeleeDamageComponent.cs index 06762d57ce..08af9e42a3 100644 --- a/Content.Shared/Weapons/Melee/Components/BonusMeleeDamageComponent.cs +++ b/Content.Shared/Weapons/Melee/Components/BonusMeleeDamageComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Weapons.Melee.Components; /// This exists only for event relays and doing entity shenanigans. /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedMeleeWeaponSystem))] -public sealed class BonusMeleeDamageComponent : Component +public sealed partial class BonusMeleeDamageComponent : Component { /// /// The damage that will be added. diff --git a/Content.Shared/Weapons/Melee/Components/MeleeRequiresWieldComponent.cs b/Content.Shared/Weapons/Melee/Components/MeleeRequiresWieldComponent.cs index cc05574224..b322bbe51b 100644 --- a/Content.Shared/Weapons/Melee/Components/MeleeRequiresWieldComponent.cs +++ b/Content.Shared/Weapons/Melee/Components/MeleeRequiresWieldComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Weapons.Melee.Components; /// Indicates that this meleeweapon requires wielding to be useable. /// [RegisterComponent, NetworkedComponent, Access(typeof(WieldableSystem))] -public sealed class MeleeRequiresWieldComponent : Component +public sealed partial class MeleeRequiresWieldComponent : Component { } diff --git a/Content.Shared/Weapons/Melee/Components/MeleeSoundComponent.cs b/Content.Shared/Weapons/Melee/Components/MeleeSoundComponent.cs index 3ec1175df8..ae467dc4ad 100644 --- a/Content.Shared/Weapons/Melee/Components/MeleeSoundComponent.cs +++ b/Content.Shared/Weapons/Melee/Components/MeleeSoundComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Weapons.Melee.Components; /// Plays the specified sound upon receiving damage of the specified type. /// [RegisterComponent] -public sealed class MeleeSoundComponent : Component +public sealed partial class MeleeSoundComponent : Component { /// /// Specified sounds to apply when the entity takes damage with the specified group. diff --git a/Content.Shared/Weapons/Melee/MeleeWeaponComponent.cs b/Content.Shared/Weapons/Melee/MeleeWeaponComponent.cs index 36f32ffa14..d5d57ef850 100644 --- a/Content.Shared/Weapons/Melee/MeleeWeaponComponent.cs +++ b/Content.Shared/Weapons/Melee/MeleeWeaponComponent.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Weapons.Melee; /// When given to a mob lets them do unarmed attacks, or when given to an item lets someone wield it to do attacks. /// [RegisterComponent, NetworkedComponent] -public sealed class MeleeWeaponComponent : Component +public sealed partial class MeleeWeaponComponent : Component { // TODO: This is becoming bloated as shit. // This should just be its own component for alt attacks. diff --git a/Content.Shared/Weapons/Misc/BaseForceGunComponent.cs b/Content.Shared/Weapons/Misc/BaseForceGunComponent.cs index a646401066..61c84f7d3d 100644 --- a/Content.Shared/Weapons/Misc/BaseForceGunComponent.cs +++ b/Content.Shared/Weapons/Misc/BaseForceGunComponent.cs @@ -2,7 +2,7 @@ using Robust.Shared.Audio; namespace Content.Shared.Weapons.Misc; -public abstract class BaseForceGunComponent : Component +public abstract partial class BaseForceGunComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("lineColor"), AutoNetworkedField] public Color LineColor = Color.Orange; diff --git a/Content.Shared/Weapons/Misc/GrapplingProjectileComponent.cs b/Content.Shared/Weapons/Misc/GrapplingProjectileComponent.cs index 5dcc7702ee..9e7447f1da 100644 --- a/Content.Shared/Weapons/Misc/GrapplingProjectileComponent.cs +++ b/Content.Shared/Weapons/Misc/GrapplingProjectileComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Weapons.Misc; [RegisterComponent, NetworkedComponent] -public sealed class GrapplingProjectileComponent : Component +public sealed partial class GrapplingProjectileComponent : Component { } diff --git a/Content.Shared/Weapons/Ranged/Components/AmmoComponent.cs b/Content.Shared/Weapons/Ranged/Components/AmmoComponent.cs index 075192a76f..eb1328da4a 100644 --- a/Content.Shared/Weapons/Ranged/Components/AmmoComponent.cs +++ b/Content.Shared/Weapons/Ranged/Components/AmmoComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Weapons.Ranged.Components; /// Allows the entity to be fired from a gun. /// [RegisterComponent, Virtual] -public class AmmoComponent : Component, IShootable +public partial class AmmoComponent : Component, IShootable { // Muzzle flash stored on ammo because if we swap a gun to whatever we may want to override it. diff --git a/Content.Shared/Weapons/Ranged/Components/AmmoProviderComponent.cs b/Content.Shared/Weapons/Ranged/Components/AmmoProviderComponent.cs index c54d081c88..9a7fdc07de 100644 --- a/Content.Shared/Weapons/Ranged/Components/AmmoProviderComponent.cs +++ b/Content.Shared/Weapons/Ranged/Components/AmmoProviderComponent.cs @@ -3,4 +3,4 @@ using Robust.Shared.GameStates; namespace Content.Shared.Weapons.Ranged.Components; [NetworkedComponent] -public abstract class AmmoProviderComponent : Component {} +public abstract partial class AmmoProviderComponent : Component {} diff --git a/Content.Shared/Weapons/Ranged/Components/BatteryAmmoProviderComponent.cs b/Content.Shared/Weapons/Ranged/Components/BatteryAmmoProviderComponent.cs index be638bf7a1..dfe2e9cf4f 100644 --- a/Content.Shared/Weapons/Ranged/Components/BatteryAmmoProviderComponent.cs +++ b/Content.Shared/Weapons/Ranged/Components/BatteryAmmoProviderComponent.cs @@ -1,6 +1,6 @@ namespace Content.Shared.Weapons.Ranged.Components; -public abstract class BatteryAmmoProviderComponent : AmmoProviderComponent +public abstract partial class BatteryAmmoProviderComponent : AmmoProviderComponent { /// /// How much battery it costs to fire once. diff --git a/Content.Shared/Weapons/Ranged/Components/ClothingSlotAmmoProviderComponent.cs b/Content.Shared/Weapons/Ranged/Components/ClothingSlotAmmoProviderComponent.cs index af3fd57b56..e363fc9fe1 100644 --- a/Content.Shared/Weapons/Ranged/Components/ClothingSlotAmmoProviderComponent.cs +++ b/Content.Shared/Weapons/Ranged/Components/ClothingSlotAmmoProviderComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Weapons.Ranged.Components; /// to an entity in the user's clothing slot. /// [RegisterComponent, NetworkedComponent, Access(typeof(SharedGunSystem))] -public sealed class ClothingSlotAmmoProviderComponent : AmmoProviderComponent +public sealed partial class ClothingSlotAmmoProviderComponent : AmmoProviderComponent { /// /// The slot that the ammo provider should be located in. diff --git a/Content.Shared/Weapons/Ranged/Components/ContainerAmmoProviderComponent.cs b/Content.Shared/Weapons/Ranged/Components/ContainerAmmoProviderComponent.cs index 8b5a6761a4..0f2884bf58 100644 --- a/Content.Shared/Weapons/Ranged/Components/ContainerAmmoProviderComponent.cs +++ b/Content.Shared/Weapons/Ranged/Components/ContainerAmmoProviderComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Weapons.Ranged.Components; /// Handles pulling entities from the given container to use as ammunition. /// [RegisterComponent] -public sealed class ContainerAmmoProviderComponent : AmmoProviderComponent +public sealed partial class ContainerAmmoProviderComponent : AmmoProviderComponent { [DataField("container", required: true)] [ViewVariables] diff --git a/Content.Shared/Weapons/Ranged/Components/GunRequiresWieldComponent.cs b/Content.Shared/Weapons/Ranged/Components/GunRequiresWieldComponent.cs index e8b93c60fd..2ae71334b4 100644 --- a/Content.Shared/Weapons/Ranged/Components/GunRequiresWieldComponent.cs +++ b/Content.Shared/Weapons/Ranged/Components/GunRequiresWieldComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Weapons.Ranged.Components; /// Indicates that this gun requires wielding to be useable. /// [RegisterComponent, NetworkedComponent, Access(typeof(WieldableSystem))] -public sealed class GunRequiresWieldComponent : Component +public sealed partial class GunRequiresWieldComponent : Component { } diff --git a/Content.Shared/Weapons/Ranged/Components/HitscanBatteryAmmoProviderComponent.cs b/Content.Shared/Weapons/Ranged/Components/HitscanBatteryAmmoProviderComponent.cs index 57b9ac91fa..be9d9805a8 100644 --- a/Content.Shared/Weapons/Ranged/Components/HitscanBatteryAmmoProviderComponent.cs +++ b/Content.Shared/Weapons/Ranged/Components/HitscanBatteryAmmoProviderComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Weapons.Ranged.Components; [RegisterComponent, NetworkedComponent] -public sealed class HitscanBatteryAmmoProviderComponent : BatteryAmmoProviderComponent +public sealed partial class HitscanBatteryAmmoProviderComponent : BatteryAmmoProviderComponent { [ViewVariables(VVAccess.ReadWrite), DataField("proto", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] public string Prototype = default!; diff --git a/Content.Shared/Weapons/Ranged/Components/MagazineAmmoProviderComponent.cs b/Content.Shared/Weapons/Ranged/Components/MagazineAmmoProviderComponent.cs index 60977dda73..9aff60fd3a 100644 --- a/Content.Shared/Weapons/Ranged/Components/MagazineAmmoProviderComponent.cs +++ b/Content.Shared/Weapons/Ranged/Components/MagazineAmmoProviderComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Weapons.Ranged; /// Wrapper around a magazine (handled via ItemSlot). Passes all AmmoProvider logic onto it. /// [RegisterComponent, Virtual] -public class MagazineAmmoProviderComponent : AmmoProviderComponent +public partial class MagazineAmmoProviderComponent : AmmoProviderComponent { [ViewVariables(VVAccess.ReadWrite), DataField("soundAutoEject")] public SoundSpecifier? SoundAutoEject = new SoundPathSpecifier("/Audio/Weapons/Guns/EmptyAlarm/smg_empty_alarm.ogg"); diff --git a/Content.Shared/Weapons/Ranged/Components/ProjectileBatteryAmmoProviderComponent.cs b/Content.Shared/Weapons/Ranged/Components/ProjectileBatteryAmmoProviderComponent.cs index 0e5e1bb238..d0de436396 100644 --- a/Content.Shared/Weapons/Ranged/Components/ProjectileBatteryAmmoProviderComponent.cs +++ b/Content.Shared/Weapons/Ranged/Components/ProjectileBatteryAmmoProviderComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Weapons.Ranged.Components; [RegisterComponent, NetworkedComponent] -public sealed class ProjectileBatteryAmmoProviderComponent : BatteryAmmoProviderComponent +public sealed partial class ProjectileBatteryAmmoProviderComponent : BatteryAmmoProviderComponent { [ViewVariables(VVAccess.ReadWrite), DataField("proto", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] public string Prototype = default!; diff --git a/Content.Shared/Weapons/Ranged/Components/RechargeCycleAmmoComponent.cs b/Content.Shared/Weapons/Ranged/Components/RechargeCycleAmmoComponent.cs index 70a053e292..292c52c0a9 100644 --- a/Content.Shared/Weapons/Ranged/Components/RechargeCycleAmmoComponent.cs +++ b/Content.Shared/Weapons/Ranged/Components/RechargeCycleAmmoComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Weapons.Ranged.Components; /// Recharges ammo upon the gun being cycled. /// [RegisterComponent, NetworkedComponent] -public sealed class RechargeCycleAmmoComponent : Component +public sealed partial class RechargeCycleAmmoComponent : Component { } diff --git a/Content.Shared/Weapons/Ranged/Components/ReflectiveComponent.cs b/Content.Shared/Weapons/Ranged/Components/ReflectiveComponent.cs index 65cc21c314..d037832e1e 100644 --- a/Content.Shared/Weapons/Ranged/Components/ReflectiveComponent.cs +++ b/Content.Shared/Weapons/Ranged/Components/ReflectiveComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Weapons.Ranged.Components; /// Only applies if it is shot like a projectile and not if it is thrown. /// [RegisterComponent, NetworkedComponent] -public sealed class ReflectiveComponent : Component +public sealed partial class ReflectiveComponent : Component { [ViewVariables(VVAccess.ReadWrite), DataField("reflective")] public ReflectType Reflective = ReflectType.NonEnergy; diff --git a/Content.Shared/Weapons/Ranged/Components/RevolverAmmoProviderComponent.cs b/Content.Shared/Weapons/Ranged/Components/RevolverAmmoProviderComponent.cs index 6f8e13b9df..d982dfcb10 100644 --- a/Content.Shared/Weapons/Ranged/Components/RevolverAmmoProviderComponent.cs +++ b/Content.Shared/Weapons/Ranged/Components/RevolverAmmoProviderComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Weapons.Ranged.Components; [RegisterComponent, NetworkedComponent] -public sealed class RevolverAmmoProviderComponent : AmmoProviderComponent +public sealed partial class RevolverAmmoProviderComponent : AmmoProviderComponent { /* * Revolver has an array of its slots of which we can fire from any index. diff --git a/Content.Shared/Weapons/Ranged/Components/SharedAmmoCounterComponent.cs b/Content.Shared/Weapons/Ranged/Components/SharedAmmoCounterComponent.cs index cf70ca516e..d3c144b15d 100644 --- a/Content.Shared/Weapons/Ranged/Components/SharedAmmoCounterComponent.cs +++ b/Content.Shared/Weapons/Ranged/Components/SharedAmmoCounterComponent.cs @@ -6,4 +6,4 @@ namespace Content.Shared.Weapons.Ranged.Components; /// Shows an ItemStatus with the ammo of the gun. Adjusts based on what the ammoprovider is. /// [NetworkedComponent] -public abstract class SharedAmmoCounterComponent : Component {} +public abstract partial class SharedAmmoCounterComponent : Component {} diff --git a/Content.Shared/Weapons/Ranged/Components/SpeedLoaderComponent.cs b/Content.Shared/Weapons/Ranged/Components/SpeedLoaderComponent.cs index de736eac94..d9a2d1cdfe 100644 --- a/Content.Shared/Weapons/Ranged/Components/SpeedLoaderComponent.cs +++ b/Content.Shared/Weapons/Ranged/Components/SpeedLoaderComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Weapons.Ranged.Components; /// Allows this entity to bulk change revolver ammo. /// [RegisterComponent, NetworkedComponent] -public sealed class SpeedLoaderComponent : Component +public sealed partial class SpeedLoaderComponent : Component { } diff --git a/Content.Shared/Weapons/Ranged/Components/UseDelayOnShootComponent.cs b/Content.Shared/Weapons/Ranged/Components/UseDelayOnShootComponent.cs index c2b0950502..0916af17df 100644 --- a/Content.Shared/Weapons/Ranged/Components/UseDelayOnShootComponent.cs +++ b/Content.Shared/Weapons/Ranged/Components/UseDelayOnShootComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Weapons.Ranged.Components; /// Applies UseDelay whenever the entity shoots. /// [RegisterComponent, NetworkedComponent, Access(typeof(UseDelayOnShootSystem))] -public sealed class UseDelayOnShootComponent : Component +public sealed partial class UseDelayOnShootComponent : Component { } diff --git a/Content.Shared/Weapons/Ranged/HitscanPrototype.cs b/Content.Shared/Weapons/Ranged/HitscanPrototype.cs index 17f9ff4793..121249752d 100644 --- a/Content.Shared/Weapons/Ranged/HitscanPrototype.cs +++ b/Content.Shared/Weapons/Ranged/HitscanPrototype.cs @@ -12,7 +12,7 @@ public sealed class HitscanPrototype : IPrototype, IShootable { [ViewVariables] [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [ViewVariables(VVAccess.ReadWrite), DataField("staminaDamage")] public float StaminaDamage; diff --git a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Interactions.cs b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Interactions.cs index 0f8a97be00..1e4471562e 100644 --- a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Interactions.cs +++ b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Interactions.cs @@ -96,7 +96,7 @@ public abstract partial class SharedGunSystem } // TODO: Actions need doing for guns anyway. - private sealed class CycleModeEvent : InstantActionEvent + private sealed partial class CycleModeEvent : InstantActionEvent { public SelectiveFire Mode; } diff --git a/Content.Shared/Weather/IgnoreWeatherComponent.cs b/Content.Shared/Weather/IgnoreWeatherComponent.cs index d3660f4b4d..8b8d004ee2 100644 --- a/Content.Shared/Weather/IgnoreWeatherComponent.cs +++ b/Content.Shared/Weather/IgnoreWeatherComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Weather; /// This entity will be ignored for considering weather on a tile /// [RegisterComponent, NetworkedComponent] -public sealed class IgnoreWeatherComponent : Component +public sealed partial class IgnoreWeatherComponent : Component { } diff --git a/Content.Shared/Weather/WeatherComponent.cs b/Content.Shared/Weather/WeatherComponent.cs index b5e420582e..6166ea0c64 100644 --- a/Content.Shared/Weather/WeatherComponent.cs +++ b/Content.Shared/Weather/WeatherComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Weather; [RegisterComponent, NetworkedComponent] -public sealed class WeatherComponent : Component +public sealed partial class WeatherComponent : Component { /// /// Currently running weathers @@ -20,7 +20,7 @@ public sealed class WeatherComponent : Component } [DataDefinition, Serializable, NetSerializable] -public sealed class WeatherData +public sealed partial class WeatherData { // Client audio stream. [NonSerialized] diff --git a/Content.Shared/Whitelist/EntityWhitelist.cs b/Content.Shared/Whitelist/EntityWhitelist.cs index 39bff84a51..942de2b0e8 100644 --- a/Content.Shared/Whitelist/EntityWhitelist.cs +++ b/Content.Shared/Whitelist/EntityWhitelist.cs @@ -20,7 +20,7 @@ namespace Content.Shared.Whitelist /// [DataDefinition] [Serializable, NetSerializable] - public sealed class EntityWhitelist + public sealed partial class EntityWhitelist { /// /// Component names that are allowed in the whitelist. diff --git a/Content.Shared/Wieldable/Components/IncreaseDamageOnWieldComponent.cs b/Content.Shared/Wieldable/Components/IncreaseDamageOnWieldComponent.cs index 4d453d5197..3336923b02 100644 --- a/Content.Shared/Wieldable/Components/IncreaseDamageOnWieldComponent.cs +++ b/Content.Shared/Wieldable/Components/IncreaseDamageOnWieldComponent.cs @@ -3,8 +3,8 @@ using Content.Shared.Damage; namespace Content.Shared.Wieldable.Components; [RegisterComponent, Access(typeof(WieldableSystem))] -public sealed class IncreaseDamageOnWieldComponent : Component +public sealed partial class IncreaseDamageOnWieldComponent : Component { [DataField("damage", required: true)] public DamageSpecifier BonusDamage = default!; -} \ No newline at end of file +} diff --git a/Content.Shared/Wieldable/WieldableDoAfterEvent.cs b/Content.Shared/Wieldable/WieldableDoAfterEvent.cs index fdbe02884d..8431de9b26 100644 --- a/Content.Shared/Wieldable/WieldableDoAfterEvent.cs +++ b/Content.Shared/Wieldable/WieldableDoAfterEvent.cs @@ -4,6 +4,6 @@ using Robust.Shared.Serialization; namespace Content.Shared.Wieldable; [Serializable, NetSerializable] -public sealed class WieldableDoAfterEvent : SimpleDoAfterEvent +public sealed partial class WieldableDoAfterEvent : SimpleDoAfterEvent { -} \ No newline at end of file +} diff --git a/Content.Shared/Wires/Events.cs b/Content.Shared/Wires/Events.cs index d28203e009..bfd81253ea 100644 --- a/Content.Shared/Wires/Events.cs +++ b/Content.Shared/Wires/Events.cs @@ -4,13 +4,13 @@ using Robust.Shared.Serialization; namespace Content.Shared.Wires; [Serializable, NetSerializable] -public sealed class WireDoAfterEvent : DoAfterEvent +public sealed partial class WireDoAfterEvent : DoAfterEvent { [DataField("action", required: true)] - public readonly WiresAction Action; + public WiresAction Action; [DataField("id", required: true)] - public readonly int Id; + public int Id; private WireDoAfterEvent() { diff --git a/Content.Shared/Wires/SharedWiresComponent.cs b/Content.Shared/Wires/SharedWiresComponent.cs index dd749affdb..2239fd72b1 100644 --- a/Content.Shared/Wires/SharedWiresComponent.cs +++ b/Content.Shared/Wires/SharedWiresComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Wires { [Serializable, NetSerializable] - public sealed class WirePanelDoAfterEvent : SimpleDoAfterEvent + public sealed partial class WirePanelDoAfterEvent : SimpleDoAfterEvent { } diff --git a/Content.Shared/Wires/WiresPanelSecurityLevelPrototype.cs b/Content.Shared/Wires/WiresPanelSecurityLevelPrototype.cs index 1fcc982f10..f5a72a66d7 100644 --- a/Content.Shared/Wires/WiresPanelSecurityLevelPrototype.cs +++ b/Content.Shared/Wires/WiresPanelSecurityLevelPrototype.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Wires; public sealed class WiresPanelSecurityLevelPrototype : IPrototype { [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("examine")] public string? Examine = default!; diff --git a/Content.Shared/Xenoarchaeology/XenoArtifacts/ArtifactEffectPrototype.cs b/Content.Shared/Xenoarchaeology/XenoArtifacts/ArtifactEffectPrototype.cs index 1e47b9e443..f3c3e6d470 100644 --- a/Content.Shared/Xenoarchaeology/XenoArtifacts/ArtifactEffectPrototype.cs +++ b/Content.Shared/Xenoarchaeology/XenoArtifacts/ArtifactEffectPrototype.cs @@ -10,11 +10,11 @@ namespace Content.Shared.Xenoarchaeology.XenoArtifacts; /// [Prototype("artifactEffect")] [DataDefinition] -public sealed class ArtifactEffectPrototype : IPrototype +public sealed partial class ArtifactEffectPrototype : IPrototype { /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; /// /// Components that are added to the artifact when the specfic effect is active. diff --git a/Content.Shared/Xenoarchaeology/XenoArtifacts/ArtifactTriggerPrototype.cs b/Content.Shared/Xenoarchaeology/XenoArtifacts/ArtifactTriggerPrototype.cs index 76f827b00f..3f831593d2 100644 --- a/Content.Shared/Xenoarchaeology/XenoArtifacts/ArtifactTriggerPrototype.cs +++ b/Content.Shared/Xenoarchaeology/XenoArtifacts/ArtifactTriggerPrototype.cs @@ -10,11 +10,11 @@ namespace Content.Shared.Xenoarchaeology.XenoArtifacts; /// [Prototype("artifactTrigger")] [DataDefinition] -public sealed class ArtifactTriggerPrototype : IPrototype +public sealed partial class ArtifactTriggerPrototype : IPrototype { /// [IdDataField] - public string ID { get; } = default!; + public string ID { get; private set; } = default!; [DataField("components", serverOnly: true)] public ComponentRegistry Components = new(); diff --git a/Content.Shared/Xenoarchaeology/XenoArtifacts/RandomArtifactSpriteComponent.cs b/Content.Shared/Xenoarchaeology/XenoArtifacts/RandomArtifactSpriteComponent.cs index 545c6f4b85..77b381b0b5 100644 --- a/Content.Shared/Xenoarchaeology/XenoArtifacts/RandomArtifactSpriteComponent.cs +++ b/Content.Shared/Xenoarchaeology/XenoArtifacts/RandomArtifactSpriteComponent.cs @@ -1,7 +1,7 @@ namespace Content.Shared.Xenoarchaeology.XenoArtifacts; [RegisterComponent] -public sealed class RandomArtifactSpriteComponent : Component +public sealed partial class RandomArtifactSpriteComponent : Component { [DataField("minSprite")] public int MinSprite = 1; diff --git a/Content.Shared/Xenoarchaeology/XenoArtifacts/SharedArtifact.cs b/Content.Shared/Xenoarchaeology/XenoArtifacts/SharedArtifact.cs index b8bd1fd520..f7a69eade3 100644 --- a/Content.Shared/Xenoarchaeology/XenoArtifacts/SharedArtifact.cs +++ b/Content.Shared/Xenoarchaeology/XenoArtifacts/SharedArtifact.cs @@ -13,6 +13,6 @@ public enum SharedArtifactsVisuals : byte /// /// Raised as an instant action event when a sentient artifact activates itself using an action. /// -public sealed class ArtifactSelfActivateEvent : InstantActionEvent +public sealed partial class ArtifactSelfActivateEvent : InstantActionEvent { } diff --git a/Content.Shared/Zombies/ZombieComponent.cs b/Content.Shared/Zombies/ZombieComponent.cs index 125eeaf0bf..7be1254021 100644 --- a/Content.Shared/Zombies/ZombieComponent.cs +++ b/Content.Shared/Zombies/ZombieComponent.cs @@ -14,7 +14,7 @@ using static Content.Shared.Humanoid.HumanoidAppearanceState; namespace Content.Shared.Zombies; [RegisterComponent, NetworkedComponent] -public sealed class ZombieComponent : Component +public sealed partial class ZombieComponent : Component { /// /// The baseline infection chance you have if you are completely nude @@ -60,7 +60,7 @@ public sealed class ZombieComponent : Component /// The role prototype of the zombie antag role /// [DataField("zombieRoleId", customTypeSerializer: typeof(PrototypeIdSerializer))] - public readonly string ZombieRoleId = "Zombie"; + public string ZombieRoleId = "Zombie"; /// /// The EntityName of the humanoid to restore in case of cloning diff --git a/Content.Shared/Zombies/ZombieEvents.cs b/Content.Shared/Zombies/ZombieEvents.cs index c7432e564a..c2089e6a4e 100644 --- a/Content.Shared/Zombies/ZombieEvents.cs +++ b/Content.Shared/Zombies/ZombieEvents.cs @@ -23,4 +23,4 @@ public readonly struct EntityZombifiedEvent /// /// Event raised when a player zombifies themself using the "turn" action /// -public sealed class ZombifySelfActionEvent : InstantActionEvent { }; +public sealed partial class ZombifySelfActionEvent : InstantActionEvent { }; diff --git a/SpaceStation14.sln b/SpaceStation14.sln index 6e0b2f4aa4..2dc4c95508 100644 --- a/SpaceStation14.sln +++ b/SpaceStation14.sln @@ -120,10 +120,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Project Files", "Project Fi RobustToolbox\README.md = RobustToolbox\README.md RobustToolbox\RELEASE-NOTES.md = RobustToolbox\RELEASE-NOTES.md EndProjectSection +EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Content.Replay", "Content.Replay\Content.Replay.csproj", "{A493616C-338D-47B7-8072-A7F14D034D0B}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Robust.Shared.CompNetworkGenerator", "RobustToolbox\Robust.Shared.CompNetworkGenerator\Robust.Shared.CompNetworkGenerator.csproj", "{07CA34A1-1D37-4771-A2E3-495A1044AE0B}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Robust.Serialization.Generator", "RobustToolbox\Robust.Serialization.Generator\Robust.Serialization.Generator.csproj", "{6FBF108E-5CB5-47DE-8D7E-B496ABA9E3E2}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -419,6 +422,14 @@ Global {07CA34A1-1D37-4771-A2E3-495A1044AE0B}.DebugOpt|Any CPU.Build.0 = DebugOpt|Any CPU {07CA34A1-1D37-4771-A2E3-495A1044AE0B}.Tools|Any CPU.ActiveCfg = Tools|Any CPU {07CA34A1-1D37-4771-A2E3-495A1044AE0B}.Tools|Any CPU.Build.0 = Tools|Any CPU + {6FBF108E-5CB5-47DE-8D7E-B496ABA9E3E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6FBF108E-5CB5-47DE-8D7E-B496ABA9E3E2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6FBF108E-5CB5-47DE-8D7E-B496ABA9E3E2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6FBF108E-5CB5-47DE-8D7E-B496ABA9E3E2}.Release|Any CPU.Build.0 = Release|Any CPU + {6FBF108E-5CB5-47DE-8D7E-B496ABA9E3E2}.DebugOpt|Any CPU.ActiveCfg = Debug|Any CPU + {6FBF108E-5CB5-47DE-8D7E-B496ABA9E3E2}.DebugOpt|Any CPU.Build.0 = Debug|Any CPU + {6FBF108E-5CB5-47DE-8D7E-B496ABA9E3E2}.Tools|Any CPU.ActiveCfg = Debug|Any CPU + {6FBF108E-5CB5-47DE-8D7E-B496ABA9E3E2}.Tools|Any CPU.Build.0 = Debug|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -449,6 +460,7 @@ Global {952AAF2A-DF63-4A7D-8094-3453893EBA80} = {83B4CBBA-547A-42F0-A7CD-8A67D93196CE} {A965CB3B-FD31-44AF-8872-85ABA436098D} = {83B4CBBA-547A-42F0-A7CD-8A67D93196CE} {07CA34A1-1D37-4771-A2E3-495A1044AE0B} = {83B4CBBA-547A-42F0-A7CD-8A67D93196CE} + {6FBF108E-5CB5-47DE-8D7E-B496ABA9E3E2} = {83B4CBBA-547A-42F0-A7CD-8A67D93196CE} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {AA37ED9F-F8D6-468E-A101-658AD605B09A}