Files
crystall-punk-14/Content.Shared/_CP14/Knowledge/Components/CP14KnowledgeLearningSourceComponent.cs

18 lines
601 B
C#
Raw Normal View History

using Content.Shared._CP14.Knowledge.Prototypes;
using Robust.Shared.Prototypes;
namespace Content.Shared._CP14.Knowledge.Components;
/// <summary>
/// Allows new knowledge to be learnt through interactions with an object.
/// </summary>
[RegisterComponent, Access(typeof(SharedCP14KnowledgeSystem))]
public sealed partial class CP14KnowledgeLearningSourceComponent : Component
{
[DataField, ViewVariables(VVAccess.ReadOnly)]
public HashSet<ProtoId<CP14KnowledgePrototype>> Knowledges { get; private set; } = new();
[DataField]
public TimeSpan DoAfter = TimeSpan.FromSeconds(5f);
}