Re-organize all projects (#4166)
This commit is contained in:
19
Content.Client/Projectiles/ProjectileComponent.cs
Normal file
19
Content.Client/Projectiles/ProjectileComponent.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Content.Shared.Projectiles;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Client.Projectiles
|
||||
{
|
||||
[RegisterComponent]
|
||||
[ComponentReference(typeof(SharedProjectileComponent))]
|
||||
public class ProjectileComponent : SharedProjectileComponent
|
||||
{
|
||||
public override void HandleComponentState(ComponentState? curState, ComponentState? nextState)
|
||||
{
|
||||
if (curState is ProjectileComponentState compState)
|
||||
{
|
||||
Shooter = compState.Shooter;
|
||||
IgnoreShooter = compState.IgnoreShooter;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user