Files
OldThink/Content.Shared/_White/GhostRecruitment/GhostRecruitmentEvents.cs
2024-12-23 00:01:19 +03:00

36 lines
831 B
C#

using Robust.Shared.Serialization;
namespace Content.Shared._White.GhostRecruitment;
[Serializable, NetSerializable]
public sealed class GhostsRecruitmentSuccessEvent
{
public string RecruitmentName;
public GhostsRecruitmentSuccessEvent(string recruitmentName)
{
RecruitmentName = recruitmentName;
}
}
[Serializable, NetSerializable]
public abstract class CancelableEventArgs
{
/// <summary>
/// Whether this even has been cancelled.
/// </summary>
public bool Cancelled { get; private set; }
/// <summary>
/// Cancels the event.
/// </summary>
public void Cancel() => Cancelled = true;
/// <summary>
/// Uncancels the event. Don't call this unless you know what you're doing.
/// </summary>
public void Uncancel() => Cancelled = false;
}