Makes more fields VV (#2026)

* Some more VV

* Fixed build & some more gun vvs

* Added VendingMachine Inventory & Items
This commit is contained in:
Exp
2020-09-08 13:30:22 +02:00
committed by GitHub
parent cdf42cf880
commit 5120627ca2
28 changed files with 82 additions and 18 deletions

View File

@@ -36,6 +36,7 @@ namespace Content.Server.GameObjects.Components.Doors
{
public override string Name => "Door";
[ViewVariables]
private DoorState _state = DoorState.Closed;
public virtual DoorState State
@@ -45,8 +46,10 @@ namespace Content.Server.GameObjects.Components.Doors
}
protected float OpenTimeCounter;
[ViewVariables(VVAccess.ReadWrite)]
protected bool AutoClose = true;
protected const float AutoCloseDelay = 5;
[ViewVariables(VVAccess.ReadWrite)]
protected float CloseSpeed = AutoCloseDelay;
private CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource();
@@ -59,11 +62,12 @@ namespace Content.Server.GameObjects.Components.Doors
private const int DoorCrushDamage = 15;
private const float DoorStunTime = 5f;
[ViewVariables(VVAccess.ReadWrite)]
protected bool Safety = true;
[ViewVariables] private bool _occludes;
[ViewVariables(VVAccess.ReadWrite)] private bool _occludes;
[ViewVariables]
[ViewVariables(VVAccess.ReadWrite)]
public bool IsWeldedShut
{
get => _isWeldedShut;