AutoImplantComponent.cs 565 B

1234567891011121314151617
  1. using Robust.Shared.Prototypes;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
  3. namespace Content.Server.Implants.Components;
  4. /// <summary>
  5. /// Implants an entity automatically on MapInit.
  6. /// </summary>
  7. [RegisterComponent]
  8. public sealed partial class AutoImplantComponent : Component
  9. {
  10. /// <summary>
  11. /// List of implants to inject.
  12. /// </summary>
  13. [DataField("implants", required: true, customTypeSerializer: typeof(PrototypeIdListSerializer<EntityPrototype>))]
  14. public List<string> Implants = new();
  15. }