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

@@ -9,7 +9,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Server.Nutrition.Components
{
[RegisterComponent, Access(typeof(FoodSystem))]
public sealed class FoodComponent : Component
public sealed partial class FoodComponent : Component
{
[DataField("solution")]
public string SolutionName { get; set; } = "food";
@@ -39,7 +39,7 @@ namespace Content.Server.Nutrition.Components
/// If this is set to true, food can only be eaten if you have a stomach with a
/// <see cref="StomachComponent.SpecialDigestible"/> that includes this entity in its whitelist,
/// rather than just being digestible by anything that can eat food.
/// Whitelist the food component to allow eating of normal food.
/// Whitelist the food component to allow eating of normal food.
/// </summary>
[DataField("requiresSpecialDigestion")]
public bool RequiresSpecialDigestion = false;