Add UsedImplicitly to visualizers and entity systems (#2592)

This commit is contained in:
DrSmugleaf
2020-12-08 11:56:10 +01:00
committed by GitHub
parent d75c22d5e1
commit 2dc05b2275
48 changed files with 102 additions and 45 deletions

View File

@@ -1,9 +1,12 @@
using Robust.Client.GameObjects.Components.UserInterface;
using Content.Shared.GameObjects.Components.Chemistry.ReagentDispenser;
using JetBrains.Annotations;
using Robust.Client.GameObjects.Components.UserInterface;
using Robust.Shared.GameObjects.Components.UserInterface;
using static Content.Shared.GameObjects.Components.Power.AME.SharedAMEControllerComponent;
namespace Content.Client.GameObjects.Components.Power.AME
{
[UsedImplicitly]
public class AMEControllerBoundUserInterface : BoundUserInterface
{
private AMEWindow _window;

View File

@@ -1,10 +1,12 @@
using Robust.Client.GameObjects;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Interfaces.GameObjects;
using static Content.Shared.GameObjects.Components.Power.AME.SharedAMEControllerComponent;
namespace Content.Client.GameObjects.Components.Power.AME
{
[UsedImplicitly]
public class AMEControllerVisualizer : AppearanceVisualizer
{
public override void InitializeEntity(IEntity entity)

View File

@@ -1,10 +1,12 @@
using Robust.Client.GameObjects;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Interfaces.GameObjects;
using static Content.Shared.GameObjects.Components.Power.AME.SharedAMEShieldComponent;
namespace Content.Client.GameObjects.Components.Power.AME
{
[UsedImplicitly]
public class AMEVisualizer : AppearanceVisualizer
{
public override void InitializeEntity(IEntity entity)

View File

@@ -1,6 +1,7 @@
using System;
using Content.Client.UserInterface.Stylesheets;
using Content.Shared.GameObjects.Components.Power;
using JetBrains.Annotations;
using Robust.Client.GameObjects.Components.UserInterface;
using Robust.Client.Graphics.Drawing;
using Robust.Client.UserInterface.Controls;
@@ -10,6 +11,7 @@ using Robust.Shared.Maths;
namespace Content.Client.GameObjects.Components.Power
{
[UsedImplicitly]
public class ApcBoundUserInterface : BoundUserInterface
{
private ApcWindow _window;

View File

@@ -1,4 +1,5 @@
using Content.Shared.GameObjects.Components.Power;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Interfaces.GameObjects;
@@ -7,6 +8,7 @@ namespace Content.Client.GameObjects.Components.Power
{
public class ApcVisualizer : AppearanceVisualizer
{
[UsedImplicitly]
public override void InitializeEntity(IEntity entity)
{
base.InitializeEntity(entity);

View File

@@ -1,5 +1,6 @@
using System;
using Content.Shared.GameObjects.Components.Power;
using JetBrains.Annotations;
using Robust.Client.Animations;
using Robust.Client.GameObjects;
using Robust.Client.GameObjects.Components.Animations;
@@ -9,6 +10,7 @@ using YamlDotNet.RepresentationModel;
namespace Content.Client.GameObjects.Components.Power
{
[UsedImplicitly]
public class AutolatheVisualizer : AppearanceVisualizer
{
private const string AnimationKey = "autolathe_animation";

View File

@@ -1,5 +1,6 @@
using Content.Shared.GameObjects.Components.Power;
using Content.Shared.Utility;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Interfaces.GameObjects;
@@ -8,6 +9,7 @@ using YamlDotNet.RepresentationModel;
namespace Content.Client.GameObjects.Components.Power
{
[UsedImplicitly]
public class PowerCellVisualizer : AppearanceVisualizer
{
private string _prefix;

View File

@@ -1,5 +1,6 @@
using System;
using Content.Shared.GameObjects.Components.Power;
using JetBrains.Annotations;
using Robust.Client.Animations;
using Robust.Client.GameObjects;
using Robust.Client.GameObjects.Components.Animations;
@@ -9,6 +10,7 @@ using YamlDotNet.RepresentationModel;
namespace Content.Client.GameObjects.Components.Power
{
[UsedImplicitly]
public class ProtolatheVisualizer : AppearanceVisualizer
{
private const string AnimationKey = "protolathe_animation";

View File

@@ -1,10 +1,12 @@
using Content.Shared.GameObjects.Components.Power;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Interfaces.GameObjects;
namespace Content.Client.GameObjects.Components.Power
{
[UsedImplicitly]
public class SmesVisualizer : AppearanceVisualizer
{
public override void InitializeEntity(IEntity entity)

View File

@@ -1,5 +1,6 @@
using System;
using Content.Shared.GameObjects.Components.Power;
using JetBrains.Annotations;
using Robust.Client.GameObjects.Components.UserInterface;
using Robust.Client.Graphics.Drawing;
using Robust.Client.UserInterface;
@@ -12,6 +13,7 @@ using Robust.Shared.Maths;
namespace Content.Client.GameObjects.Components.Power
{
[UsedImplicitly]
public class SolarControlConsoleBoundUserInterface : BoundUserInterface
{
[Dependency] private readonly IGameTiming _gameTiming = default;