TechnologyDiskComponent.cs 765 B

123456789101112131415161718192021222324
  1. using Content.Shared.Random;
  2. using Content.Shared.Research.Prototypes;
  3. using Robust.Shared.GameStates;
  4. using Robust.Shared.Prototypes;
  5. namespace Content.Shared.Research.TechnologyDisk.Components;
  6. [RegisterComponent, NetworkedComponent]
  7. [AutoGenerateComponentState]
  8. public sealed partial class TechnologyDiskComponent : Component
  9. {
  10. /// <summary>
  11. /// The recipe that will be added. If null, one will be randomly generated
  12. /// </summary>
  13. [DataField]
  14. [AutoNetworkedField]
  15. public List<ProtoId<LatheRecipePrototype>>? Recipes;
  16. /// <summary>
  17. /// A weighted random prototype for how rare each tier should be.
  18. /// </summary>
  19. [DataField]
  20. public ProtoId<WeightedRandomPrototype> TierWeightPrototype = "TechDiskTierWeights";
  21. }