Gunify pneumatic cannon (#13296)
This commit is contained in:
7
Content.Client/PneumaticCannon/PneumaticCannonSystem.cs
Normal file
7
Content.Client/PneumaticCannon/PneumaticCannonSystem.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using Content.Shared.PneumaticCannon;
|
||||
|
||||
namespace Content.Client.PneumaticCannon;
|
||||
|
||||
public sealed class PneumaticCannonSystem : SharedPneumaticCannonSystem
|
||||
{
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
using Content.Shared.PneumaticCannon;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Client.PneumaticCannon
|
||||
{
|
||||
public sealed class PneumaticCannonVisualizer : AppearanceVisualizer
|
||||
{
|
||||
[Obsolete("Subscribe to AppearanceChangeEvent instead.")]
|
||||
public override void OnChangeData(AppearanceComponent component)
|
||||
{
|
||||
base.OnChangeData(component);
|
||||
|
||||
var entities = IoCManager.Resolve<IEntityManager>();
|
||||
if (!entities.TryGetComponent(component.Owner, out SpriteComponent? sprite))
|
||||
return;
|
||||
|
||||
if (component.TryGetData(PneumaticCannonVisuals.Tank, out bool tank))
|
||||
{
|
||||
sprite.LayerSetVisible(PneumaticCannonVisualLayers.Tank, tank);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user