Fix a bunch of compiler warnigns.
This commit is contained in:
@@ -17,7 +17,7 @@ namespace Content.Client.GameObjects.Components.Power
|
|||||||
public class SolarControlConsoleBoundUserInterface : BoundUserInterface
|
public class SolarControlConsoleBoundUserInterface : BoundUserInterface
|
||||||
{
|
{
|
||||||
[Dependency]
|
[Dependency]
|
||||||
private IGameTiming _gameTiming;
|
private IGameTiming _gameTiming = default;
|
||||||
|
|
||||||
private SolarControlWindow _window;
|
private SolarControlWindow _window;
|
||||||
private SolarControlConsoleBoundInterfaceState _lastState = new SolarControlConsoleBoundInterfaceState(0, 0, 0, 0);
|
private SolarControlConsoleBoundInterfaceState _lastState = new SolarControlConsoleBoundInterfaceState(0, 0, 0, 0);
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ namespace Content.Client.GameObjects.EntitySystems
|
|||||||
[UsedImplicitly]
|
[UsedImplicitly]
|
||||||
public class InstrumentSystem : EntitySystem
|
public class InstrumentSystem : EntitySystem
|
||||||
{
|
{
|
||||||
[Dependency] private readonly IGameTiming _gameTiming;
|
[Dependency] private readonly IGameTiming _gameTiming = default;
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ namespace Content.Server.GameObjects.Components.Construction
|
|||||||
}
|
}
|
||||||
|
|
||||||
// OK WE'RE GOOD CONSTRUCTION STARTED.
|
// OK WE'RE GOOD CONSTRUCTION STARTED.
|
||||||
EntitySystem.Get<AudioSystem>().Play("/Audio/items/deconstruct.ogg", Owner);
|
EntitySystem.Get<AudioSystem>().PlayFromEntity("/Audio/items/deconstruct.ogg", Owner);
|
||||||
if (prototype.Stages.Count == 2)
|
if (prototype.Stages.Count == 2)
|
||||||
{
|
{
|
||||||
// Exactly 2 stages, so don't make an intermediate frame.
|
// Exactly 2 stages, so don't make an intermediate frame.
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ namespace Content.Server.GameObjects.Components.PDA
|
|||||||
{
|
{
|
||||||
_idSlot.Insert(card.Owner);
|
_idSlot.Insert(card.Owner);
|
||||||
ContainedID = card;
|
ContainedID = card;
|
||||||
EntitySystem.Get<AudioSystem>().Play("/Audio/Guns/MagIn/batrifle_magin.ogg", Owner);
|
EntitySystem.Get<AudioSystem>().PlayFromEntity("/Audio/Guns/MagIn/batrifle_magin.ogg", Owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -222,7 +222,7 @@ namespace Content.Server.GameObjects.Components.PDA
|
|||||||
{
|
{
|
||||||
_lightOn = !_lightOn;
|
_lightOn = !_lightOn;
|
||||||
_pdaLight.Enabled = _lightOn;
|
_pdaLight.Enabled = _lightOn;
|
||||||
EntitySystem.Get<AudioSystem>().Play("/Audio/items/flashlight_toggle.ogg", Owner);
|
EntitySystem.Get<AudioSystem>().PlayFromEntity("/Audio/items/flashlight_toggle.ogg", Owner);
|
||||||
UpdatePDAUserInterface();
|
UpdatePDAUserInterface();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -241,7 +241,7 @@ namespace Content.Server.GameObjects.Components.PDA
|
|||||||
hands.PutInHandOrDrop(cardItemComponent);
|
hands.PutInHandOrDrop(cardItemComponent);
|
||||||
ContainedID = null;
|
ContainedID = null;
|
||||||
|
|
||||||
EntitySystem.Get<AudioSystem>().Play("/Audio/machines/machine_switch.ogg", Owner);
|
EntitySystem.Get<AudioSystem>().PlayFromEntity("/Audio/machines/machine_switch.ogg", Owner);
|
||||||
UpdatePDAUserInterface();
|
UpdatePDAUserInterface();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user