Add multipart machines system (#35969)
This commit is contained in:
@@ -13,12 +13,6 @@ namespace Content.Server.ParticleAccelerator.Components;
|
||||
[RegisterComponent]
|
||||
public sealed partial class ParticleAcceleratorControlBoxComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether the PA parts have been correctly arranged to make a functional device.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public bool Assembled = false;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the PA is currently set to fire at the console.
|
||||
/// Requires <see cref="Assembled"/> to be true.
|
||||
@@ -40,12 +34,6 @@ public sealed partial class ParticleAcceleratorControlBoxComponent : Component
|
||||
[ViewVariables]
|
||||
public bool Firing = false;
|
||||
|
||||
/// <summary>
|
||||
/// Block re-entrant rescanning.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool CurrentlyRescanning = false;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the PA is currently firing or charging to fire.
|
||||
/// Bounded by <see cref="ParticleAcceleratorPowerState.Standby"/> and <see cref="MaxStrength"/>.
|
||||
@@ -61,48 +49,6 @@ public sealed partial class ParticleAcceleratorControlBoxComponent : Component
|
||||
[ViewVariables]
|
||||
public ParticleAcceleratorPowerState MaxStrength = ParticleAcceleratorPowerState.Level2;
|
||||
|
||||
/// <summary>
|
||||
/// The power supply unit of the assembled particle accelerator.
|
||||
/// Implies the existance of a <see cref="ParticleAcceleratorPowerBoxComponent"/> attached to this entity.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public EntityUid? PowerBox;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the PA is currently firing or charging to fire.
|
||||
/// Implies the existance of a <see cref="ParticleAcceleratorEndCapComponent"/> attached to this entity.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public EntityUid? EndCap;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the PA is currently firing or charging to fire.
|
||||
/// Implies the existance of a <see cref="ParticleAcceleratorFuelChamberComponent"/> attached to this entity.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public EntityUid? FuelChamber;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the PA is currently firing or charging to fire.
|
||||
/// Implies the existance of a <see cref="ParticleAcceleratorEmitterComponent"/> attached to this entity.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public EntityUid? PortEmitter;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the PA is currently firing or charging to fire.
|
||||
/// Implies the existance of a <see cref="ParticleAcceleratorEmitterComponent"/> attached to this entity.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public EntityUid? ForeEmitter;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the PA is currently firing or charging to fire.
|
||||
/// Implies the existance of a <see cref="ParticleAcceleratorEmitterComponent"/> attached to this entity.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public EntityUid? StarboardEmitter;
|
||||
|
||||
/// <summary>
|
||||
/// The amount of power the particle accelerator must be provided with relative to the expected power draw to function.
|
||||
/// </summary>
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Server.ParticleAccelerator.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed partial class ParticleAcceleratorEmitterComponent : Component
|
||||
{
|
||||
[DataField]
|
||||
public EntProtoId EmittedPrototype = "ParticlesProjectile";
|
||||
|
||||
[DataField("emitterType")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public ParticleAcceleratorEmitterType Type = ParticleAcceleratorEmitterType.Fore;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return base.ToString() + $" EmitterType:{Type}";
|
||||
}
|
||||
}
|
||||
|
||||
public enum ParticleAcceleratorEmitterType
|
||||
{
|
||||
Port,
|
||||
Fore,
|
||||
Starboard
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Content.Server.ParticleAccelerator.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed partial class ParticleAcceleratorEndCapComponent : Component
|
||||
{
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Content.Server.ParticleAccelerator.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed partial class ParticleAcceleratorFuelChamberComponent : Component
|
||||
{
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
namespace Content.Server.ParticleAccelerator.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed partial class ParticleAcceleratorPartComponent : Component
|
||||
{
|
||||
[ViewVariables]
|
||||
public EntityUid? Master;
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Content.Server.ParticleAccelerator.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed partial class ParticleAcceleratorPowerBoxComponent : Component
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user