Minecraft world importer for Gamecraft.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

47 řádky
1.0KB

  1. using System.Reflection;
  2. using HarmonyLib;
  3. using IllusionPlugin;
  4. using UnityEngine;
  5. namespace GCMC
  6. {
  7. public class GCMCPlugin : IPlugin
  8. {
  9. public string Name { get; } = "GCMC";
  10. public string Version { get; } = "v0.0.1";
  11. public static Harmony harmony { get; protected set; }
  12. public const string HarmonyID = "io.github.norbipeti.GCMC";
  13. public void OnApplicationStart()
  14. {
  15. if (harmony == null)
  16. {
  17. harmony = new Harmony(HarmonyID);
  18. harmony.PatchAll(Assembly.GetExecutingAssembly());
  19. }
  20. Debug.Log("GCMC loaded");
  21. }
  22. public void OnApplicationQuit()
  23. {
  24. harmony?.UnpatchAll(HarmonyID);
  25. }
  26. public void OnLevelWasLoaded(int level)
  27. {
  28. }
  29. public void OnLevelWasInitialized(int level)
  30. {
  31. }
  32. public void OnUpdate()
  33. {
  34. }
  35. public void OnFixedUpdate()
  36. {
  37. }
  38. }
  39. }