Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -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
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
namespace Content.Server.Instruments;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed class SwappableInstrumentComponent : Component
|
||||
public sealed partial class SwappableInstrumentComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Used to store the different instruments that can be swapped between.
|
||||
|
||||
Reference in New Issue
Block a user