Fancy guns. (#152)
This commit is contained in:
committed by
GitHub
parent
f0aec83be4
commit
0882435293
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using SS14.Shared.GameObjects;
|
||||
using SS14.Shared.Maths;
|
||||
using SS14.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.GameObjects.Components.Mobs
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using SS14.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.GameObjects.Components.Weapons.Ranged
|
||||
{
|
||||
[Serializable, NetSerializable]
|
||||
public enum BallisticMagazineVisuals
|
||||
{
|
||||
AmmoCapacity,
|
||||
AmmoLeft,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using SS14.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.GameObjects.Components.Weapons.Ranged
|
||||
{
|
||||
[Serializable, NetSerializable]
|
||||
public enum BallisticMagazineWeaponVisuals
|
||||
{
|
||||
MagazineLoaded,
|
||||
AmmoCapacity,
|
||||
AmmoLeft,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user