This repository has been archived by the owner on Jan 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create new Ragdoll create methods * Move Map.Ragdoll too Ragdoll.List * Update RagdollList.cs doc * Rename Delete to Destroy for consistency * Unsubscribe ragdoll events * Add roleType to error Co-authored-by: louis1706 <louismonneyron5@yahoo.com> Co-authored-by: undid-iridium <francis.x.irizarry@gmail.com> Co-authored-by: Pietro <iopietro@hotmail.it>
- Loading branch information
1 parent
8d70878
commit 3668be1
Showing
9 changed files
with
143 additions
and
206 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
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
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
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="RagdollList.cs" company="Exiled Team"> | ||
// Copyright (c) Exiled Team. All rights reserved. | ||
// Licensed under the CC BY-SA 3.0 license. | ||
// </copyright> | ||
// ----------------------------------------------------------------------- | ||
|
||
namespace Exiled.Events.Handlers.Internal | ||
{ | ||
using Exiled.API.Features; | ||
using PlayerRoles.Ragdolls; | ||
|
||
/// <summary> | ||
/// Handles adding and removing from <see cref="Ragdoll.BasicRagdollToRagdoll"/>. | ||
/// </summary> | ||
internal static class RagdollList | ||
{ | ||
/// <summary> | ||
/// Called after a ragdoll is spawned. Hooked to <see cref="RagdollManager.OnRagdollSpawned"/>. | ||
/// </summary> | ||
/// <param name="ragdoll">The spawned ragdoll.</param> | ||
public static void OnSpawnedRagdoll(BasicRagdoll ragdoll) => Ragdoll.Get(ragdoll); | ||
|
||
/// <summary> | ||
/// Called before a ragdoll is destroyed. Hooked to <see cref="RagdollManager.OnRagdollRemoved"/>. | ||
/// </summary> | ||
/// <param name="ragdoll">The destroyed ragdoll.</param> | ||
public static void OnRemovedRagdoll(BasicRagdoll ragdoll) => Ragdoll.BasicRagdollToRagdoll.Remove(ragdoll); | ||
} | ||
} |
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.