Bullet impact effects (#9530)

This commit is contained in:
metalgearsloth
2022-07-09 13:46:11 +10:00
committed by GitHub
parent 1b5f88e4d0
commit 5107bc3be7
14 changed files with 175 additions and 85 deletions

View File

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