full sticky prediction (#30230)
* move all sticky stuff to shared and cleanup/grammar fix * update imports and ref --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
26
Content.Shared/Sticky/EntityStuckEvent.cs
Normal file
26
Content.Shared/Sticky/EntityStuckEvent.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
namespace Content.Shared.Sticky;
|
||||
|
||||
/// <summary>
|
||||
/// Risen on sticky entity to see if it can stick to another entity.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public record struct AttemptEntityStickEvent(EntityUid Target, EntityUid User, bool Cancelled = false);
|
||||
|
||||
/// <summary>
|
||||
/// Risen on sticky entity to see if it can unstick from another entity.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public record struct AttemptEntityUnstickEvent(EntityUid Target, EntityUid User, bool Cancelled = false);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Risen on sticky entity when it was stuck to other entity.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public record struct EntityStuckEvent(EntityUid Target, EntityUid User);
|
||||
|
||||
/// <summary>
|
||||
/// Risen on sticky entity when it was unstuck from other entity.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public record struct EntityUnstuckEvent(EntityUid Target, EntityUid User);
|
||||
Reference in New Issue
Block a user