Files
tbd-station-14/Content.Client/Projectiles/ProjectileComponent.cs
2022-02-16 18:23:23 +11:00

20 lines
594 B
C#

using Content.Shared.Projectiles;
using Robust.Shared.GameObjects;
namespace Content.Client.Projectiles
{
[RegisterComponent]
[ComponentReference(typeof(SharedProjectileComponent))]
public sealed class ProjectileComponent : SharedProjectileComponent
{
public override void HandleComponentState(ComponentState? curState, ComponentState? nextState)
{
if (curState is ProjectileComponentState compState)
{
Shooter = compState.Shooter;
IgnoreShooter = compState.IgnoreShooter;
}
}
}
}