mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 08:07:28 +00:00
* LockVisualizer
* Fix state
* Clean some code
* Make it component, fix tests fail
* Fix for StateUnlocked
Now it is possible to manually set the unlocked state and it will work!
* Optimize LockVisualizer, add check for unlocked state
* No todo I guess
(cherry picked from commit c7870882f6)
21 lines
625 B
C#
21 lines
625 B
C#
namespace Content.Client.Lock.Visualizers;
|
|
|
|
[RegisterComponent]
|
|
[Access(typeof(LockVisualizerSystem))]
|
|
public sealed partial class LockVisualsComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The RSI state used for the lock indicator while the entity is locked.
|
|
/// </summary>
|
|
[DataField("stateLocked")]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public string? StateLocked = "locked";
|
|
|
|
/// <summary>
|
|
/// The RSI state used for the lock indicator entity is unlocked.
|
|
/// </summary>
|
|
[DataField("stateUnlocked")]
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public string? StateUnlocked = "unlocked";
|
|
}
|