ECSatize CameraRecoilSystem (#5448)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Acruid
2021-12-26 22:50:12 -08:00
committed by GitHub
parent e235002a54
commit b3b171da7f
11 changed files with 176 additions and 192 deletions

View File

@@ -1,19 +0,0 @@
using Content.Shared.Camera;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
namespace Content.Server.Camera
{
[RegisterComponent]
[ComponentReference(typeof(SharedCameraRecoilComponent))]
public sealed class CameraRecoilComponent : SharedCameraRecoilComponent
{
public override void Kick(Vector2 recoil)
{
var msg = new RecoilKickMessage(recoil);
#pragma warning disable 618
SendNetworkMessage(msg);
#pragma warning restore 618
}
}
}