1
0

ProduceComponent.cs 867 B

123456789101112131415161718192021222324
  1. using Content.Server.Botany.Systems;
  2. using Content.Shared.Botany.Components;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  4. namespace Content.Server.Botany.Components;
  5. [RegisterComponent]
  6. [Access(typeof(BotanySystem))]
  7. public sealed partial class ProduceComponent : SharedProduceComponent
  8. {
  9. [DataField("targetSolution")] public string SolutionName { get; set; } = "food";
  10. /// <summary>
  11. /// Seed data used to create a <see cref="SeedComponent"/> when this produce has its seeds extracted.
  12. /// </summary>
  13. [DataField]
  14. public SeedData? Seed;
  15. /// <summary>
  16. /// Seed data used to create a <see cref="SeedComponent"/> when this produce has its seeds extracted.
  17. /// </summary>
  18. [DataField(customTypeSerializer: typeof(PrototypeIdSerializer<SeedPrototype>))]
  19. public string? SeedId;
  20. }