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