2023-04-26 13:51:48 +10:00
|
|
|
using Content.Server.Explosion.EntitySystems;
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Explosion.Components;
|
|
|
|
|
|
2025-03-12 06:31:33 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Spawns a protoype when triggered.
|
|
|
|
|
/// </summary>
|
2023-04-26 13:51:48 +10:00
|
|
|
[RegisterComponent, Access(typeof(TriggerSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class SpawnOnTriggerComponent : Component
|
2023-04-26 13:51:48 +10:00
|
|
|
{
|
2025-03-12 06:31:33 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// The prototype to spawn.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField(required: true)]
|
|
|
|
|
public EntProtoId Proto = string.Empty;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Use MapCoordinates for spawning?
|
|
|
|
|
/// Set to true if you don't want the new entity parented to the spawner.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public bool mapCoords;
|
2023-04-26 13:51:48 +10:00
|
|
|
}
|