2021-06-09 22:19:39 +02:00
|
|
|
using Content.Shared.Projectiles;
|
2020-07-02 23:24:27 +02:00
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Client.Projectiles
|
2020-07-02 23:24:27 +02:00
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2021-05-30 23:30:44 +10:00
|
|
|
[ComponentReference(typeof(SharedProjectileComponent))]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class ProjectileComponent : SharedProjectileComponent
|
2020-07-02 23:24:27 +02:00
|
|
|
{
|
|
|
|
|
public override void HandleComponentState(ComponentState? curState, ComponentState? nextState)
|
|
|
|
|
{
|
|
|
|
|
if (curState is ProjectileComponentState compState)
|
|
|
|
|
{
|
2021-05-30 23:30:44 +10:00
|
|
|
Shooter = compState.Shooter;
|
2020-07-02 23:24:27 +02:00
|
|
|
IgnoreShooter = compState.IgnoreShooter;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|