Refactor serialization copying to use source generators (#19412)

This commit is contained in:
DrSmugleaf
2023-08-22 18:14:33 -07:00
committed by GitHub
parent 08b43990ab
commit a88e747a0b
1737 changed files with 2532 additions and 2521 deletions

View File

@@ -6,7 +6,7 @@ namespace Content.Server.Kitchen.Components;
/// Attached to a microwave that is currently in the process of cooking
/// </summary>
[RegisterComponent]
public sealed class ActiveMicrowaveComponent : Component
public sealed partial class ActiveMicrowaveComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
public float CookTimeRemaining;

View File

@@ -8,7 +8,7 @@ namespace Content.Server.Kitchen.Components
/// </summary>
[RegisterComponent]
[Access(typeof(ReagentGrinderSystem))]
public sealed class ExtractableComponent : Component
public sealed partial class ExtractableComponent : Component
{
[DataField("juiceSolution")]
public Solution? JuiceSolution;

View File

@@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Server.Kitchen.Components
{
[RegisterComponent]
public sealed class MicrowaveComponent : Component
public sealed partial class MicrowaveComponent : Component
{
[DataField("cookTimeMultiplier"), ViewVariables(VVAccess.ReadWrite)]
public float CookTimeMultiplier = 1;

View File

@@ -13,7 +13,7 @@ namespace Content.Server.Kitchen.Components
/// it contained, juice an apple and get "apple juice".
/// </summary>
[Access(typeof(ReagentGrinderSystem)), RegisterComponent]
public sealed class ReagentGrinderComponent : Component
public sealed partial class ReagentGrinderComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
public int StorageMaxEntities = 6;
@@ -52,7 +52,7 @@ namespace Content.Server.Kitchen.Components
}
[Access(typeof(ReagentGrinderSystem)), RegisterComponent]
public sealed class ActiveReagentGrinderComponent : Component
public sealed partial class ActiveReagentGrinderComponent : Component
{
/// <summary>
/// Remaining time until the grinder finishes grinding/juicing.

View File

@@ -5,7 +5,7 @@ namespace Content.Server.Kitchen.Components;
/// are otherwise sharp for some purpose.
/// </summary>
[RegisterComponent]
public sealed class SharpComponent : Component
public sealed partial class SharpComponent : Component
{
// TODO just make this a tool type.
public HashSet<EntityUid> Butchering = new();