Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user