2024-08-01 11:52:27 +03:00
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
2025-06-21 20:51:07 +03:00
|
|
|
namespace Content.Server._CP14.MagicSpellStorage.Components;
|
2024-08-01 11:52:27 +03:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A component that allows you to store spells in items
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent, Access(typeof(CP14SpellStorageSystem))]
|
|
|
|
|
public sealed partial class CP14SpellStorageComponent : Component
|
|
|
|
|
{
|
2025-01-06 03:31:59 +03:00
|
|
|
/// <summary>
|
|
|
|
|
/// Set true when giving starting abilities to creatures in this way
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public bool GrantAccessToSelf = false;
|
|
|
|
|
|
2024-08-01 11:52:27 +03:00
|
|
|
/// <summary>
|
|
|
|
|
/// list of spell prototypes used for initialization.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public List<EntProtoId> Spells = new();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// created after the initialization of spell entities.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public List<EntityUid> SpellEntities = new();
|
|
|
|
|
}
|