|
|
@@ -22,33 +22,29 @@ using GamecraftModdingAPI.Players; |
|
|
|
|
|
|
|
namespace GamecraftModdingAPI.Tests |
|
|
|
{ |
|
|
|
#if DEBUG |
|
|
|
// unused by design |
|
|
|
/// <summary> |
|
|
|
/// Modding API implemented as a standalone IPA Plugin. |
|
|
|
/// Ideally, GamecraftModdingAPI should be loaded by another mod; not itself |
|
|
|
/// </summary> |
|
|
|
public class GamecraftModdingAPIPluginTest |
|
|
|
#if DEBUG |
|
|
|
: IllusionPlugin.IEnhancedPlugin |
|
|
|
#endif |
|
|
|
public class GamecraftModdingAPIPluginTest : IllusionPlugin.IEnhancedPlugin |
|
|
|
{ |
|
|
|
|
|
|
|
private static Harmony harmony { get; set; } |
|
|
|
|
|
|
|
public string[] Filter { get; } = new string[] { "Gamecraft", "GamecraftPreview" }; |
|
|
|
public override string Name { get; } = Assembly.GetExecutingAssembly().GetName().Name; |
|
|
|
|
|
|
|
public string Name { get; } = Assembly.GetExecutingAssembly().GetName().Name; |
|
|
|
|
|
|
|
public string Version { get; } = Assembly.GetExecutingAssembly().GetName().Version.ToString(); |
|
|
|
public override string Version { get; } = Assembly.GetExecutingAssembly().GetName().Version.ToString(); |
|
|
|
|
|
|
|
public string HarmonyID { get; } = "org.git.exmods.modtainers.gamecraftmoddingapi"; |
|
|
|
|
|
|
|
public void OnApplicationQuit() |
|
|
|
public override void OnApplicationQuit() |
|
|
|
{ |
|
|
|
GamecraftModdingAPI.Main.Shutdown(); |
|
|
|
} |
|
|
|
|
|
|
|
public void OnApplicationStart() |
|
|
|
public override void OnApplicationStart() |
|
|
|
{ |
|
|
|
FileLog.Reset(); |
|
|
|
Harmony.DEBUG = true; |
|
|
@@ -387,16 +383,6 @@ namespace GamecraftModdingAPI.Tests |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void OnFixedUpdate() { } |
|
|
|
|
|
|
|
public void OnLateUpdate() { } |
|
|
|
|
|
|
|
public void OnLevelWasInitialized(int level) { } |
|
|
|
|
|
|
|
public void OnLevelWasLoaded(int level) { } |
|
|
|
|
|
|
|
public void OnUpdate() { } |
|
|
|
|
|
|
|
[HarmonyPatch] |
|
|
|
public class MinimumSpecsPatch |
|
|
|
{ |
|
|
@@ -411,4 +397,5 @@ namespace GamecraftModdingAPI.Tests |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
} |