[Cleanup] Remove FellDownEvent (#39762)
* Remove * Better description maybe --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ecc499a7d5
commit
63f38558ca
@@ -201,9 +201,6 @@ namespace Content.Server.Hands.Systems
|
|||||||
var holderVelocity = _physicsQuery.TryComp(entity, out var physics) ? physics.LinearVelocity : Vector2.Zero;
|
var holderVelocity = _physicsQuery.TryComp(entity, out var physics) ? physics.LinearVelocity : Vector2.Zero;
|
||||||
var spreadMaxAngle = Angle.FromDegrees(DropHeldItemsSpread);
|
var spreadMaxAngle = Angle.FromDegrees(DropHeldItemsSpread);
|
||||||
|
|
||||||
var fellEvent = new FellDownEvent(entity);
|
|
||||||
RaiseLocalEvent(entity, fellEvent);
|
|
||||||
|
|
||||||
foreach (var hand in entity.Comp.Hands.Keys)
|
foreach (var hand in entity.Comp.Hands.Keys)
|
||||||
{
|
{
|
||||||
if (!TryGetHeldItem(entity.AsNullable(), hand, out var heldEntity))
|
if (!TryGetHeldItem(entity.AsNullable(), hand, out var heldEntity))
|
||||||
|
|||||||
@@ -243,22 +243,8 @@ public sealed class DownedEvent : EntityEventArgs, IInventoryRelayEvent
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raised after an entity falls down.
|
/// Raised on an inhand entity being held by an entity who is dropping items as part of an attempted state change to down.
|
||||||
/// </summary>
|
/// If cancelled the inhand entity will not be dropped.
|
||||||
public sealed class FellDownEvent : EntityEventArgs
|
|
||||||
{
|
|
||||||
public EntityUid Uid { get; }
|
|
||||||
|
|
||||||
public FellDownEvent(EntityUid uid)
|
|
||||||
{
|
|
||||||
Uid = uid;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Raised on the entity being thrown due to the holder falling down.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ByRefEvent]
|
[ByRefEvent]
|
||||||
public record struct FellDownThrowAttemptEvent(EntityUid Thrower, bool Cancelled = false);
|
public record struct FellDownThrowAttemptEvent(EntityUid Thrower, bool Cancelled = false);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user