2022-02-03 10:04:46 +11:00
|
|
|
|
using Robust.Shared.Containers;
|
2020-12-03 22:49:00 +01:00
|
|
|
|
using Robust.Shared.GameObjects;
|
2022-02-03 10:04:46 +11:00
|
|
|
|
using Robust.Shared.Prototypes;
|
2021-03-05 01:08:38 +01:00
|
|
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
2022-02-03 10:04:46 +11:00
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2020-12-03 22:49:00 +01:00
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
|
namespace Content.Server.Construction.Components
|
2020-12-03 22:49:00 +01:00
|
|
|
|
{
|
2022-02-03 10:04:46 +11:00
|
|
|
|
[RegisterComponent, ComponentProtoName("Machine")]
|
|
|
|
|
|
public sealed class MachineComponent : Component
|
2020-12-03 22:49:00 +01:00
|
|
|
|
{
|
2022-02-03 10:04:46 +11:00
|
|
|
|
[DataField("board", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
2021-03-16 15:50:20 +01:00
|
|
|
|
public string? BoardPrototype { get; private set; }
|
2020-12-03 22:49:00 +01:00
|
|
|
|
|
2022-02-03 10:04:46 +11:00
|
|
|
|
public Container BoardContainer = default!;
|
|
|
|
|
|
public Container PartContainer = default!;
|
2020-12-03 22:49:00 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|