namespace Content.Shared.Throwing { /// /// Base class for all throw events. /// public abstract class ThrowEvent : HandledEntityEventArgs { ///Nyano - Summary: Allows us to tell who threw the item. It matters! /// /// The entity that threw . /// public EntityUid? User { get; } // End Nyano code. public readonly EntityUid Thrown; public readonly EntityUid Target; public ThrownItemComponent Component; public ThrowEvent(EntityUid? user, EntityUid thrown, EntityUid target, ThrownItemComponent component) //Nyano - Summary: User added. { User = user; //Nyano - Summary: User added. Thrown = thrown; Target = target; Component = component; } } /// /// Raised directed on the target entity being hit by the thrown entity. /// public sealed class ThrowHitByEvent : ThrowEvent { public ThrowHitByEvent(EntityUid? user, EntityUid thrown, EntityUid target, ThrownItemComponent component) : base(user, thrown, target, component) //Nyano - Summary: User added. { } } /// /// Raised directed on the thrown entity that hits another. /// public sealed class ThrowDoHitEvent : ThrowEvent { public ThrowDoHitEvent(EntityUid thrown, EntityUid target, ThrownItemComponent component) : base(null, thrown, target, component) //Nyano - Summary: User added. { } } }