Climbing refactor (#20516)

This commit is contained in:
metalgearsloth
2023-10-11 10:41:11 +11:00
committed by GitHub
parent ab75941bc0
commit edbfef22d6
30 changed files with 637 additions and 661 deletions

View File

@@ -0,0 +1,7 @@
namespace Content.Shared.Climbing.Events;
/// <summary>
/// Raised on an entity when it is climbed on.
/// </summary>
[ByRefEvent]
public readonly record struct ClimbedOnEvent(EntityUid Climber, EntityUid Instigator);

View File

@@ -4,7 +4,4 @@ namespace Content.Shared.Climbing.Events;
/// Raised on an entity when it ends climbing.
/// </summary>
[ByRefEvent]
public readonly record struct EndClimbEvent
{
}
public readonly record struct EndClimbEvent;

View File

@@ -0,0 +1,7 @@
namespace Content.Shared.Climbing.Events;
/// <summary>
/// Raised on an entity when it successfully climbs on something.
/// </summary>
[ByRefEvent]
public readonly record struct StartClimbEvent(EntityUid Climbable);