Files
OldThink/Content.Client/Projectiles/ProjectileComponent.cs

20 lines
594 B
C#
Raw Normal View History

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]
[ComponentReference(typeof(SharedProjectileComponent))]
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)
{
Shooter = compState.Shooter;
2020-07-02 23:24:27 +02:00
IgnoreShooter = compState.IgnoreShooter;
}
}
}
}