ninja 2 electric boogaloo (#15534)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
17
Content.Server/Implants/Components/AutoImplantComponent.cs
Normal file
17
Content.Server/Implants/Components/AutoImplantComponent.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||||
|
||||
namespace Content.Server.Implants.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Implants an entity automatically on MapInit.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed partial class AutoImplantComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// List of implants to inject.
|
||||
/// </summary>
|
||||
[DataField("implants", required: true, customTypeSerializer: typeof(PrototypeIdListSerializer<EntityPrototype>))]
|
||||
public List<string> Implants = new();
|
||||
}
|
||||
Reference in New Issue
Block a user