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

@@ -40,9 +40,9 @@ namespace Content.Server.GameObjects.Components.Nutrition
private string _useSound;
[ViewVariables]
private bool _defaultToOpened;
[ViewVariables]
[ViewVariables(VVAccess.ReadWrite)]
public ReagentUnit TransferAmount { get; private set; } = ReagentUnit.New(2);
[ViewVariables]
[ViewVariables(VVAccess.ReadWrite)]
public bool Opened { get; protected set; }
[ViewVariables]
public bool Empty => _contents.CurrentVolume.Float() <= 0;