Files
tbd-station-14/Content.Client/Projectiles/ProjectileComponent.cs
2021-06-09 22:19:39 +02:00

20 lines
587 B
C#

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