Content changes for engine RotateEvent removal PR (#11448)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Content.Server.ParticleAccelerator.Components;
|
||||
using Content.Server.ParticleAccelerator.Components;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.Physics.Components;
|
||||
using Robust.Shared.Physics.Events;
|
||||
@@ -10,7 +10,7 @@ namespace Content.Server.ParticleAccelerator.EntitySystems
|
||||
{
|
||||
private void InitializePartSystem()
|
||||
{
|
||||
SubscribeLocalEvent<ParticleAcceleratorPartComponent, RotateEvent>(OnRotateEvent);
|
||||
SubscribeLocalEvent<ParticleAcceleratorPartComponent, MoveEvent>(OnMoveEvent);
|
||||
SubscribeLocalEvent<ParticleAcceleratorPartComponent, PhysicsBodyTypeChangedEvent>(BodyTypeChanged);
|
||||
}
|
||||
|
||||
@@ -22,9 +22,9 @@ namespace Content.Server.ParticleAccelerator.EntitySystems
|
||||
component.OnAnchorChanged();
|
||||
}
|
||||
|
||||
private static void OnRotateEvent(EntityUid uid, ParticleAcceleratorPartComponent component, ref RotateEvent args)
|
||||
private static void OnMoveEvent(EntityUid uid, ParticleAcceleratorPartComponent component, ref MoveEvent args)
|
||||
{
|
||||
component.Rotated();
|
||||
component.Moved();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user