2022-02-03 10:04:46 +11:00
|
|
|
|
using Robust.Shared.Containers;
|
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
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")]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial 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-11-14 11:36:13 -08:00
|
|
|
|
[ViewVariables]
|
2022-02-03 10:04:46 +11:00
|
|
|
|
public Container BoardContainer = default!;
|
2022-11-14 11:36:13 -08:00
|
|
|
|
[ViewVariables]
|
2022-02-03 10:04:46 +11:00
|
|
|
|
public Container PartContainer = default!;
|
2020-12-03 22:49:00 +01:00
|
|
|
|
}
|
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
|
|
|
|
|
|
}
|
2020-12-03 22:49:00 +01:00
|
|
|
|
}
|