Files
crystall-punk-14/Content.Client/GameObjects/Components/Projectiles/ProjectileComponent.cs

20 lines
633 B
C#
Raw Normal View History

2020-07-02 23:24:27 +02:00
using Content.Shared.GameObjects.Components.Projectiles;
using Robust.Shared.GameObjects;
namespace Content.Client.GameObjects.Components.Projectiles
{
[RegisterComponent]
[ComponentReference(typeof(SharedProjectileComponent))]
2020-07-02 23:24:27 +02:00
public class ProjectileComponent : SharedProjectileComponent
{
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;
}
}
}
}