* RPED * sound effect * wires must be open finished me appy slices yum yum * Update Resources/Audio/Items/attributions.yml Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com> * Update attributions.yml Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
28 lines
850 B
C#
28 lines
850 B
C#
using Robust.Shared.Containers;
|
|
using Robust.Shared.Prototypes;
|
|
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; }
|
|
|
|
[ViewVariables]
|
|
public Container BoardContainer = default!;
|
|
[ViewVariables]
|
|
public Container PartContainer = default!;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The different types of scaling that are available for machine upgrades
|
|
/// </summary>
|
|
public enum MachineUpgradeScalingType : byte
|
|
{
|
|
Linear,
|
|
Exponential
|
|
}
|
|
}
|