forked from Exiled-Official/EXILED
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into InteractingScp330CompileFix
- Loading branch information
Showing
7 changed files
with
336 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// ----------------------------------------------------------------------- | ||
// <copyright file="UncuffReason.cs" company="Exiled Team"> | ||
// Copyright (c) Exiled Team. All rights reserved. | ||
// Licensed under the CC BY-SA 3.0 license. | ||
// </copyright> | ||
// ----------------------------------------------------------------------- | ||
|
||
namespace Exiled.API.Enums | ||
{ | ||
/// <summary> | ||
/// Reasons that player gets uncuffed. | ||
/// </summary> | ||
public enum UncuffReason | ||
{ | ||
/// <summary> | ||
/// Uncuffed by a player. | ||
/// </summary> | ||
Player, | ||
|
||
/// <summary> | ||
/// Uncuffed due to the distance between cuffer and target. | ||
/// </summary> | ||
OutOfRange, | ||
|
||
/// <summary> | ||
/// Uncuffed due to the cuffer no longer alive. | ||
/// </summary> | ||
CufferDied, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
EXILED/Exiled.Events/EventArgs/Player/RemovedHandcuffsEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// ----------------------------------------------------------------------- | ||
// <copyright file="RemovedHandcuffsEventArgs.cs" company="Exiled Team"> | ||
// Copyright (c) Exiled Team. All rights reserved. | ||
// Licensed under the CC BY-SA 3.0 license. | ||
// </copyright> | ||
// ----------------------------------------------------------------------- | ||
|
||
namespace Exiled.Events.EventArgs.Player | ||
{ | ||
using API.Enums; | ||
using API.Features; | ||
using Exiled.Events.EventArgs.Interfaces; | ||
|
||
/// <summary> | ||
/// Contains all information after freeing a handcuffed player. | ||
/// </summary> | ||
public class RemovedHandcuffsEventArgs : IPlayerEvent | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="RemovedHandcuffsEventArgs" /> class. | ||
/// </summary> | ||
/// <param name="cuffer">The cuffer player.</param> | ||
/// <param name="target">The target player was uncuffed.</param> | ||
/// <param name="uncuffReason">The reason for removing the handcuffs.</param> | ||
public RemovedHandcuffsEventArgs(Player cuffer, Player target, UncuffReason uncuffReason) | ||
{ | ||
Player = cuffer; | ||
Target = target; | ||
UncuffReason = uncuffReason; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the target player to be cuffed. | ||
/// </summary> | ||
public Player Target { get; } | ||
|
||
/// <summary> | ||
/// Gets the cuffer player. | ||
/// </summary> | ||
public Player Player { get; } | ||
|
||
/// <summary> | ||
/// Gets the reason for removing handcuffs. | ||
/// </summary> | ||
public UncuffReason UncuffReason { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.