pvs content (#5484)

Co-authored-by: Paul <ritter.paul1+git@googlemail.com>
This commit is contained in:
Paul Ritter
2021-11-30 15:20:38 +01:00
committed by GitHub
parent d0efe50e83
commit fbcb53dcc0
63 changed files with 72 additions and 68 deletions

View File

@@ -117,7 +117,7 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
UpdateAppearance();
}
public override ComponentState GetComponentState(ICommonSession player)
public override ComponentState GetComponentState()
{
(int, int)? count = (ShotsLeft, Capacity);
var chamberedExists = _chamberContainer.ContainedEntity != null;

View File

@@ -78,7 +78,7 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
UpdateAppearance();
}
public override ComponentState GetComponentState(ICommonSession player)
public override ComponentState GetComponentState()
{
(int, int)? count = (ShotsLeft, Capacity);
var chamberedExists = _chamberContainer.ContainedEntity != null;

View File

@@ -75,7 +75,7 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
_ammoSlots = new IEntity[_serializedCapacity];
}
public override ComponentState GetComponentState(ICommonSession player)
public override ComponentState GetComponentState()
{
var slotsSpent = new bool?[Capacity];
for (var i = 0; i < Capacity; i++)

View File

@@ -81,7 +81,7 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
[DataField("soundPowerCellEject", required: true)]
private SoundSpecifier _soundPowerCellEject = default!;
public override ComponentState GetComponentState(ICommonSession player)
public override ComponentState GetComponentState()
{
(int, int)? count = (ShotsLeft, Capacity);

View File

@@ -149,7 +149,7 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
return types;
}
public override ComponentState GetComponentState(ICommonSession player)
public override ComponentState GetComponentState()
{
(int, int)? count = null;
var magazine = MagazineContainer.ContainedEntity;

View File

@@ -134,7 +134,7 @@ namespace Content.Server.Weapon.Ranged
}
}
public override ComponentState GetComponentState(ICommonSession player)
public override ComponentState GetComponentState()
{
return new RangedWeaponComponentState(FireRateSelector);
}