Files

28 lines
858 B
C#
Raw Permalink Normal View History

2022-02-03 10:04:46 +11:00
using Robust.Shared.Containers;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
2021-06-09 22:19:39 +02:00
namespace Content.Server.Construction.Components
{
2022-02-03 10:04:46 +11:00
[RegisterComponent, ComponentProtoName("Machine")]
public sealed partial class MachineComponent : Component
{
2022-02-03 10:04:46 +11:00
[DataField("board", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string? BoardPrototype { get; private set; }
[ViewVariables]
2022-02-03 10:04:46 +11:00
public Container BoardContainer = default!;
[ViewVariables]
2022-02-03 10:04:46 +11:00
public Container PartContainer = default!;
}
2022-10-22 18:38:57 -04:00
/// <summary>
/// The different types of scaling that are available for machine upgrades
/// </summary>
public enum MachineUpgradeScalingType : byte
{
Linear,
Exponential
}
}