mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fix a bunch of warnings.
This commit is contained in:
@@ -11,8 +11,10 @@ namespace Robust.Client.GameObjects.EntitySystems
|
||||
{
|
||||
public class SpriteSystem : EntitySystem
|
||||
{
|
||||
#pragma warning disable 649
|
||||
[Dependency] private readonly IClyde _clyde;
|
||||
[Dependency] private readonly IEyeManager _eyeManager;
|
||||
#pragma warning restore 649
|
||||
|
||||
public SpriteSystem()
|
||||
{
|
||||
|
||||
@@ -93,8 +93,6 @@ namespace Robust.Client.Graphics.Clyde
|
||||
|
||||
private bool _quartResLights = true;
|
||||
|
||||
private bool _disposing;
|
||||
|
||||
public override bool Initialize()
|
||||
{
|
||||
_debugStats = new ClydeDebugStats();
|
||||
@@ -419,7 +417,6 @@ namespace Robust.Client.Graphics.Clyde
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_disposing = true;
|
||||
ShutdownWindowing();
|
||||
_shutdownAudio();
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ using Robust.Client.Interfaces.UserInterface;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Log;
|
||||
using Robust.Client.Interfaces.State;
|
||||
using Robust.Client.ResourceManagement;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
@@ -33,7 +32,6 @@ namespace Robust.Client.State.States
|
||||
[Dependency] private readonly IGameController _controllerProxy;
|
||||
[Dependency] private readonly ILocalizationManager _loc;
|
||||
[Dependency] private readonly IResourceCache _resourceCache;
|
||||
[Dependency] private readonly IStateManager stateManager;
|
||||
[Dependency] private readonly IUserInterfaceManager userInterfaceManager;
|
||||
#pragma warning restore 649
|
||||
|
||||
|
||||
@@ -32,8 +32,6 @@ namespace Robust.Client.UserInterface
|
||||
|
||||
public event Action<Control> OnVisibilityChanged;
|
||||
|
||||
private int _uniqueChildId;
|
||||
|
||||
private bool _stylingDirty;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -9,7 +9,9 @@ namespace Robust.Client.UserInterface.CustomControls
|
||||
{
|
||||
internal sealed class DebugClydePanel : PanelContainer
|
||||
{
|
||||
#pragma warning disable 649
|
||||
[Dependency] private readonly IClydeInternal _clydeInternal;
|
||||
#pragma warning restore 649
|
||||
|
||||
private readonly Label _label;
|
||||
|
||||
|
||||
@@ -71,15 +71,12 @@ namespace Robust.Client.UserInterface.CustomControls
|
||||
var screenSize = _displayManager.ScreenSize;
|
||||
|
||||
int mouseWorldMap;
|
||||
int mouseWorldGrid;
|
||||
GridCoordinates mouseWorldPos;
|
||||
IEntity mouseEntity = null;
|
||||
TileRef tile;
|
||||
try
|
||||
{
|
||||
var coords = eyeManager.ScreenToWorld(new ScreenCoordinates(mouseScreenPos));
|
||||
mouseWorldMap = (int) _mapManager.GetGrid(coords.GridID).ParentMapId;
|
||||
mouseWorldGrid = (int) coords.GridID;
|
||||
mouseWorldPos = coords;
|
||||
|
||||
tile = _mapManager.GetGrid(coords.GridID).GetTileRef(coords);
|
||||
@@ -87,7 +84,6 @@ namespace Robust.Client.UserInterface.CustomControls
|
||||
catch
|
||||
{
|
||||
mouseWorldPos = eyeManager.ScreenToWorld(mouseScreenPos);
|
||||
mouseWorldGrid = 0;
|
||||
mouseWorldMap = 0;
|
||||
tile = new TileRef();
|
||||
}
|
||||
|
||||
@@ -9,7 +9,9 @@ namespace Robust.Client.UserInterface.CustomControls
|
||||
{
|
||||
internal class DebugInputPanel : PanelContainer
|
||||
{
|
||||
#pragma warning disable 649
|
||||
[Dependency] private readonly IInputManager _inputManager;
|
||||
#pragma warning restore 649
|
||||
|
||||
private readonly Label _label;
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@ namespace Robust.Shared.Map
|
||||
private readonly Dictionary<MapIndices, IMapChunkInternal> _chunks = new Dictionary<MapIndices, IMapChunkInternal>();
|
||||
|
||||
private readonly IMapManagerInternal _mapManager;
|
||||
private Vector2 _worldPosition;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MapGrid"/> class.
|
||||
|
||||
Reference in New Issue
Block a user