* First commit * Fixes * Added the noise * Renames * Timespan * Fixed space * entity -> ent * This shouldn't work * opps.... * Datafield name change * Better comments * small comment * Personal skill issue * Event renames and stuff * Couple fixes * Defib ref fixes (Silly me) * Added clumsy back! * no hard code clumsy! * Identity fix * Event name change * Comment change * Function name change * opp * Update names * Damage stuff! * Fixes! * Fixes * opps * This was hidden away!! * negative diff feeds me
37 lines
1.5 KiB
C#
37 lines
1.5 KiB
C#
using Content.Shared.Inventory;
|
|
using Content.Shared.Climbing.Components;
|
|
|
|
namespace Content.Shared.Climbing.Events;
|
|
|
|
public abstract partial class BeforeClimbEvent : CancellableEntityEventArgs
|
|
{
|
|
public readonly EntityUid GettingPutOnTable;
|
|
public readonly EntityUid PuttingOnTable;
|
|
public readonly Entity<ClimbableComponent> BeingClimbedOn;
|
|
|
|
public BeforeClimbEvent(EntityUid gettingPutOntable, EntityUid puttingOnTable, Entity<ClimbableComponent> beingClimbedOn)
|
|
{
|
|
GettingPutOnTable = gettingPutOntable;
|
|
PuttingOnTable = puttingOnTable;
|
|
BeingClimbedOn = beingClimbedOn;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// This event is raised on the the person either getting put on or going on the table.
|
|
/// The event is also called on their clothing as well.
|
|
/// </summary>
|
|
public sealed class SelfBeforeClimbEvent : BeforeClimbEvent, IInventoryRelayEvent
|
|
{
|
|
public SlotFlags TargetSlots { get; } = SlotFlags.WITHOUT_POCKET;
|
|
public SelfBeforeClimbEvent(EntityUid gettingPutOntable, EntityUid puttingOnTable, Entity<ClimbableComponent> beingClimbedOn) : base(gettingPutOntable, puttingOnTable, beingClimbedOn) { }
|
|
}
|
|
|
|
/// <summary>
|
|
/// This event is raised on the thing being climbed on.
|
|
/// </summary>
|
|
public sealed class TargetBeforeClimbEvent : BeforeClimbEvent
|
|
{
|
|
public TargetBeforeClimbEvent(EntityUid gettingPutOntable, EntityUid puttingOnTable, Entity<ClimbableComponent> beingClimbedOn) : base(gettingPutOntable, puttingOnTable, beingClimbedOn) { }
|
|
}
|