Skip to content

Commit

Permalink
feat: Lift::Get(ElevatorGroup) (ExMod-Team#372)
Browse files Browse the repository at this point in the history
Lift::Get(ElevatorGroup)
  • Loading branch information
louis1706 authored and dreamsvxyz committed Jan 6, 2025
1 parent 1efcbf9 commit f52f8be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions EXILED/Exiled.API/Features/Lift.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,13 @@ public float AnimationTime
/// <returns>A <see cref="Lift"/> or <see langword="null"/> if not found.</returns>
public static Lift Get(ElevatorType type) => Get(lift => lift.Type == type).FirstOrDefault();

/// <summary>
/// Gets the <see cref="Lift"/> corresponding to the specified <see cref="ElevatorGroup"/>, if any.
/// </summary>
/// <param name="type">The <see cref="ElevatorGroup"/>.</param>
/// <returns>A <see cref="Lift"/> or <see langword="null"/> if not found.</returns>
public static Lift Get(ElevatorGroup type) => Get(lift => lift.Group == type).FirstOrDefault();

/// <summary>
/// Gets the <see cref="Lift"/> corresponding to the specified name, if any.
/// </summary>
Expand Down

0 comments on commit f52f8be

Please sign in to comment.