From 29e354e39376c7660731728625e04a28ddd9d99e Mon Sep 17 00:00:00 2001 From: NotIntense Date: Sun, 1 Oct 2023 01:10:07 -0400 Subject: [PATCH] Decontamination API --- NwPluginAPI/Core/Decontamination.cs | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 NwPluginAPI/Core/Decontamination.cs diff --git a/NwPluginAPI/Core/Decontamination.cs b/NwPluginAPI/Core/Decontamination.cs new file mode 100644 index 0000000..de001e8 --- /dev/null +++ b/NwPluginAPI/Core/Decontamination.cs @@ -0,0 +1,35 @@ +namespace PluginAPI.Core +{ + using LightContainmentZoneDecontamination; + using static LightContainmentZoneDecontamination.DecontaminationController; + + /// + /// Manages the . + /// + public static class Decontamination + { + /// + /// Gets the singleton. + /// + public static readonly DecontaminationController Singleton = DecontaminationController.Singleton; + + /// + /// Gets if Light Containment Zone is currently being decontaminated. + /// + public static bool IsDecontamination => Singleton.IsDecontaminating; + + /// + /// Gets or sets the . + /// + public static DecontaminationStatus Status + { + get => Singleton.DecontaminationOverride; + set => Singleton.NetworkDecontaminationOverride = value; + } + + /// + /// Forces Light Containment Zone to be decontaminated. + /// + public static void ForceDecontamination() => Singleton.ForceDecontamination(); + } +}