Files

36 lines
831 B
C#
Raw Permalink Normal View History

using Robust.Shared.Serialization;
namespace Content.Shared._White.GhostRecruitment;
2024-12-23 00:01:19 +03:00
[Serializable, NetSerializable]
public sealed class GhostsRecruitmentSuccessEvent
{
public string RecruitmentName;
public GhostsRecruitmentSuccessEvent(string recruitmentName)
{
RecruitmentName = recruitmentName;
}
}
2024-12-23 00:01:19 +03:00
[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;
}