type serializer for computer boards (#6915)
This commit is contained in:
parent
0f1aac396a
commit
47dca34780
|
|
@ -1,14 +1,16 @@
|
|||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Server.Construction.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Used for construction graphs in building computers.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class ComputerBoardComponent : Component
|
||||
{
|
||||
[ViewVariables]
|
||||
[DataField("prototype")]
|
||||
[DataField("prototype", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
public string? Prototype { get; private set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue