From 815a08271c7f093c5f25e07d14ae19c92edd7db1 Mon Sep 17 00:00:00 2001 From: MSWS Date: Sat, 3 Feb 2024 17:18:01 -0800 Subject: [PATCH] Start work on ST --- .../Commands/SpecialTreatmentBehavior.cs | 34 +++++++++++++++++++ .../Mod/Warden/ISpecialTreatmentService.cs | 9 +++++ 2 files changed, 43 insertions(+) create mode 100644 mod/Jailbreak.Warden/Commands/SpecialTreatmentBehavior.cs create mode 100644 public/Jailbreak.Public/Mod/Warden/ISpecialTreatmentService.cs diff --git a/mod/Jailbreak.Warden/Commands/SpecialTreatmentBehavior.cs b/mod/Jailbreak.Warden/Commands/SpecialTreatmentBehavior.cs new file mode 100644 index 00000000..ba41cd1c --- /dev/null +++ b/mod/Jailbreak.Warden/Commands/SpecialTreatmentBehavior.cs @@ -0,0 +1,34 @@ +using System.Reflection; +using CounterStrikeSharp.API.Core; +using Jailbreak.Public.Behaviors; +using Jailbreak.Public.Mod.Warden; + +namespace Jailbreak.Warden.Commands; + +public class SpecialTreatmentBehavior : IPluginBehavior, ISpecialTreatmentService +{ + private ISet _sts = new HashSet(); + + public void Start(BasePlugin parent) + { + parent.RegisterEventHandler(OnPlayerDisconnect); + } + + HookResult OnPlayerDisconnect(CCSPlayerController player, GameEventInfo info) + { + if(!player.IsValid) + return HookResult.Continue; + + return HookResult.Continue; + } + + public bool IsSpecialTreatment(CCSPlayerController? player) + { + throw new NotImplementedException(); + } + + public void SetSpecialTreatment(CCSPlayerController? player, bool value) + { + throw new NotImplementedException(); + } +} \ No newline at end of file diff --git a/public/Jailbreak.Public/Mod/Warden/ISpecialTreatmentService.cs b/public/Jailbreak.Public/Mod/Warden/ISpecialTreatmentService.cs new file mode 100644 index 00000000..c70c83fe --- /dev/null +++ b/public/Jailbreak.Public/Mod/Warden/ISpecialTreatmentService.cs @@ -0,0 +1,9 @@ +using CounterStrikeSharp.API.Core; + +namespace Jailbreak.Public.Mod.Warden; + +public interface ISpecialTreatmentService +{ + bool IsSpecialTreatment(CCSPlayerController? player); + void SetSpecialTreatment(CCSPlayerController? player, bool value); +} \ No newline at end of file