This commit is contained in:
Alex Evgrashin
2022-04-15 01:00:50 +03:00
committed by GitHub
parent e769ad2725
commit fe4dbfd2f6
18 changed files with 556 additions and 10 deletions

View File

@@ -0,0 +1,45 @@
namespace Content.Server.Sticky.Events;
/// <summary>
/// Risen on sticky entity when it was stuck to other entity.
/// </summary>
public sealed class EntityStuckEvent : EntityEventArgs
{
/// <summary>
/// Entity that was used as a surface for sticky object.
/// </summary>
public readonly EntityUid Target;
/// <summary>
/// Entity that stuck sticky object on target.
/// </summary>
public readonly EntityUid User;
public EntityStuckEvent(EntityUid target, EntityUid user)
{
Target = target;
User = user;
}
}
/// <summary>
/// Risen on sticky entity when it was unstuck from other entity.
/// </summary>
public sealed class EntityUnstuckEvent : EntityEventArgs
{
/// <summary>
/// Entity that was used as a surface for sticky object.
/// </summary>
public readonly EntityUid Target;
/// <summary>
/// Entity that unstuck sticky object on target.
/// </summary>
public readonly EntityUid User;
public EntityUnstuckEvent(EntityUid target, EntityUid user)
{
Target = target;
User = user;
}
}