2023-07-13 12:23:52 +02:00
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Construction.NodeEntities;
|
|
|
|
|
|
|
|
|
|
[UsedImplicitly]
|
|
|
|
|
[DataDefinition]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class StaticNodeEntity : IGraphNodeEntity
|
2023-07-13 12:23:52 +02:00
|
|
|
{
|
|
|
|
|
[DataField("id", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2023-08-22 18:14:33 -07:00
|
|
|
public string? Id { get; private set; }
|
2023-07-13 12:23:52 +02:00
|
|
|
|
|
|
|
|
public StaticNodeEntity()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public StaticNodeEntity(string id)
|
|
|
|
|
{
|
|
|
|
|
Id = id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string? GetId(EntityUid? uid, EntityUid? userUid, GraphNodeEntityArgs args)
|
|
|
|
|
{
|
|
|
|
|
return Id;
|
|
|
|
|
}
|
|
|
|
|
}
|