Files
tbd-station-14/Content.Server/Construction/Components/MachineComponent.cs
2022-02-03 10:04:46 +11:00

19 lines
675 B
C#

using Robust.Shared.Containers;
using Robust.Shared.GameObjects;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Construction.Components
{
[RegisterComponent, ComponentProtoName("Machine")]
public sealed class MachineComponent : Component
{
[DataField("board", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string? BoardPrototype { get; private set; }
public Container BoardContainer = default!;
public Container PartContainer = default!;
}
}