Removes some unused fields (#2603)
* removes some unused fields * thats an oopsie Co-authored-by: Paul <ritter.paul1+git@googlemail.com> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -77,8 +77,6 @@ namespace Content.Client.GameObjects.Components.Body.Surgery
|
|||||||
|
|
||||||
private SpriteView SpriteView { get; }
|
private SpriteView SpriteView { get; }
|
||||||
|
|
||||||
private Control EntityControl { get; }
|
|
||||||
|
|
||||||
private Label DisplayText { get; }
|
private Label DisplayText { get; }
|
||||||
|
|
||||||
public int CallbackData { get; }
|
public int CallbackData { get; }
|
||||||
|
|||||||
@@ -279,19 +279,6 @@ namespace Content.Client.GameObjects.Components.Storage
|
|||||||
args.Button.Pressed = false;
|
args.Button.Pressed = false;
|
||||||
StorageEntity.Interact(control.EntityUid);
|
StorageEntity.Interact(control.EntityUid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Function assigned to button that adds items to the storage entity.
|
|
||||||
/// </summary>
|
|
||||||
private void OnAddItemButtonPressed(BaseButton.ButtonEventArgs args)
|
|
||||||
{
|
|
||||||
var controlledEntity = IoCManager.Resolve<IPlayerManager>().LocalPlayer.ControlledEntity;
|
|
||||||
|
|
||||||
if (controlledEntity.TryGetComponent(out HandsComponent hands))
|
|
||||||
{
|
|
||||||
StorageEntity.SendNetworkMessage(new InsertEntityMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -24,8 +24,6 @@ namespace Content.Client.GameObjects.EntitySystems
|
|||||||
[Dependency] private readonly IMapManager _mapManager = default!;
|
[Dependency] private readonly IMapManager _mapManager = default!;
|
||||||
[Dependency] private readonly IResourceCache _resourceCache = default!;
|
[Dependency] private readonly IResourceCache _resourceCache = default!;
|
||||||
|
|
||||||
private readonly Dictionary<float, Color> _fireCache = new();
|
|
||||||
|
|
||||||
// Gas overlays
|
// Gas overlays
|
||||||
private readonly float[] _timer = new float[Atmospherics.TotalNumberOfGases];
|
private readonly float[] _timer = new float[Atmospherics.TotalNumberOfGases];
|
||||||
private readonly float[][] _frameDelays = new float[Atmospherics.TotalNumberOfGases][];
|
private readonly float[][] _frameDelays = new float[Atmospherics.TotalNumberOfGases][];
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ namespace Content.Client.Research
|
|||||||
|
|
||||||
public LatheBoundUserInterface Owner { get; set; }
|
public LatheBoundUserInterface Owner { get; set; }
|
||||||
|
|
||||||
private readonly List<LatheRecipePrototype> _recipes = new();
|
|
||||||
private readonly List<LatheRecipePrototype> _shownRecipes = new();
|
private readonly List<LatheRecipePrototype> _shownRecipes = new();
|
||||||
|
|
||||||
public LatheMenu(LatheBoundUserInterface owner = null)
|
public LatheMenu(LatheBoundUserInterface owner = null)
|
||||||
|
|||||||
@@ -103,7 +103,6 @@ namespace Content.Client.Sandbox
|
|||||||
private EntitySpawnWindow _spawnWindow;
|
private EntitySpawnWindow _spawnWindow;
|
||||||
private TileSpawnWindow _tilesSpawnWindow;
|
private TileSpawnWindow _tilesSpawnWindow;
|
||||||
private bool _sandboxWindowToggled;
|
private bool _sandboxWindowToggled;
|
||||||
private bool SpawnEntitiesButton { get; set; }
|
|
||||||
|
|
||||||
public void Initialize()
|
public void Initialize()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ using Content.Shared.GameObjects.EntitySystems;
|
|||||||
using Content.Shared.Interfaces;
|
using Content.Shared.Interfaces;
|
||||||
using Content.Shared.Interfaces.GameObjects.Components;
|
using Content.Shared.Interfaces.GameObjects.Components;
|
||||||
using Content.Shared.GameObjects.Verbs;
|
using Content.Shared.GameObjects.Verbs;
|
||||||
|
using JetBrains.Annotations;
|
||||||
using Robust.Server.GameObjects.Components.Container;
|
using Robust.Server.GameObjects.Components.Container;
|
||||||
using Robust.Server.GameObjects.Components.UserInterface;
|
using Robust.Server.GameObjects.Components.UserInterface;
|
||||||
using Robust.Server.GameObjects.EntitySystems;
|
using Robust.Server.GameObjects.EntitySystems;
|
||||||
@@ -48,7 +49,7 @@ namespace Content.Server.GameObjects.Components.Chemistry
|
|||||||
|
|
||||||
[ViewVariables] private bool HasBeaker => _beakerContainer.ContainedEntity != null;
|
[ViewVariables] private bool HasBeaker => _beakerContainer.ContainedEntity != null;
|
||||||
[ViewVariables] private ReagentUnit _dispenseAmount = ReagentUnit.New(10);
|
[ViewVariables] private ReagentUnit _dispenseAmount = ReagentUnit.New(10);
|
||||||
[ViewVariables] private SolutionContainerComponent? Solution => _beakerContainer.ContainedEntity.GetComponent<SolutionContainerComponent>();
|
[UsedImplicitly] [ViewVariables] private SolutionContainerComponent? Solution => _beakerContainer.ContainedEntity.GetComponent<SolutionContainerComponent>();
|
||||||
|
|
||||||
[ViewVariables] private bool Powered => !Owner.TryGetComponent(out PowerReceiverComponent? receiver) || receiver.Powered;
|
[ViewVariables] private bool Powered => !Owner.TryGetComponent(out PowerReceiverComponent? receiver) || receiver.Powered;
|
||||||
|
|
||||||
|
|||||||
@@ -21,9 +21,6 @@ namespace Content.Server.GameObjects.Components.Markers
|
|||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
public List<string> RarePrototypes { get; set; } = new();
|
public List<string> RarePrototypes { get; set; } = new();
|
||||||
|
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
|
||||||
private List<string> _gameRules = new();
|
|
||||||
|
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
public float RareChance { get; set; } = 0.05f;
|
public float RareChance { get; set; } = 0.05f;
|
||||||
|
|
||||||
|
|||||||
@@ -18,8 +18,6 @@ namespace Content.Tests.Server.Preferences
|
|||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ServerDbSqliteTests : RobustUnitTest
|
public class ServerDbSqliteTests : RobustUnitTest
|
||||||
{
|
{
|
||||||
private const int MaxCharacterSlots = 10;
|
|
||||||
|
|
||||||
private static HumanoidCharacterProfile CharlieCharlieson()
|
private static HumanoidCharacterProfile CharlieCharlieson()
|
||||||
{
|
{
|
||||||
return new(
|
return new(
|
||||||
|
|||||||
Reference in New Issue
Block a user