2021-04-10 13:25:44 +02:00
|
|
|
using System.Diagnostics.CodeAnalysis;
|
2021-06-09 22:19:39 +02:00
|
|
|
using Content.Server.NodeContainer.Nodes;
|
2020-06-28 09:23:26 -06:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.NodeContainer
|
2020-06-28 09:23:26 -06:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates and maintains a set of <see cref="Node"/>s.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class NodeContainerComponent : Component
|
2020-06-28 09:23:26 -06:00
|
|
|
{
|
2021-10-16 15:40:21 -05:00
|
|
|
//HACK: THIS BEING readOnly IS A FILTHY HACK AND I HATE IT --moony
|
2023-08-22 18:14:33 -07:00
|
|
|
[DataField("nodes", readOnly: true)] public Dictionary<string, Node> Nodes { get; private set; } = new();
|
2021-04-09 20:47:31 +02:00
|
|
|
|
2022-04-08 17:17:25 -04:00
|
|
|
[DataField("examinable")] public bool Examinable = false;
|
2020-06-28 09:23:26 -06:00
|
|
|
}
|
|
|
|
|
}
|