mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-23 00:27:50 +03:00
20 lines
495 B
C#
20 lines
495 B
C#
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared._Goobstation.Projectiles.SpawnEntitiesOnHit;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class SpawnEntitiesOnHitComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The prototype ID of the entity to spawn on hit
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public EntProtoId Proto;
|
|
|
|
/// <summary>
|
|
/// The number of entities to spawn when the projectile hits
|
|
/// </summary>
|
|
[DataField]
|
|
public int Amount = 1;
|
|
}
|