virtualize all net ids to reduce net traffic

This commit is contained in:
Tyler Young
2020-06-08 06:31:54 -04:00
parent d724c56d38
commit 027c338c5f
27 changed files with 64 additions and 33 deletions

View File

@@ -20,7 +20,9 @@ namespace Content.Shared.GameObjects.Components.Weapons.Ranged
/// </remarks>
public (int count, int max)? MagazineCount { get; }
public BallisticMagazineWeaponComponentState(bool chambered, (int count, int max)? magazineCount) : base(ContentNetIDs.BALLISTIC_MAGAZINE_WEAPON)
public override uint NetID => ContentNetIDs.BALLISTIC_MAGAZINE_WEAPON;
public BallisticMagazineWeaponComponentState(bool chambered, (int count, int max)? magazineCount)
{
Chambered = chambered;
MagazineCount = magazineCount;