1
0

RandomHumanoidSpawnerComponent.cs 608 B

12345678910111213141516
  1. using Content.Shared.Humanoid.Prototypes;
  2. using Robust.Shared.Prototypes;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  4. namespace Content.Server.Humanoid.Components;
  5. /// <summary>
  6. /// This is added to a marker entity in order to spawn a randomized
  7. /// humanoid ingame.
  8. /// </summary>
  9. [RegisterComponent, EntityCategory("Spawner")]
  10. public sealed partial class RandomHumanoidSpawnerComponent : Component
  11. {
  12. [DataField("settings", customTypeSerializer: typeof(PrototypeIdSerializer<RandomHumanoidSettingsPrototype>))]
  13. public string? SettingsPrototypeId;
  14. }