6
StarHorizon_Public/Content.Server/Humanoid/Components/RandomHumanoidSpawnerComponent.cs
2025-11-12 10:55:00 +03:00

20 lines
716 B
C#

using Content.Shared.Humanoid.Prototypes;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Humanoid.Components;
/// <summary>
/// This is added to a marker entity in order to spawn a randomized
/// humanoid ingame.
/// </summary>
[RegisterComponent, EntityCategory("Spawner")]
public sealed partial class RandomHumanoidSpawnerComponent : Component
{
[DataField("settings", customTypeSerializer: typeof(PrototypeIdSerializer<RandomHumanoidSettingsPrototype>))]
public string? SettingsPrototypeId;
// Frontier: entity to use (e.g. in storage fills)
public EntityUid SpawnedId = EntityUid.Invalid;
}