Files
tbd-station-14/Content.Server/Sticky/Events/EntityStuckEvent.cs
Alex Evgrashin fe4dbfd2f6 C4 (#7486)
2022-04-14 15:00:50 -07:00

46 lines
1.1 KiB
C#

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;
}
}