Adds AttemptEntity(Uns|S)tickEvent. (#20728)
* try-stick * convert spider charge to attempt-stick-events
This commit is contained in:
@@ -1,5 +1,28 @@
|
||||
namespace Content.Server.Sticky.Events;
|
||||
|
||||
/// <summary>
|
||||
/// Risen on sticky entity to see if it can stick to another entity.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public record struct AttemptEntityStickEvent(EntityUid Target, EntityUid User)
|
||||
{
|
||||
public readonly EntityUid Target = Target;
|
||||
public readonly EntityUid User = User;
|
||||
public 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)
|
||||
{
|
||||
public readonly EntityUid Target = Target;
|
||||
public readonly EntityUid User = User;
|
||||
public bool Cancelled = false;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Risen on sticky entity when it was stuck to other entity.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user