Predict doors and airlocks (#25419)
* predict doors and airlocks * prying, too * ack * eek
This commit is contained in:
@@ -8,36 +8,43 @@ namespace Content.Shared.Doors.Components;
|
||||
/// Companion component to DoorComponent that handles bolt-specific behavior.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
[Access(typeof(SharedDoorBoltSystem))]
|
||||
[Access(typeof(SharedDoorSystem))]
|
||||
[AutoGenerateComponentState]
|
||||
public sealed partial class DoorBoltComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Sound to play when the bolts on the airlock go up.
|
||||
/// </summary>
|
||||
[DataField("boltUpSound"), ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public SoundSpecifier BoltUpSound = new SoundPathSpecifier("/Audio/Machines/boltsup.ogg");
|
||||
|
||||
/// <summary>
|
||||
/// Sound to play when the bolts on the airlock go down.
|
||||
/// </summary>
|
||||
[DataField("boltDownSound"), ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public SoundSpecifier BoltDownSound = new SoundPathSpecifier("/Audio/Machines/boltsdown.ogg");
|
||||
|
||||
/// <summary>
|
||||
/// Whether the door bolts are currently deployed.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField, AutoNetworkedField]
|
||||
public bool BoltsDown;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the bolt lights are currently enabled.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField, AutoNetworkedField]
|
||||
public bool BoltLightsEnabled = true;
|
||||
|
||||
/// <summary>
|
||||
/// True if the bolt wire is cut, which will force the airlock to always be bolted as long as it has power.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField, AutoNetworkedField]
|
||||
public bool BoltWireCut;
|
||||
|
||||
/// <summary>
|
||||
/// Used for prediction. true if the door has power.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public bool Powered;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user