Cache CanMove (#7480)
This commit is contained in:
17
Content.Shared/Movement/UpdateCanMoveEvent.cs
Normal file
17
Content.Shared/Movement/UpdateCanMoveEvent.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Content.Shared.Movement.Components;
|
||||
|
||||
namespace Content.Shared.Movement;
|
||||
|
||||
/// <summary>
|
||||
/// Raised whenever <see cref="IMoverComponent.CanMove"/> needs to be updated. Cancel this event to prevent a
|
||||
/// mover from moving.
|
||||
/// </summary>
|
||||
public sealed class UpdateCanMoveEvent : CancellableEntityEventArgs
|
||||
{
|
||||
public UpdateCanMoveEvent(EntityUid uid)
|
||||
{
|
||||
Uid = uid;
|
||||
}
|
||||
|
||||
public EntityUid Uid { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user