ProduceMaterialExtractorComponent.cs 965 B

12345678910111213141516171819202122232425262728293031
  1. using Content.Shared.Chemistry.Reagent;
  2. using Content.Shared.Materials;
  3. using Robust.Shared.Audio;
  4. using Robust.Shared.Prototypes;
  5. namespace Content.Server.Materials.Components;
  6. /// <summary>
  7. /// This is used for a machine that turns produce into a specified material.
  8. /// </summary>
  9. [RegisterComponent, Access(typeof(ProduceMaterialExtractorSystem))]
  10. public sealed partial class ProduceMaterialExtractorComponent : Component
  11. {
  12. /// <summary>
  13. /// The material that produce is converted into
  14. /// </summary>
  15. [DataField]
  16. public ProtoId<MaterialPrototype> ExtractedMaterial = "Biomass";
  17. /// <summary>
  18. /// List of reagents that determines how much material is yielded from a produce.
  19. /// </summary>
  20. [DataField]
  21. public List<ProtoId<ReagentPrototype>> ExtractionReagents = new()
  22. {
  23. "Nutriment"
  24. };
  25. [DataField]
  26. public SoundSpecifier? ExtractSound = new SoundPathSpecifier("/Audio/Effects/waterswirl.ogg");
  27. }