Re-organize all projects (#4166)
This commit is contained in:
30
Content.Shared/Camera/SharedCameraRecoilComponent.cs
Normal file
30
Content.Shared/Camera/SharedCameraRecoilComponent.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
#nullable enable
|
||||
using System;
|
||||
using Content.Shared.NetIDs;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Maths;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Camera
|
||||
{
|
||||
public abstract class SharedCameraRecoilComponent : Component
|
||||
{
|
||||
public sealed override string Name => "CameraRecoil";
|
||||
|
||||
public override uint? NetID => ContentNetIDs.CAMERA_RECOIL;
|
||||
|
||||
public abstract void Kick(Vector2 recoil);
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
protected class RecoilKickMessage : ComponentMessage
|
||||
{
|
||||
public readonly Vector2 Recoil;
|
||||
|
||||
public RecoilKickMessage(Vector2 recoil)
|
||||
{
|
||||
Directed = true;
|
||||
Recoil = recoil;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user