forked from Exiled-Official/EXILED
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixes * all is fixed * fix no.2 * Update EXILED/Exiled.API/Extensions/RoleExtensions.cs Co-authored-by: Bolton <[email protected]> * Update EXILED/Exiled.Events/Patches/Events/Server/SelectingRespawnTeam.cs Co-authored-by: Misaka-ZeroTwo <[email protected]> * Update EXILED/Exiled.Events/Patches/Events/Server/SelectingRespawnTeam.cs * team reborn --------- Co-authored-by: Bolton <[email protected]> Co-authored-by: Misaka-ZeroTwo <[email protected]>
- Loading branch information
1 parent
941aacd
commit c8d8fd5
Showing
16 changed files
with
211 additions
and
136 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
38 changes: 38 additions & 0 deletions
38
EXILED/Exiled.Events/EventArgs/Map/AnnouncingChaosEntranceEventArgs.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,38 @@ | ||
// ----------------------------------------------------------------------- | ||
// <copyright file="AnnouncingChaosEntranceEventArgs.cs" company="ExMod Team"> | ||
// Copyright (c) ExMod Team. All rights reserved. | ||
// Licensed under the CC BY-SA 3.0 license. | ||
// </copyright> | ||
// ----------------------------------------------------------------------- | ||
|
||
namespace Exiled.Events.EventArgs.Map | ||
{ | ||
using Exiled.API.Features.Waves; | ||
using Exiled.Events.EventArgs.Interfaces; | ||
using Respawning.Announcements; | ||
|
||
/// <summary> | ||
/// Contains all information before Chaos wave entrance. | ||
/// </summary> | ||
public class AnnouncingChaosEntranceEventArgs : IDeniableEvent | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="AnnouncingChaosEntranceEventArgs"/> class. | ||
/// </summary> | ||
/// <param name="announcement"><inheritdoc cref="Wave"/></param> | ||
/// <param name="isAllowed"><inheritdoc cref="IsAllowed"/></param> | ||
public AnnouncingChaosEntranceEventArgs(WaveAnnouncementBase announcement, bool isAllowed = true) | ||
{ | ||
Wave = TimedWave.GetTimedWaves().Find(x => x.Announcement == announcement); | ||
IsAllowed = isAllowed; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the entering wave. | ||
/// </summary> | ||
public TimedWave Wave { get; } | ||
|
||
/// <inheritdoc/> | ||
public bool IsAllowed { get; set; } | ||
} | ||
} |
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.