Files
tbd-station-14/Content.Client/GameObjects/Components/Projectiles/ProjectileComponent.cs
Pieter-Jan Briers bc24a852f9 Fix throwing.
2020-07-02 23:28:37 +02:00

24 lines
687 B
C#

using Content.Shared.GameObjects.Components.Projectiles;
using Robust.Shared.GameObjects;
#nullable enable
namespace Content.Client.GameObjects.Components.Projectiles
{
[RegisterComponent]
public class ProjectileComponent : SharedProjectileComponent
{
protected override EntityUid Shooter => _shooter;
private EntityUid _shooter;
public override void HandleComponentState(ComponentState? curState, ComponentState? nextState)
{
if (curState is ProjectileComponentState compState)
{
_shooter = compState.Shooter;
IgnoreShooter = compState.IgnoreShooter;
}
}
}
}