ECS computers (#6353)
This commit is contained in:
16
Content.Server/Construction/Components/ComputerComponent.cs
Normal file
16
Content.Server/Construction/Components/ComputerComponent.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.Construction.Components
|
||||
{
|
||||
[RegisterComponent, ComponentProtoName("Computer")]
|
||||
public sealed class ComputerComponent : Component
|
||||
{
|
||||
[ViewVariables]
|
||||
[DataField("board", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||
public string? BoardPrototype;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user