You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.1 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. using IPA.Config;
  2. using System;
  3. using UnityEngine.SceneManagement;
  4. namespace IPA.Updating
  5. {
  6. [Obsolete("Only used for old updating system, replaced with a PluginMeta for the embedded manifest")]
  7. internal class SelfPlugin : IBeatSaberPlugin
  8. {
  9. public static SelfPlugin Instance { get; set; } = new SelfPlugin();
  10. public string Name => SelfConfig.IPAName;
  11. public string Version => SelfConfig.IPAVersion;
  12. public ModsaberModInfo ModInfo => new ModsaberModInfo
  13. {
  14. CurrentVersion = SelfConfig.IPAVersion,
  15. InternalName = "beatsaber-ipa-reloaded"
  16. };
  17. public void OnActiveSceneChanged(Scene prevScene, Scene nextScene)
  18. {
  19. }
  20. public void OnApplicationQuit()
  21. {
  22. }
  23. public void OnApplicationStart()
  24. {
  25. }
  26. public void OnFixedUpdate()
  27. {
  28. }
  29. public void OnSceneLoaded(Scene scene, LoadSceneMode sceneMode)
  30. {
  31. }
  32. public void OnSceneUnloaded(Scene scene)
  33. {
  34. }
  35. public void OnUpdate()
  36. {
  37. }
  38. }
  39. }