Skip to content

Commit

Permalink
Revert "namespaces changes for everythin"
Browse files Browse the repository at this point in the history
This reverts commit 221ee3e.
  • Loading branch information
TokenStyle committed Nov 22, 2024
1 parent 221ee3e commit 438b01b
Show file tree
Hide file tree
Showing 30 changed files with 43 additions and 52 deletions.
5 changes: 2 additions & 3 deletions Content.Client/_CorvaxNext/Body/BodySystem.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
using Content.Shared.Body.Systems;
using Content.Shared.Body.Systems;
using Content.Shared.Body.Part;
using Content.Shared.Humanoid;
using Content.Shared.Humanoid.Markings;
using Robust.Client.GameObjects;
using Robust.Shared.Utility;
using Content.Shared.Body.Components;
using Content.Shared._CorvaxNext.Surgery.Body.Part;

namespace Content.Client._CorvaxNext.Body.Systems;
namespace Content.Client.Body.Systems;

public sealed class BodySystem : SharedBodySystem
{
Expand Down
1 change: 0 additions & 1 deletion Content.Server/Body/Systems/BodySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
using Robust.Shared.Audio;
using Robust.Shared.Timing;
using System.Numerics;
using Content.Shared._CorvaxNext.Surgery.Body.Part;

namespace Content.Server.Body.Systems;

Expand Down
5 changes: 3 additions & 2 deletions Content.Server/_CorvaxNext/Surgery/SurgerySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
using Content.Server.Popups;
using Content.Shared.Damage;
using Content.Shared.Interaction;
using Content.Shared.Medical.Surgery.Conditions;
using Content.Shared.Medical.Surgery.Effects.Step;
using Content.Shared.Eye.Blinding.Components;
using Content.Shared.Eye.Blinding.Systems;
using Content.Shared.Prototypes;
Expand All @@ -17,9 +19,8 @@
using Content.Shared._CorvaxNext.Surgery;
using Content.Shared._CorvaxNext.Surgery.Effects.Step;
using Content.Shared._CorvaxNext.Surgery.Tools;
using Content.Shared._CorvaxNext.Surgery.Conditions;
using Content.Shared._CorvaxNext.Surgery.Effects.Step;
using Content.Shared.Bed.Sleep;
using Content.Shared.Medical.Surgery;

namespace Content.Server._CorvaxNext.Surgery;

Expand Down
1 change: 0 additions & 1 deletion Content.Shared/Body/Systems/SharedBodySystem.Body.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Linq;
using System.Numerics;
using Content.Shared._CorvaxNext.Targeting;
using Content.Shared._CorvaxNext.Surgery.Body.Part;
using Content.Shared.Body.Components;
using Content.Shared.Body.Organ;
using Content.Shared.Body.Part;
Expand Down
2 changes: 0 additions & 2 deletions Content.Shared/Body/Systems/SharedBodySystem.Parts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
using Content.Shared.Movement.Components;
using Content.Shared.Random;
using Content.Shared._CorvaxNext.Targeting;
using Content.Shared._CorvaxNext.Surgery.Body.Part;
using Content.Shared._CorvaxNext.Surgery.Body.Events;
using Robust.Shared.Containers;
using Robust.Shared.Utility;
using System.Diagnostics.CodeAnalysis;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Content.Shared._CorvaxNext.Surgery.Body.Events;
namespace Content.Shared.Body.Events;

/// <summary>
/// Raised on an entity when attempting to remove a body part.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.GameStates;

namespace Content.Shared._CorvaxNext.Surgery.Body.Part;
namespace Content.Shared.Body.Part;

[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
public sealed partial class BodyPartAppearanceComponent : Component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
using System.Diagnostics;
using System.Linq;
using Content.Shared._CorvaxNext.Surgery.Body.Part;
using Content.Shared.Body.Components;
using Content.Shared.Body.Systems;
using Content.Shared.Body.Part;
using Content.Shared.Humanoid;
using Content.Shared.Humanoid.Markings;
using Content.Shared.Humanoid.Prototypes;
using Robust.Shared.Prototypes;
using Robust.Shared.Utility;
using Robust.Shared.GameObjects;

// You can't have different namespaces when using partial keyword and instantiating
namespace Content.Shared.Body.Systems;

public partial class SharedBodySystem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
using Content.Shared.Damage.Prototypes;
using Content.Shared.FixedPoint;

// You can't have different namespaces when using partial keyword and instantiating
// ReSharper disable once CheckNamespace
namespace Content.Shared.Body.Systems;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Robust.Shared.GameStates;

namespace Content.Shared._CorvaxNext.Surgery.Conditions;
namespace Content.Shared.Medical.Surgery.Conditions;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgeryCloseIncisionConditionComponent : Component;
public sealed partial class SurgeryCloseIncisionConditionComponent : Component;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Robust.Shared.GameStates;

namespace Content.Shared._CorvaxNext.Surgery.Conditions;
namespace Content.Shared.Medical.Surgery.Conditions;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgeryLarvaConditionComponent : Component;
public sealed partial class SurgeryLarvaConditionComponent : Component;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;

namespace Content.Shared._CorvaxNext.Surgery.Conditions;
namespace Content.Shared.Medical.Surgery.Conditions;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgeryMarkingConditionComponent : Component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Robust.Shared.GameStates;

namespace Content.Shared._CorvaxNext.Surgery.Conditions;
namespace Content.Shared.Medical.Surgery.Conditions;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgeryOperatingTableConditionComponent : Component;
public sealed partial class SurgeryOperatingTableConditionComponent : Component;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;

namespace Content.Shared._CorvaxNext.Surgery.Conditions;
namespace Content.Shared.Medical.Surgery.Conditions;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgeryOrganConditionComponent : Component
Expand All @@ -15,4 +15,4 @@ public sealed partial class SurgeryOrganConditionComponent : Component

[DataField]
public bool Reattaching;
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Content.Shared.Body.Part;
using Robust.Shared.GameStates;

namespace Content.Shared._CorvaxNext.Surgery.Conditions;
namespace Content.Shared.Medical.Surgery.Conditions;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgeryPartConditionComponent : Component
Expand All @@ -14,4 +14,4 @@ public sealed partial class SurgeryPartConditionComponent : Component

[DataField]
public bool Inverse;
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Robust.Shared.GameStates;

namespace Content.Shared._CorvaxNext.Surgery.Conditions;
namespace Content.Shared.Medical.Surgery.Conditions;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgeryPartPresentConditionComponent : Component;
public sealed partial class SurgeryPartPresentConditionComponent : Component;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Content.Shared.Body.Part;
using Robust.Shared.GameStates;

namespace Content.Shared._CorvaxNext.Surgery.Conditions;
namespace Content.Shared.Medical.Surgery.Conditions;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgeryPartRemovedConditionComponent : Component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Content.Shared.Body.Part;

namespace Content.Shared._CorvaxNext.Surgery.Conditions;
namespace Content.Shared.Medical.Surgery.Conditions;

/// <summary>
/// Raised on the entity that is receiving surgery.
/// </summary>
[ByRefEvent]
public record struct SurgeryValidEvent(EntityUid Body, EntityUid Part, bool Cancelled = false, BodyPartType PartType = default, BodyPartSymmetry? Symmetry = default);
public record struct SurgeryValidEvent(EntityUid Body, EntityUid Part, bool Cancelled = false, BodyPartType PartType = default, BodyPartSymmetry? Symmetry = default);
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Content.Shared.Body.Part;
using Robust.Shared.GameStates;

namespace Content.Shared._CorvaxNext.Surgery.Conditions;
namespace Content.Shared.Medical.Surgery.Conditions;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgeryWoundedConditionComponent : Component;
public sealed partial class SurgeryWoundedConditionComponent : Component;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Content.Shared._CorvaxNext.Surgery.Effects.Complete;
namespace Content.Shared.Medical.Surgery.Effects.Complete;

/// <summary>
/// Raised on the entity that received the surgery.
/// </summary>
[ByRefEvent]
public record struct SurgeryCompletedEvent;
public record struct SurgeryCompletedEvent;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Robust.Shared.GameStates;

namespace Content.Shared._CorvaxNext.Surgery.Effects.Complete;
namespace Content.Shared.Medical.Surgery.Effects.Complete;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgeryRemoveLarvaComponent : Component;
public sealed partial class SurgeryRemoveLarvaComponent : Component;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Content.Shared.Damage;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared._CorvaxNext.Surgery.Effects.Step;
namespace Content.Shared.Medical.Surgery.Effects.Step;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgerySpecialDamageChangeEffectComponent : Component
Expand All @@ -11,4 +11,4 @@ public sealed partial class SurgerySpecialDamageChangeEffectComponent : Componen

[DataField]
public bool IsConsumable;
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using Content.Shared.Medical.Surgery.Conditions;
using Content.Shared.Medical.Surgery.Steps;
using Content.Shared.Humanoid;
using Content.Shared.Humanoid.Markings;
using Content.Shared.Bed.Sleep;
Expand All @@ -14,15 +16,13 @@
using Content.Shared.Popups;
using Robust.Shared.Prototypes;
using System.Linq;
using Content.Shared._CorvaxNext.Surgery.Body.Part;
using Content.Shared._CorvaxNext.Surgery.Body.Organs;
using Content.Shared._CorvaxNext.Surgery.Body.Events;
using Content.Shared._CorvaxNext.Surgery.Effects.Step;
using Content.Shared._CorvaxNext.Surgery.Steps;
using Content.Shared._CorvaxNext.Surgery.Steps.Parts;
using Content.Shared._CorvaxNext.Surgery.Conditions;
using Content.Shared._CorvaxNext.Surgery.Tools;
using Content.Shared.Containers.ItemSlots;
using Content.Shared.Medical.Surgery;

namespace Content.Shared._CorvaxNext.Surgery;

Expand Down
4 changes: 2 additions & 2 deletions Content.Shared/_CorvaxNext/Surgery/SharedSurgerySystem.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Linq;
using Content.Shared._CorvaxNext.Surgery.Steps.Parts;
using Content.Shared._CorvaxNext.Surgery.Conditions;
using Content.Shared._CorvaxNext.Surgery.Steps;
using Content.Shared.Medical.Surgery.Conditions;
using Content.Shared.Body.Systems;
using Content.Shared.Medical.Surgery.Steps;
using Content.Shared.Body.Part;
using Content.Shared.Damage;
using Content.Shared.Containers.ItemSlots;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Robust.Shared.GameStates;

namespace Content.Shared._CorvaxNext.Surgery.Steps;
namespace Content.Shared.Medical.Surgery.Steps;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgeryAddPartStepComponent : Component;
public sealed partial class SurgeryAddPartStepComponent : Component;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Robust.Shared.GameStates;

namespace Content.Shared._CorvaxNext.Surgery.Steps;
namespace Content.Shared.Medical.Surgery.Steps;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgeryAffixOrganStepComponent : Component;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Robust.Shared.GameStates;

namespace Content.Shared._CorvaxNext.Surgery.Steps;
namespace Content.Shared.Medical.Surgery.Steps;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgeryAffixPartStepComponent : Component;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Content.Shared.Humanoid;
using Robust.Shared.GameStates;

namespace Content.Shared._CorvaxNext.Surgery.Steps;
namespace Content.Shared.Medical.Surgery.Steps;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgeryRemoveMarkingStepComponent : Component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Robust.Shared.GameStates;

namespace Content.Shared._CorvaxNext.Surgery.Steps;
namespace Content.Shared.Medical.Surgery.Steps;

[RegisterComponent, NetworkedComponent]
public sealed partial class SurgeryRepeatableStepComponent : Component;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Content.Shared.Damage;

namespace Content.Shared._CorvaxNext.Surgery;
namespace Content.Shared.Medical.Surgery;

/// <summary>
/// Raised on the target entity.
Expand Down

0 comments on commit 438b01b

Please sign in to comment.