Fancy guns. (#152)

This commit is contained in:
Pieter-Jan Briers
2019-03-23 15:04:14 +01:00
committed by GitHub
parent f0aec83be4
commit 0882435293
56 changed files with 957 additions and 54 deletions

View File

@@ -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;
}
}
}
}

View File

@@ -0,0 +1,12 @@
using System;
using SS14.Shared.Serialization;
namespace Content.Shared.GameObjects.Components.Weapons.Ranged
{
[Serializable, NetSerializable]
public enum BallisticMagazineVisuals
{
AmmoCapacity,
AmmoLeft,
}
}

View File

@@ -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,
}
}