CatStation/Content.Shared/EntityConditions/EntityConditionPrototype.cs
deltanedas d9d0cd92ae
add nested entity effects+conditions (#42341)
* add nested effect

* add nested condition

* move api to the main systems and improve effect guidebook text gen

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
2026-03-03 15:16:04 +00:00

20 lines
568 B
C#

using Content.Shared.EntityConditions.Conditions;
using Robust.Shared.Prototypes;
namespace Content.Shared.EntityConditions;
/// <summary>
/// A prototype for entity conditions which can be reused via <see cref="NestedCondition"/>.
/// </summary>
[Prototype]
public sealed partial class EntityConditionPrototype : IPrototype
{
[IdDataField]
public string ID { get; private set; } = string.Empty;
/// <summary>
/// The condition of this prototype.
/// </summary>
[DataField(required: true)]
public EntityCondition Condition = default!;
}