* Enable nullability in Content.Client * Remove #nullable enable * Merge fixes * Remove Debug.Assert * Merge fixes * Fix build * Fix build
22 lines
669 B
C#
22 lines
669 B
C#
using Content.Shared.GameObjects.Components.Projectiles;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Client.GameObjects.Components.Projectiles
|
|
{
|
|
[RegisterComponent]
|
|
public class ProjectileComponent : SharedProjectileComponent
|
|
{
|
|
protected override EntityUid Shooter => _shooter;
|
|
private EntityUid _shooter;
|
|
|
|
public override void HandleComponentState(ComponentState? curState, ComponentState? nextState)
|
|
{
|
|
if (curState is ProjectileComponentState compState)
|
|
{
|
|
_shooter = compState.Shooter;
|
|
IgnoreShooter = compState.IgnoreShooter;
|
|
}
|
|
}
|
|
}
|
|
}
|