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,31 @@
using SS14.Shared.GameObjects;
using SS14.Shared.Serialization;
namespace Content.Server.GameObjects.Components.Weapon.Ranged.Projectile
{
public class BallisticBulletComponent : Component
{
public override string Name => "BallisticBullet";
private BallisticCaliber _caliber;
private string _projectileType;
private bool _spent;
public string ProjectileType => _projectileType;
public BallisticCaliber Caliber => _caliber;
public bool Spent
{
get => _spent;
set => _spent = value;
}
public override void ExposeData(ObjectSerializer serializer)
{
base.ExposeData(serializer);
serializer.DataField(ref _caliber, "caliber", BallisticCaliber.Unspecified);
serializer.DataField(ref _projectileType, "projectile", null);
serializer.DataField(ref _spent, "spent", false);
}
}
}