Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -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
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed class ImplantedComponent : Component
|
||||
public sealed partial class ImplantedComponent : Component
|
||||
{
|
||||
public Container ImplantContainer = default!;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Content.Shared.Implants.Components;
|
||||
/// </summary>
|
||||
//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";
|
||||
|
||||
@@ -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<RadioChannelPrototype>))]
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Content.Shared.Implants.Components;
|
||||
/// They're added and removed with implanters
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed class SubdermalImplantComponent : Component
|
||||
public sealed partial class SubdermalImplantComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Used where you want the implant to grant the owner an instant action.
|
||||
@@ -37,12 +37,12 @@ public sealed class SubdermalImplantComponent : Component
|
||||
/// <summary>
|
||||
/// Used for opening the storage implant via action.
|
||||
/// </summary>
|
||||
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
|
||||
/// <summary>
|
||||
/// Used for triggering trigger events on the implant via action
|
||||
/// </summary>
|
||||
public sealed class ActivateImplantEvent : InstantActionEvent
|
||||
public sealed partial class ActivateImplantEvent : InstantActionEvent
|
||||
{
|
||||
|
||||
}
|
||||
@@ -58,12 +58,12 @@ public sealed class ActivateImplantEvent : InstantActionEvent
|
||||
/// <summary>
|
||||
/// Used for opening the uplink implant via action.
|
||||
/// </summary>
|
||||
public sealed class OpenUplinkImplantEvent : InstantActionEvent
|
||||
public sealed partial class OpenUplinkImplantEvent : InstantActionEvent
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public sealed class UseDnaScramblerImplantEvent : InstantActionEvent
|
||||
public sealed partial class UseDnaScramblerImplantEvent : InstantActionEvent
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Content.Shared.Implants.Components;
|
||||
/// Triggers implants when the action is pressed
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed class TriggerImplantActionComponent : Component
|
||||
public sealed partial class TriggerImplantActionComponent : Component
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user