diff --git a/src/Module.cs b/src/BotMonitorPlugin.cs similarity index 85% rename from src/Module.cs rename to src/BotMonitorPlugin.cs index 4e7b346..3d5f1e8 100644 --- a/src/Module.cs +++ b/src/BotMonitorPlugin.cs @@ -1,16 +1,18 @@ -using EFT; +using BepInEx; +using EFT; using EFT.UI; using System.Text.RegularExpressions; using UnityEngine; namespace astealz.BotMonitor { - class Module + [BepInPlugin("astealz.BotMonitor", "astealz.BotMonitor", "1.1.0")] + public class BotMonitorPlugin : BaseUnityPlugin { internal const string Name = "BotMonitor"; private static float timer = 0f; - static void Main() + public void Awake() { StaticManager.Instance.StaticUpdate += Instance_StaticUpdate; } @@ -56,7 +58,7 @@ namespace astealz.BotMonitor return; } - var botCounter = Extensions.GetOrAddComponent(Globals.GameWorldObject); + var botCounter = Extensions.GetOrAddComponent(Globals.GameWorldObject); botCounter.SetMode(value); botCounter.enabled = value != 0; } diff --git a/src/Extensions.cs b/src/Extensions.cs index 71d3d31..66e104f 100644 --- a/src/Extensions.cs +++ b/src/Extensions.cs @@ -181,6 +181,8 @@ namespace astealz.BotMonitor return "followerTagilla"; case WildSpawnType.followerTest: return "followerTest"; + case WildSpawnType.exUsec: + return "exUsec"; } return wildSpawnType.ToString(); } diff --git a/src/GameConsole.cs b/src/GameConsole.cs index 0a37ece..0c5577b 100644 --- a/src/GameConsole.cs +++ b/src/GameConsole.cs @@ -45,11 +45,11 @@ namespace astealz.BotMonitor { _console = consoleScreen; - AddLog($"{Module.Name}: Console initialized", Color.green); + AddLog($"{BotMonitorPlugin.Name}: Console initialized", Color.green); - AddCommand($"{Module.Name.ToLower()}-help", ShowHelp); + AddCommand($"{BotMonitorPlugin.Name.ToLower()}-help", ShowHelp); - AddLog($"type '{Module.Name.ToLower()}-help' to see available commands", Color.green); + AddLog($"type '{BotMonitorPlugin.Name.ToLower()}-help' to see available commands", Color.green); } private static void ShowHelp(Match obj) diff --git a/src/Logger.cs b/src/Logger.cs index 2ca2ea9..3d84ba9 100644 --- a/src/Logger.cs +++ b/src/Logger.cs @@ -6,13 +6,13 @@ namespace astealz.BotMonitor { public static void Info(string msg) { - var s = $"{Module.Name}: {msg}"; + var s = $"{BotMonitorPlugin.Name}: {msg}"; GameConsole.AddLog(s); } public static void Error(string msg) { - var s = $"{Module.Name}: {msg}"; + var s = $"{BotMonitorPlugin.Name}: {msg}"; GameConsole.AddLog(s, Color.red); } } diff --git a/src/References/Assembly-CSharp.dll b/src/References/Assembly-CSharp.dll index 4b841a4..a61b380 100644 Binary files a/src/References/Assembly-CSharp.dll and b/src/References/Assembly-CSharp.dll differ diff --git a/src/References/Comfort.dll b/src/References/Comfort.dll index e462864..5f93c0a 100644 Binary files a/src/References/Comfort.dll and b/src/References/Comfort.dll differ diff --git a/src/References/UnityEngine.dll b/src/References/UnityEngine.dll new file mode 100644 index 0000000..6ff1d0f Binary files /dev/null and b/src/References/UnityEngine.dll differ diff --git a/src/astealz.BotMonitor.csproj b/src/astealz.BotMonitor.csproj index 44f214f..f4b8bd8 100644 --- a/src/astealz.BotMonitor.csproj +++ b/src/astealz.BotMonitor.csproj @@ -47,6 +47,9 @@ References\Assembly-CSharp.dll False + + packages\BepInEx.BaseLib.5.4.17\lib\net35\BepInEx.dll + References\Comfort.dll False @@ -55,6 +58,9 @@ + + References\UnityEngine.dll + References\UnityEngine.CoreModule.dll False @@ -75,10 +81,10 @@ + - diff --git a/src/packages.config b/src/packages.config index 6fa11be..1d94606 100644 --- a/src/packages.config +++ b/src/packages.config @@ -1,4 +1,5 @@  + \ No newline at end of file