Move DnaComponent to shared (#35012)
* Move DnaComponent to shared
- Add Using statements to AdminSystem and StationRecordsSystem to point
to Content.Shared.Forensics
* Proper namespacing
* Revert an un-intended change
* Add Networking to DNA Component
* CR - Remove ("dna")
* CR - add back ("dna") tag
This commit is contained in:
@@ -11,6 +11,7 @@ using Content.Server.StationRecords.Systems;
|
|||||||
using Content.Shared.Administration;
|
using Content.Shared.Administration;
|
||||||
using Content.Shared.Administration.Events;
|
using Content.Shared.Administration.Events;
|
||||||
using Content.Shared.CCVar;
|
using Content.Shared.CCVar;
|
||||||
|
using Content.Shared.Forensics.Components;
|
||||||
using Content.Shared.GameTicking;
|
using Content.Shared.GameTicking;
|
||||||
using Content.Shared.Hands.Components;
|
using Content.Shared.Hands.Components;
|
||||||
using Content.Shared.IdentityManagement;
|
using Content.Shared.IdentityManagement;
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ using Content.Shared.Damage.Prototypes;
|
|||||||
using Content.Shared.Drunk;
|
using Content.Shared.Drunk;
|
||||||
using Content.Shared.FixedPoint;
|
using Content.Shared.FixedPoint;
|
||||||
using Content.Shared.Forensics;
|
using Content.Shared.Forensics;
|
||||||
|
using Content.Shared.Forensics.Components;
|
||||||
using Content.Shared.HealthExaminable;
|
using Content.Shared.HealthExaminable;
|
||||||
using Content.Shared.Mobs.Systems;
|
using Content.Shared.Mobs.Systems;
|
||||||
using Content.Shared.Popups;
|
using Content.Shared.Popups;
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
namespace Content.Server.Forensics;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// This component is for mobs that have DNA.
|
|
||||||
/// </summary>
|
|
||||||
[RegisterComponent]
|
|
||||||
public sealed partial class DnaComponent : Component
|
|
||||||
{
|
|
||||||
[DataField("dna"), ViewVariables(VVAccess.ReadWrite)]
|
|
||||||
public string DNA = String.Empty;
|
|
||||||
}
|
|
||||||
@@ -10,6 +10,7 @@ using Content.Shared.Chemistry.Reagent;
|
|||||||
using Content.Shared.Chemistry.Components.SolutionManager;
|
using Content.Shared.Chemistry.Components.SolutionManager;
|
||||||
using Content.Shared.DoAfter;
|
using Content.Shared.DoAfter;
|
||||||
using Content.Shared.Forensics;
|
using Content.Shared.Forensics;
|
||||||
|
using Content.Shared.Forensics.Components;
|
||||||
using Content.Shared.Interaction;
|
using Content.Shared.Interaction;
|
||||||
using Content.Shared.Interaction.Events;
|
using Content.Shared.Interaction.Events;
|
||||||
using Content.Shared.Inventory;
|
using Content.Shared.Inventory;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ using Content.Server.Store.Components;
|
|||||||
using Content.Server.Store.Systems;
|
using Content.Server.Store.Systems;
|
||||||
using Content.Shared.Cuffs.Components;
|
using Content.Shared.Cuffs.Components;
|
||||||
using Content.Shared.Forensics;
|
using Content.Shared.Forensics;
|
||||||
|
using Content.Shared.Forensics.Components;
|
||||||
using Content.Shared.Humanoid;
|
using Content.Shared.Humanoid;
|
||||||
using Content.Shared.Implants;
|
using Content.Shared.Implants;
|
||||||
using Content.Shared.Implants.Components;
|
using Content.Shared.Implants.Components;
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ using System.Diagnostics.CodeAnalysis;
|
|||||||
using Content.Server.Access.Systems;
|
using Content.Server.Access.Systems;
|
||||||
using Content.Server.Forensics;
|
using Content.Server.Forensics;
|
||||||
using Content.Shared.Access.Components;
|
using Content.Shared.Access.Components;
|
||||||
|
using Content.Shared.Forensics.Components;
|
||||||
using Content.Shared.GameTicking;
|
using Content.Shared.GameTicking;
|
||||||
using Content.Shared.Inventory;
|
using Content.Shared.Inventory;
|
||||||
using Content.Shared.PDA;
|
using Content.Shared.PDA;
|
||||||
|
|||||||
13
Content.Shared/Forensics/Components/DnaComponent.cs
Normal file
13
Content.Shared/Forensics/Components/DnaComponent.cs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
using Robust.Shared.GameStates;
|
||||||
|
|
||||||
|
namespace Content.Shared.Forensics.Components;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// This component is for mobs that have DNA.
|
||||||
|
/// </summary>
|
||||||
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||||
|
public sealed partial class DnaComponent : Component
|
||||||
|
{
|
||||||
|
[DataField("dna"), AutoNetworkedField]
|
||||||
|
public string DNA = String.Empty;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user