AppearanceComponent API Changes (#5446)

This commit is contained in:
Acruid
2021-11-22 23:22:59 -08:00
committed by GitHub
parent c8acba0ba7
commit fa0ec5cbd9
116 changed files with 87 additions and 97 deletions

View File

@@ -1,6 +1,7 @@
using Content.Shared.Atmos.Components;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Client.Atmos.Visualizers

View File

@@ -1,6 +1,7 @@
using Content.Shared.Atmos.Piping.Unary.Visuals;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Client.Atmos.Visualizers
{

View File

@@ -1,6 +1,7 @@
using Content.Shared.Atmos.Visuals;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Client.Atmos.Visualizers
{

View File

@@ -4,6 +4,7 @@ using JetBrains.Annotations;
using Robust.Client.Animations;
using Robust.Client.GameObjects;
using Robust.Shared.Animations;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
namespace Content.Client.Buckle

View File

@@ -3,6 +3,7 @@ using Content.Shared.Foam;
using JetBrains.Annotations;
using Robust.Client.Animations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
using Robust.Shared.Serialization;
using Robust.Shared.Serialization.Manager.Attributes;

View File

@@ -1,6 +1,7 @@
using Content.Shared.Smoking;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
namespace Content.Client.Chemistry.Visualizers

View File

@@ -2,6 +2,7 @@ using System;
using Content.Shared.Chemistry;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
using Robust.Shared.Serialization.Manager.Attributes;

View File

@@ -3,6 +3,7 @@ using Content.Shared.Vapor;
using JetBrains.Annotations;
using Robust.Client.Animations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
using Robust.Shared.Serialization;
using Robust.Shared.Serialization.Manager.Attributes;

View File

@@ -1,6 +1,7 @@
using Content.Shared.Construction;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Client.Construction
{

View File

@@ -44,7 +44,7 @@ namespace Content.Client.Conveyor.Visualizers
{
base.InitializeEntity(entity);
var appearance = entity.EnsureComponent<AppearanceComponent>();
var appearance = entity.EnsureComponent<ClientAppearanceComponent>();
ChangeState(appearance);
}

View File

@@ -1,4 +1,4 @@
using Content.Shared.MachineLinking;
using Content.Shared.MachineLinking;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
@@ -42,7 +42,7 @@ namespace Content.Client.Conveyor.Visualizers
{
base.InitializeEntity(entity);
var appearance = entity.EnsureComponent<AppearanceComponent>();
var appearance = entity.EnsureComponent<ClientAppearanceComponent>();
ChangeState(appearance);
}

View File

@@ -1,6 +1,7 @@
using Content.Shared.Crayon;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
namespace Content.Client.Crayon

View File

@@ -293,7 +293,7 @@ namespace Content.Client.Damage
{
if (!entity.TryGetComponent<SpriteComponent>(out SpriteComponent? spriteComponent)
|| !entity.TryGetComponent<DamageableComponent>(out var damageComponent)
|| !entity.TryGetComponent<AppearanceComponent>(out var appearanceComponent))
|| !entity.HasComponent<AppearanceComponent>())
return;
_thresholds.Add(FixedPoint2.Zero);

View File

@@ -148,7 +148,7 @@ namespace Content.Client.Disposal.Visualizers
base.InitializeEntity(entity);
entity.EnsureComponent<AnimationPlayerComponent>();
var appearance = entity.EnsureComponent<AppearanceComponent>();
var appearance = entity.EnsureComponent<ClientAppearanceComponent>();
ChangeState(appearance);
}

View File

@@ -1,4 +1,4 @@
using System;
using System;
using Content.Shared.Disposal.Components;
using Content.Shared.SubFloor;
using JetBrains.Annotations;
@@ -56,7 +56,7 @@ namespace Content.Client.Disposal.Visualizers
{
base.InitializeEntity(entity);
var appearance = entity.EnsureComponent<AppearanceComponent>();
var appearance = entity.EnsureComponent<ClientAppearanceComponent>();
ChangeState(appearance);
}

View File

@@ -1,6 +1,7 @@
using Content.Shared.Explosion;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Client.Explosion

View File

@@ -1,6 +1,7 @@
using Content.Shared.Extinguisher;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Client.Extinguisher

View File

@@ -1,4 +1,5 @@
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using static Content.Shared.Kitchen.Components.SharedReagentGrinderComponent;
namespace Content.Client.Kitchen.Visualizers

View File

@@ -1,5 +1,6 @@
using Content.Shared.Light.Component;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Client.Light.Visualizers

View File

@@ -4,6 +4,7 @@ using Content.Shared.Light.Component;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.Audio;
using Robust.Shared.GameObjects;
using Robust.Shared.Player;
namespace Content.Client.Light.Visualizers

View File

@@ -1,6 +1,7 @@
using Content.Shared.Light;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
namespace Content.Client.Light.Visualizers

View File

@@ -1,6 +1,7 @@
using System;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using static Content.Shared.MedicalScanner.SharedMedicalScannerComponent;
using static Content.Shared.MedicalScanner.SharedMedicalScannerComponent.MedicalScannerStatus;

View File

@@ -1,10 +1,11 @@
using System.Collections.Generic;
using Content.Shared.DrawDepth;
using Content.Shared.MobState;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization;
using Robust.Shared.Serialization.Manager.Attributes;
using DrawDepth = Content.Shared.DrawDepth.DrawDepth;
namespace Content.Client.MobState
{

View File

@@ -1,7 +1,5 @@
using Content.Shared.MobState;
using Content.Shared.MobState;
using Content.Shared.MobState.State;
using Content.Shared.Standing;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Client.MobState.States

View File

@@ -1,6 +1,7 @@
using Content.Shared.Labels;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Client.Morgue.Visualizers
{

View File

@@ -1,6 +1,7 @@
using Content.Shared.Morgue;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Client.Morgue.Visualizers

View File

@@ -1,5 +1,6 @@
using Content.Shared.Morgue;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Client.Morgue.Visualizers

View File

@@ -1,6 +1,7 @@
using Content.Shared.Nutrition.Components;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Client.Nutrition.Visualizers

View File

@@ -1,6 +1,7 @@
using Content.Shared.Pinpointer;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
namespace Content.Client.Pinpointer

View File

@@ -1,5 +1,6 @@
using Content.Shared.PneumaticCannon;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Client.PneumaticCannon
{

View File

@@ -4,6 +4,7 @@ using JetBrains.Annotations;
using Robust.Client.Animations;
using Robust.Client.GameObjects;
using Robust.Shared.Animations;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
namespace Content.Client.Pointing

View File

@@ -1,5 +1,6 @@
using Content.Shared.Wires;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Client.Power

View File

@@ -1,6 +1,7 @@
using Content.Shared.Power;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Client.Power
{

View File

@@ -1,4 +1,4 @@
using Content.Shared.Conveyor;
using Content.Shared.Conveyor;
using Content.Shared.Recycling;
using JetBrains.Annotations;
using Robust.Client.GameObjects;

View File

@@ -4,6 +4,7 @@ using JetBrains.Annotations;
using Robust.Client.Animations;
using Robust.Client.GameObjects;
using Robust.Shared.Animations;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
namespace Content.Client.Rotation

View File

@@ -1,6 +1,7 @@
using Content.Shared.Security;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Client.Security
{

View File

@@ -1,5 +1,6 @@
using Content.Shared.Shuttles.Components;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Client.Shuttles
{

View File

@@ -3,6 +3,7 @@ using Content.Shared.Singularity.Components;
using Content.Shared.Storage;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Client.Singularity.Visualizers
{

View File

@@ -2,6 +2,7 @@
using Content.Shared.Smoking;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Client.Smoking

View File

@@ -1,6 +1,7 @@
using Content.Shared.SubFloor;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Client.SubFloor
{

View File

@@ -1,4 +1,4 @@
using Content.Client.Tabletop.Components;
using Content.Client.Tabletop.Components;
using Content.Client.Tabletop.UI;
using Content.Client.Viewport;
using Content.Shared.Tabletop;

View File

@@ -1,6 +1,7 @@
using Content.Shared.Tabletop;
using Content.Shared.Tabletop;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
namespace Content.Client.Tabletop.Visualizers

View File

@@ -1,5 +1,6 @@
using Content.Shared.Toilet;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Client.Toilet
{

View File

@@ -3,6 +3,7 @@ using System.Linq;
using System.Collections.Generic;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Log;
using Robust.Shared.Reflection;

View File

@@ -1,6 +1,7 @@
using Content.Shared.Wall;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Client.Wall
{

View File

@@ -1,6 +1,7 @@
using Content.Shared.Weapons.Ranged.Barrels.Components;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Client.Weapons.Ranged.Barrels.Visualizers
{

View File

@@ -1,4 +1,5 @@
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using static Content.Shared.Wires.SharedWiresComponent;
namespace Content.Client.Wires.Visualizers