diff --git a/GamecraftScripting/GamecraftScripting.csproj b/GamecraftScripting/GamecraftScripting.csproj index ebe105e..4412e83 100644 --- a/GamecraftScripting/GamecraftScripting.csproj +++ b/GamecraftScripting/GamecraftScripting.csproj @@ -3,7 +3,7 @@ net472 true - 0.1.0.0 + 0.2.1 Exmods GNU General Public Licence 3+ https://git.exmods.org/SnakesOnAGame/GamecraftScripting @@ -11,9 +11,9 @@ - - - + + + @@ -795,6 +795,12 @@ ..\..\ref\Gamecraft_Data\Managed\VisualProfiler.dll + + ..\ref\Plugins\GamecraftModdingAPI.dll + + + ..\..\ref\Plugins\GamecraftModdingAPI.dll + diff --git a/GamecraftScripting/Plugin.cs b/GamecraftScripting/Plugin.cs index 44158eb..0769718 100644 --- a/GamecraftScripting/Plugin.cs +++ b/GamecraftScripting/Plugin.cs @@ -9,7 +9,7 @@ using IllusionPlugin; using UnityEngine; using GamecraftModdingAPI; using GamecraftModdingAPI.Commands; -using Harmony; +using HarmonyLib; namespace GamecraftScripting { @@ -18,10 +18,10 @@ namespace GamecraftScripting public string[] Filter { get; } = new string[] { "Gamecraft" }; public string Name { get; } = Assembly.GetExecutingAssembly().GetName().Name; - + public string Version { get; } = Assembly.GetExecutingAssembly().GetName().Version.ToString(); - private HarmonyInstance harmony = null; + private Harmony harmony = null; public void OnApplicationQuit() { @@ -35,7 +35,7 @@ namespace GamecraftScripting { Main.Init(); var currentAssembly = Assembly.GetExecutingAssembly(); - harmony = HarmonyInstance.Create(currentAssembly.GetName().Name); + harmony = new Harmony(currentAssembly.GetName().Name); harmony.PatchAll(currentAssembly); // register development commands #if DEBUG diff --git a/GamecraftScripting/Serialization/DeserializeFromDiskEntitiesEnginePatch.cs b/GamecraftScripting/Serialization/DeserializeFromDiskEntitiesEnginePatch.cs index b450842..cf87520 100644 --- a/GamecraftScripting/Serialization/DeserializeFromDiskEntitiesEnginePatch.cs +++ b/GamecraftScripting/Serialization/DeserializeFromDiskEntitiesEnginePatch.cs @@ -1,7 +1,7 @@ using System; using System.Text; using System.Reflection; -using Harmony; +using HarmonyLib; using RobocraftX.Common; using Svelto.DataStructures; using Svelto.ECS; diff --git a/GamecraftScripting/Serialization/SaveAndLoadCompositionRootPatch.cs b/GamecraftScripting/Serialization/SaveAndLoadCompositionRootPatch.cs index b264fdc..a301850 100644 --- a/GamecraftScripting/Serialization/SaveAndLoadCompositionRootPatch.cs +++ b/GamecraftScripting/Serialization/SaveAndLoadCompositionRootPatch.cs @@ -1,5 +1,5 @@ using System; -using Harmony; +using HarmonyLib; using RobocraftX.SaveAndLoad; using Svelto.ECS; namespace GamecraftScripting.Serialization diff --git a/GamecraftScripting/Serialization/SaveGameEnginePatch.cs b/GamecraftScripting/Serialization/SaveGameEnginePatch.cs index d9d5d9d..853f7ca 100644 --- a/GamecraftScripting/Serialization/SaveGameEnginePatch.cs +++ b/GamecraftScripting/Serialization/SaveGameEnginePatch.cs @@ -1,7 +1,7 @@ using System; using System.Text; using System.Reflection; -using Harmony; +using HarmonyLib; using RobocraftX.Common; using RobocraftX.SaveAndLoad; using Svelto.DataStructures; diff --git a/GamecraftScripting/Serialization/SerializationDescriptorMapPatch.cs b/GamecraftScripting/Serialization/SerializationDescriptorMapPatch.cs index 00e789d..a1bb6a1 100644 --- a/GamecraftScripting/Serialization/SerializationDescriptorMapPatch.cs +++ b/GamecraftScripting/Serialization/SerializationDescriptorMapPatch.cs @@ -1,6 +1,6 @@ using System; using System.Reflection; -using Harmony; +using HarmonyLib; using Svelto.ECS; using Svelto.ECS.Serialization; using GamecraftModdingAPI.Utility;