Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using LabApi.Events.Arguments.Interfaces;
using LabApi.Features.Wrappers;
using PlayerStatsSystem;
using Subtitles;
using System;

Expand All @@ -16,11 +17,13 @@ public class CassieQueuedScpTerminationEventArgs : EventArgs, IPlayerEvent
/// <param name="player">The SCP player the C.A.S.S.I.E termination announcement is for.</param>
/// <param name="announcement">The message C.A.S.S.I.E is supposed to say.</param>
/// <param name="subtitles">The subtitle part array of the message.</param>
public CassieQueuedScpTerminationEventArgs(ReferenceHub player, string announcement, SubtitlePart[] subtitles)
/// <param name="damageHandler">The damage handler that caused the termination of the SCP.</param>
public CassieQueuedScpTerminationEventArgs(ReferenceHub player, string announcement, SubtitlePart[] subtitles, DamageHandlerBase damageHandler)
{
Player = Player.Get(player);
Announcement = announcement;
SubtitleParts = subtitles;
DamageHandler = damageHandler;
}

/// <summary>
Expand All @@ -37,4 +40,9 @@ public CassieQueuedScpTerminationEventArgs(ReferenceHub player, string announcem
/// Gets or sets the subtitle parts of the message.
/// </summary>
public SubtitlePart[] SubtitleParts { get; }

/// <summary>
/// The Damage Handler responsible for the SCP Termination.
/// </summary>
public DamageHandlerBase DamageHandler { get; }
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using LabApi.Events.Arguments.Interfaces;
using LabApi.Features.Wrappers;
using PlayerStatsSystem;
using Subtitles;
using System;

Expand All @@ -16,12 +17,14 @@ public class CassieQueuingScpTerminationEventArgs : EventArgs, IPlayerEvent, ICa
/// <param name="player">The SCP player the C.A.S.S.I.E termination announcement is for.</param>
/// <param name="announcement">The message C.A.S.S.I.E is supposed to say.</param>
/// <param name="subtitles">The subtitle part array of the message.</param>
public CassieQueuingScpTerminationEventArgs(ReferenceHub player, string announcement, SubtitlePart[] subtitles)
/// <param name="damageHandler">The damage handler that caused the termination of the SCP.</param>
public CassieQueuingScpTerminationEventArgs(ReferenceHub player, string announcement, SubtitlePart[] subtitles, DamageHandlerBase damageHandler)
{
IsAllowed = true;
Player = Player.Get(player);
Announcement = announcement;
SubtitleParts = [.. subtitles];
DamageHandler = damageHandler;
}

/// <summary>
Expand All @@ -41,4 +44,9 @@ public CassieQueuingScpTerminationEventArgs(ReferenceHub player, string announce

/// <inheritdoc />
public bool IsAllowed { get; set; }

/// <summary>
/// The Damage Handler responsible for the SCP Termination.
/// </summary>
public DamageHandlerBase DamageHandler { get; }
}