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

@@ -20,6 +20,7 @@ using Robust.Shared.Localization;
using Robust.Shared.Map;
using Robust.Shared.Serialization;
using Robust.Shared.Utility;
using Robust.Shared.ViewVariables;
namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
{
@@ -50,8 +51,10 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
private Stack<IEntity> _spawnedAmmo;
private Container _ammoContainer;
[ViewVariables]
private BallisticCaliber _caliber;
[ViewVariables]
private string _fillPrototype;
private int _unspawnedCount;

View File

@@ -18,6 +18,7 @@ using Robust.Shared.Localization;
using Robust.Shared.Map;
using Robust.Shared.Serialization;
using Robust.Shared.Utility;
using Robust.Shared.ViewVariables;
namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
{
@@ -47,8 +48,10 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
private Stack<IEntity> _spawnedAmmo;
private Container _ammoContainer;
[ViewVariables]
private BallisticCaliber _caliber;
[ViewVariables]
private string _fillPrototype;
private int _unspawnedCount;

View File

@@ -19,6 +19,7 @@ using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Robust.Shared.Map;
using Robust.Shared.Serialization;
using Robust.Shared.ViewVariables;
namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
{
@@ -30,8 +31,10 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
public override string Name => "RevolverBarrel";
public override uint? NetID => ContentNetIDs.REVOLVER_BARREL;
[ViewVariables]
private BallisticCaliber _caliber;
private Container _ammoContainer;
[ViewVariables]
private int _currentSlot = 0;
public override int Capacity => _ammoSlots.Length;
private IEntity[] _ammoSlots;
@@ -39,6 +42,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
public override int ShotsLeft => _ammoContainer.ContainedEntities.Count;
private AppearanceComponent _appearanceComponent;
[ViewVariables]
private string _fillPrototype;
private int _unspawnedCount;