CatStation/Content.Shared/EntityEffects/EntityEffectOnMapInitComponent.cs
SlamBamActionman 1b7bb5fefc
Add EntitySpawnVariationPass as an EntityEffect (#44436)
* Initial pass on making graffiti into an entity effect

* Refine code to not consider the entire AABB and eligible tiles

* Rename to OnMapInit,

* Change default values

* Add missing summary

* Update into using separate function, entitytable
2026-08-15 09:13:57 +00:00

15 lines
497 B
C#

namespace Content.Shared.EntityEffects;
/// <summary>
/// Applies a set of EntityEffects to the entity upon map initialization.
/// <remarks>Useful for e.g. station spawning.</remarks>
/// </summary>
[RegisterComponent]
public sealed partial class EntityEffectOnMapInitComponent : Component
{
/// <summary>
/// Effects that should be applied upon the map being initiated.
/// </summary>
[DataField(required: true)]
public EntityEffect[] Effects { get; set; } = default!;
}