6
2025-12-13 13:46:17 +03:00

34 lines
881 B
C#

using Robust.Shared.Serialization;
namespace Content.Shared.Pointing;
// TODO just make pointing properly predicted?
// So true
/// <summary>
/// Event raised when someone runs the client-side pointing verb.
/// </summary>
[Serializable, NetSerializable]
public sealed class PointingAttemptEvent : EntityEventArgs
{
public NetEntity Target;
public PointingAttemptEvent(NetEntity target)
{
Target = target;
}
}
/// <summary>
/// Raised on the entity who is pointing after they point at something.
/// </summary>
/// <param name="Pointed"></param>
[ByRefEvent]
public readonly record struct AfterPointedAtEvent(EntityUid Pointed);
/// <summary>
/// Raised on an entity after they are pointed at by another entity.
/// </summary>
/// <param name="Pointer"></param>
[ByRefEvent]
public readonly record struct AfterGotPointedAtEvent(EntityUid Pointer);