Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -9,7 +9,7 @@ namespace Content.Server.Power.Generation.Teg;
|
||||
/// <seealso cref="TegSystem"/>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(TegSystem))]
|
||||
public sealed class TegCirculatorComponent : Component
|
||||
public sealed partial class TegCirculatorComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The difference between the inlet and outlet pressure at the start of the previous tick.
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/// <seealso cref="TegSystem"/>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(TegSystem))]
|
||||
public sealed class TegGeneratorComponent : Component
|
||||
public sealed partial class TegGeneratorComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// When transferring energy from the hot to cold side,
|
||||
|
||||
@@ -117,7 +117,7 @@ public sealed class TegNodeGroup : BaseNodeGroup
|
||||
/// <seealso cref="TegNodeGroup"/>
|
||||
/// <seealso cref="TegGeneratorComponent"/>
|
||||
[DataDefinition]
|
||||
public sealed class TegNodeGenerator : Node
|
||||
public sealed partial class TegNodeGenerator : Node
|
||||
{
|
||||
public override IEnumerable<Node> GetReachableNodes(
|
||||
TransformComponent xform,
|
||||
@@ -169,7 +169,7 @@ public sealed class TegNodeGenerator : Node
|
||||
/// <seealso cref="TegNodeGroup"/>
|
||||
/// <seealso cref="TegCirculatorComponent"/>
|
||||
[DataDefinition]
|
||||
public sealed class TegNodeCirculator : Node
|
||||
public sealed partial class TegNodeCirculator : Node
|
||||
{
|
||||
public override IEnumerable<Node> GetReachableNodes(
|
||||
TransformComponent xform,
|
||||
|
||||
Reference in New Issue
Block a user